Open bokja opened 4 years ago
I think in the past I was able to run two instances of DAB with the commandline -c option.
python main.py -c FirstConfigDirectory
python main.py -c SecondConfigDirectory
This should still work
Yeah i mean sure it would work to run 2 instances but thats kinda annoying i want to run 1 program to handle all my discord accounts, but thanks anyway
I mean i know this isnt the place to ask but as i am using your modified library i was wondering if there was a way to start 2 instances of the bot within the same program i tried calling dab with threading but i get an error
`class DAB(commands.bot.Bot): def init(self, _onfig_directory, command_prefix, proxy): super().init(command_prefix=command_prefix, self_bot=True, fetch_offline_members=False, proxy=proxy)
`def thread_function(): x = 0 client = DAB("Depricated", "+", "http://" + proxies[x]) print(tokens[x] + " " + proxies[x]) client.run(tokens[x], bot=False) print(tokens[x] + " " + proxies[x])
t1 = threading.Thread(target=thread_function) t1.start()`
I also tried this but the code stops running after client.run() and any code after that is ignored i very new to python do you know the reason by any chance
for x in range(0,2): client = DAB("Depricated", "+", "http://" + proxies[x]) print(tokens[x] + " " + proxies[x]) client.run(tokens[x], bot=False)
Any help would be much appreciated