From e8881788a81fc47cc8445c8a1c84ed8acf20fdbf Mon Sep 17 00:00:00 2001 From: io mintz Date: Tue, 2 Jun 2020 00:53:25 +0000 Subject: [PATCH] split shard IDs by - instead of , to accomodate systemd template units --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 90773a1..11b8f25 100755 --- a/bot.py +++ b/bot.py @@ -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()