From a1ce0b82814ecc72eb656a9e56b395677db80813 Mon Sep 17 00:00:00 2001 From: io mintz Date: Thu, 17 Sep 2020 10:07:57 +0000 Subject: [PATCH] discord.py#5819 is fixed This reverts commit b1c3114ee3b1a1a55801147a3c30ccf509ecb4ba. --- bot.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/bot.py b/bot.py index 23ffbb5..b0a36f9 100755 --- a/bot.py +++ b/bot.py @@ -61,16 +61,15 @@ class Bot(Bot): def main(): import sys + kwargs = dict(guild_subscriptions=False, request_offline_members=False) + if len(sys.argv) < 3: print('Usage:', sys.argv[0], ' ', file=sys.stderr) sys.exit(1) - Bot( - guild_subscriptions=True, - request_offline_members=False, - shard_count=int(sys.argv[1]), - shard_ids=list(map(int, sys.argv[2].split('-'))), - ).run() + shard_count = int(sys.argv[1]) + shard_ids = list(map(int, sys.argv[2].split('-'))) + Bot(**kwargs, shard_count=shard_count, shard_ids=shard_ids).run() if __name__ == '__main__': main()