1
0
Fork 0
mirror of https://github.com/uhIgnacio/EmoteManager.git synced 2024-08-15 02:23:13 +00:00

turn guild subs back on until discord.py#5819 is fixed

This commit is contained in:
io mintz 2020-09-15 11:44:46 +00:00
parent 56e9d00c03
commit b1c3114ee3

11
bot.py
View file

@ -61,15 +61,16 @@ 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], '<shard count> <hyphen-separated list of shard IDs>', file=sys.stderr)
sys.exit(1)
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()
Bot(
guild_subscriptions=True,
request_offline_members=False,
shard_count=int(sys.argv[1]),
shard_ids=list(map(int, sys.argv[2].split('-'))),
).run()
if __name__ == '__main__':
main()