split shard IDs by - instead of , to accomodate systemd template units

This commit is contained in:
io mintz 2020-06-02 00:53:25 +00:00
parent 5695cf86f1
commit e8881788a8
1 changed files with 1 additions and 1 deletions

2
bot.py
View File

@ -65,7 +65,7 @@ def main():
if len(sys.argv) >= 3:
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()
else:
Bot(**kwargs).run()