tentative lancement bot twitch

This commit is contained in:
Kepka Ludovic
2025-08-21 09:12:47 +02:00
committed by skylanix
parent 4b68781114
commit a69d09223e
2 changed files with 33 additions and 26 deletions

View File

@@ -1,8 +1,11 @@
import locale
import logging
import threading
from webapp import webapp
from discordbot import bot
from webapp import webapp
# from twitchbot import twitchBot
def start_server():
logging.info("Start Web Serveur")
@@ -14,12 +17,18 @@ def start_discord_bot():
with webapp.app_context():
bot.begin()
# def start_twitch_bot():
# logging.info("Start Twitch Bot")
# with webapp.app_context():
# twitchBot.begin()
if __name__ == '__main__':
locale.setlocale(locale.LC_TIME, 'fr_FR.UTF-8')
jobs = []
jobs.append(threading.Thread(target=start_discord_bot))
jobs.append(threading.Thread(target=start_server))
# jobs.append(threading.Thread(target=start_twitch_bot))
for job in jobs: job.start()
for job in jobs: job.join()