From 2a4c9f5a0c847a76b3977e01726907db7fbdaf64 Mon Sep 17 00:00:00 2001 From: Noi Date: Sun, 1 Mar 2020 13:45:06 -0800 Subject: [PATCH] Remove tz.time command --- commands.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/commands.py b/commands.py index 8611f03..fb35335 100644 --- a/commands.py +++ b/commands.py @@ -18,7 +18,6 @@ class WtCommands: self.commandlist = { 'help' : self.cmd_help, 'list' : self.cmd_list, - 'time' : self.cmd_time, 'set' : self.cmd_set, 'remove': self.cmd_remove, 'setfor': self.cmd_setFor, @@ -126,8 +125,6 @@ class WtCommands: `tz.help` - This message. `tz.list` - Displays current times for all recently active known users. `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.remove` - Removes your name from this bot. ''')) @@ -140,20 +137,6 @@ class WtCommands: '''), inline=False) 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): wspl = msgcontent.split(' ', 1) if len(wspl) == 1: