Few small details fixed
parent
3f477eefc5
commit
ede95f5d1f
|
@ -215,7 +215,7 @@ class Location(SQL_Base):
|
||||||
def pos_to_str(self):
|
def pos_to_str(self):
|
||||||
pos_str = '**(x= {}, z= {})** {}'.format(self.x, self.z, self.dimension.value.title())
|
pos_str = '**(x= {}, z= {})** {}'.format(self.x, self.z, self.dimension.value.title())
|
||||||
if self.tunnel is not None:
|
if self.tunnel is not None:
|
||||||
return pos_str + ', **{}**'.format(self.tunnel)
|
return pos_str + ', Tunnel: **{}**'.format(self.tunnel)
|
||||||
else:
|
else:
|
||||||
return pos_str
|
return pos_str
|
||||||
|
|
||||||
|
|
|
@ -87,7 +87,8 @@ class Add_Commands:
|
||||||
async def add_tunnel(self, ctx, tunnel_color: str, tunnel_number: int, *args):
|
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.
|
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)
|
loc_name = get_name(args)
|
||||||
|
|
|
@ -2,6 +2,7 @@ from discord import Game
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
|
|
||||||
from geoffrey.BotErrors import *
|
from geoffrey.BotErrors import *
|
||||||
|
from geoffrey.DiscordHelperFunctions import get_name
|
||||||
|
|
||||||
|
|
||||||
def check_mod(user, admin_users):
|
def check_mod(user, admin_users):
|
||||||
|
@ -116,10 +117,11 @@ class Admin_Commands:
|
||||||
await self.error(ctx, error)
|
await self.error(ctx, error)
|
||||||
|
|
||||||
@mod.command(pass_context=True)
|
@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.
|
Updates "playing [game]" status of the bot.
|
||||||
"""
|
"""
|
||||||
|
status = get_name(args)
|
||||||
await self.bot.change_presence(activity=Game(status))
|
await self.bot.change_presence(activity=Game(status))
|
||||||
await ctx.send('{}, status has been changed'.format(ctx.message.author.mention))
|
await ctx.send('{}, status has been changed'.format(ctx.message.author.mention))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue