split shard IDs by - instead of , to accomodate systemd template units
This commit is contained in:
parent
5695cf86f1
commit
e8881788a8
2
bot.py
2
bot.py
|
@ -65,7 +65,7 @@ def main():
|
||||||
|
|
||||||
if len(sys.argv) >= 3:
|
if len(sys.argv) >= 3:
|
||||||
shard_count = int(sys.argv[1])
|
shard_count = int(sys.argv[1])
|
||||||
shard_ids = list(map(int, sys.argv[2].split(',')))
|
shard_ids = list(map(int, sys.argv[2].split('-')))
|
||||||
Bot(**kwargs, shard_count=shard_count, shard_ids=shard_ids).run()
|
Bot(**kwargs, shard_count=shard_count, shard_ids=shard_ids).run()
|
||||||
else:
|
else:
|
||||||
Bot(**kwargs).run()
|
Bot(**kwargs).run()
|
||||||
|
|
Loading…
Reference in New Issue