mirror of
https://github.com/uhIgnacio/EmoteManager.git
synced 2024-08-15 02:23:13 +00:00
parent
b1c3114ee3
commit
a1ce0b8281
1 changed files with 5 additions and 6 deletions
11
bot.py
11
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], '<shard count> <hyphen-separated list of shard IDs>', 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()
|
||||
|
|
Loading…
Reference in a new issue