mirror of
https://github.com/NoiTheCat/WorldTime.git
synced 2024-11-21 14:34:36 +00:00
Remove tz.time command
This commit is contained in:
parent
fa36516db7
commit
2a4c9f5a0c
1 changed files with 0 additions and 17 deletions
17
commands.py
17
commands.py
|
@ -18,7 +18,6 @@ class WtCommands:
|
||||||
self.commandlist = {
|
self.commandlist = {
|
||||||
'help' : self.cmd_help,
|
'help' : self.cmd_help,
|
||||||
'list' : self.cmd_list,
|
'list' : self.cmd_list,
|
||||||
'time' : self.cmd_time,
|
|
||||||
'set' : self.cmd_set,
|
'set' : self.cmd_set,
|
||||||
'remove': self.cmd_remove,
|
'remove': self.cmd_remove,
|
||||||
'setfor': self.cmd_setFor,
|
'setfor': self.cmd_setFor,
|
||||||
|
@ -126,8 +125,6 @@ class WtCommands:
|
||||||
`tz.help` - This message.
|
`tz.help` - This message.
|
||||||
`tz.list` - Displays current times for all recently active known users.
|
`tz.list` - Displays current times for all recently active known users.
|
||||||
`tz.list [user]` - Displays the current time for the given *user*.
|
`tz.list [user]` - Displays the current time for the given *user*.
|
||||||
`tz.time` - Displays the current time in your time zone.
|
|
||||||
`tz.time [zone]` - Displays the current time in the given *zone*.
|
|
||||||
`tz.set [zone]` - Registers or updates your *zone* with the bot.
|
`tz.set [zone]` - Registers or updates your *zone* with the bot.
|
||||||
`tz.remove` - Removes your name from this bot.
|
`tz.remove` - Removes your name from this bot.
|
||||||
'''))
|
'''))
|
||||||
|
@ -140,20 +137,6 @@ class WtCommands:
|
||||||
'''), inline=False)
|
'''), inline=False)
|
||||||
await channel.send(embed=em)
|
await channel.send(embed=em)
|
||||||
|
|
||||||
async def cmd_time(self, guild: discord.Guild, channel: discord.TextChannel, author: discord.User, msgcontent: str):
|
|
||||||
wspl = msgcontent.split(' ', 1)
|
|
||||||
if len(wspl) == 1:
|
|
||||||
# No parameter. So, doing the same thing anyway...
|
|
||||||
await self._list_userparam(guild, channel, author, author.id)
|
|
||||||
else:
|
|
||||||
try:
|
|
||||||
zoneinput = tzlcmap[wspl[1].lower()]
|
|
||||||
except KeyError:
|
|
||||||
await channel.send(':x: Not a valid zone name.')
|
|
||||||
return
|
|
||||||
resultstr = '```\n' + self._tzPrint(zoneinput) + '\n```'
|
|
||||||
await channel.send(resultstr)
|
|
||||||
|
|
||||||
async def cmd_set(self, guild: discord.Guild, channel: discord.TextChannel, author: discord.User, msgcontent: str):
|
async def cmd_set(self, guild: discord.Guild, channel: discord.TextChannel, author: discord.User, msgcontent: str):
|
||||||
wspl = msgcontent.split(' ', 1)
|
wspl = msgcontent.split(' ', 1)
|
||||||
if len(wspl) == 1:
|
if len(wspl) == 1:
|
||||||
|
|
Loading…
Reference in a new issue