mirror of
https://github.com/skylanix/MamieHenriette.git
synced 2026-02-06 06:40:35 +01:00
je passe sur des thread et ca marche, mystere
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
import locale
|
||||
import logging
|
||||
import multiprocessing
|
||||
import threading
|
||||
from webapp import webapp
|
||||
from discordbot import bot
|
||||
|
||||
@@ -20,13 +20,10 @@ if __name__ == '__main__':
|
||||
locale.setlocale(locale.LC_TIME, 'fr_FR.UTF-8')
|
||||
|
||||
jobs = []
|
||||
jobs.append(multiprocessing.Process(target=start_discord_bot))
|
||||
jobs.append(multiprocessing.Process(target=start_server))
|
||||
jobs.append(threading.Thread(target=start_discord_bot))
|
||||
jobs.append(threading.Thread(target=start_server))
|
||||
|
||||
for job in jobs: job.start()
|
||||
|
||||
print(bot.get_all_channels())
|
||||
|
||||
for job in jobs: job.join()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user