From dbec6309a86328555ea3327a498b14268a574e92 Mon Sep 17 00:00:00 2001 From: Noi Date: Sat, 2 May 2020 11:43:25 -0700 Subject: [PATCH] Update DM message; switch to AutoShardedClient --- client.py | 4 ++-- common.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client.py b/client.py index 8b0d98e..cd1e3d8 100644 --- a/client.py +++ b/client.py @@ -9,7 +9,7 @@ import settings from userdb import UserDatabase from commands import WtCommands -class WorldTime(discord.Client): +class WorldTime(discord.AutoShardedClient): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.userdb = UserDatabase(settings.PgConnectionString) @@ -37,7 +37,7 @@ class WorldTime(discord.Client): async def respond_dm(self, message): logPrint('Incoming DM', '{0}: {1}'.format(message.author, message.content.replace('\n', '\\n'))) - await message.channel.send('''I don't work over DM. :frowning: Only in a server.''') + await message.channel.send('''I don't work over DM. Refer to the `tz.help` command when in a server.''') # ---------------- diff --git a/common.py b/common.py index e1ff1e2..ca273bc 100644 --- a/common.py +++ b/common.py @@ -4,7 +4,7 @@ import pytz from datetime import datetime # Bot's current version (as a string), for use in the help command -BotVersion = "1.3.0" +BotVersion = "1.3.1" # For case-insensitive time zone lookup, map lowercase tzdata entries with # entires with proper case. pytz is case sensitive.