From 72652ef36879836fc78dcf084f37ed849c1e8b87 Mon Sep 17 00:00:00 2001 From: saucylegs <37064488+saucylegs@users.noreply.github.com> Date: Sun, 11 Apr 2021 01:09:05 -0700 Subject: [PATCH 1/2] add prefix to config example (#22) --- data/config.example.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/config.example.py b/data/config.example.py index 8e015af..d69fa4c 100644 --- a/data/config.example.py +++ b/data/config.example.py @@ -8,6 +8,8 @@ # the bot must have Create Instant Invite permissions for this channel # if set to None, the support command will be disabled 'support_server_invite_channel': None, + + 'prefixes': ['em/'], 'tokens': { 'discord': 'sek.rit.token', From 1d6ad4cfd58d5467f9e82190236761c052dd2551 Mon Sep 17 00:00:00 2001 From: io Date: Wed, 19 May 2021 21:26:51 +0000 Subject: [PATCH 2/2] use ProactorEventLoop on windows --- bot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bot.py b/bot.py index c026b09..0bd65da 100755 --- a/bot.py +++ b/bot.py @@ -28,6 +28,11 @@ logging.getLogger('discord').setLevel(logging.INFO) logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) +# SelectorEventLoop on windows doesn't support subprocesses lol +if sys.platform == 'win32': + loop = asyncio.ProactorEventLoop() + asyncio.set_event_loop(loop) + class Bot(Bot): startup_extensions = ( 'cogs.emote',