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:
parent
56e9d00c03
commit
b1c3114ee3
1 changed files with 6 additions and 5 deletions
11
bot.py
11
bot.py
|
@ -61,15 +61,16 @@ class Bot(Bot):
|
||||||
def main():
|
def main():
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
kwargs = dict(guild_subscriptions=False, request_offline_members=False)
|
|
||||||
|
|
||||||
if len(sys.argv) < 3:
|
if len(sys.argv) < 3:
|
||||||
print('Usage:', sys.argv[0], '<shard count> <hyphen-separated list of shard IDs>', file=sys.stderr)
|
print('Usage:', sys.argv[0], '<shard count> <hyphen-separated list of shard IDs>', file=sys.stderr)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
shard_count = int(sys.argv[1])
|
Bot(
|
||||||
shard_ids = list(map(int, sys.argv[2].split('-')))
|
guild_subscriptions=True,
|
||||||
Bot(**kwargs, shard_count=shard_count, shard_ids=shard_ids).run()
|
request_offline_members=False,
|
||||||
|
shard_count=int(sys.argv[1]),
|
||||||
|
shard_ids=list(map(int, sys.argv[2].split('-'))),
|
||||||
|
).run()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in a new issue