Few small details fixed

doc_update
Joey Hines 2018-09-12 16:29:28 -05:00
parent 3f477eefc5
commit ede95f5d1f
3 changed files with 6 additions and 3 deletions

View File

@ -215,7 +215,7 @@ class Location(SQL_Base):
def pos_to_str(self):
pos_str = '**(x= {}, z= {})** {}'.format(self.x, self.z, self.dimension.value.title())
if self.tunnel is not None:
return pos_str + ', **{}**'.format(self.tunnel)
return pos_str + ', Tunnel: **{}**'.format(self.tunnel)
else:
return pos_str

View File

@ -87,7 +87,8 @@ class Add_Commands:
async def add_tunnel(self, ctx, tunnel_color: str, tunnel_number: int, *args):
"""
Adds your tunnel to the database. If you only have one location, you do not need to specify a location name.
?tunnel [Tunnel Color] [Tunnel Number] [Location Name]
Directions: North South East West
?tunnel [Tunnel Direction] [Tunnel Number] [Location Name]
"""
loc_name = get_name(args)

View File

@ -2,6 +2,7 @@ from discord import Game
from discord.ext import commands
from geoffrey.BotErrors import *
from geoffrey.DiscordHelperFunctions import get_name
def check_mod(user, admin_users):
@ -116,10 +117,11 @@ class Admin_Commands:
await self.error(ctx, error)
@mod.command(pass_context=True)
async def status(self, ctx, status: str):
async def status(self, ctx, *args):
"""
Updates "playing [game]" status of the bot.
"""
status = get_name(args)
await self.bot.change_presence(activity=Game(status))
await ctx.send('{}, status has been changed'.format(ctx.message.author.mention))