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():
|
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)
|
||||||
|
|
||||||
Bot(
|
shard_count = int(sys.argv[1])
|
||||||
guild_subscriptions=True,
|
shard_ids = list(map(int, sys.argv[2].split('-')))
|
||||||
request_offline_members=False,
|
Bot(**kwargs, shard_count=shard_count, shard_ids=shard_ids).run()
|
||||||
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…
Add table
Add a link
Reference in a new issue