ajout de mémoire avec fichier

This commit is contained in:
Foufure13
2025-01-10 23:13:37 +01:00
parent b1ac5c7506
commit 08c63b576c
15 changed files with 292 additions and 465 deletions
+9 -10
View File
@@ -34,7 +34,7 @@ from fonction.first_class import messageTwitch
from fonction.second_fonction import *
# def r():
# def rh():
# os.system('killall python')
# sys.exit(0)
@@ -175,7 +175,7 @@ if __name__ == '__main__':
ask_text = IA_generator("../config/config.json")
ask_text.start_main_loop()
#controluser = messageTwitch(args.twitchname)
controluser = messageTwitch("../config/user.json",args.twitchname)
print_help()
listener_thread = threading.Thread(target=start_keyboard_listener)
@@ -189,15 +189,14 @@ if __name__ == '__main__':
hprint("blue", "start main_loop main script / main_loop = "+str(main_loop))
text_streamer = sb_translation.get_lasttext()
ask_text.setnew_streamer_word_text(text_streamer)
#new_genration = ask_text.getlast_generation()
# new_genration = ask_text.getlast_generation()
#if new_genration != "" and new_genration != last_generaton:
#hprint("blue", "Send message -> "+new_genration)
#controluser.send_message(new_genration)
#controluser.change_user()
#last_generaton = new_genration
#time.sleep(10)
# if new_genration != "" and new_genration != last_generaton:
# hprint("blue", "Send message -> "+new_genration)
# controluser.send_message(new_genration)
# controluser.change_user()
# last_generaton = new_genration
# time.sleep(10)