message achoix

This commit is contained in:
gpatruno
2025-07-20 03:33:48 +02:00
parent 9725cd7a7c
commit 75d9a65cc4
15 changed files with 272 additions and 47 deletions
+4 -1
View File
@@ -1008,7 +1008,10 @@ class messageTwitch:
def send_message(self, Message_text):
try:
command = '-pseudo "'+self.tw_acc_pseudo+'" -token "'+self.tw_acc_token+'" -twitchname "'+self.channel_name+'" -message " '+self.charactere+' '+Message_text+'"'
message_tosend = 'python send_message.py '+ str(command)
# Utiliser le Python de l'environnement virtuel
python_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'env', 'bin', 'python')
message_tosend = python_path + ' send_message.py '+ str(command)
debug_print("d", f"send message = "+str(message_tosend), self.type_debug, self.script_name)
sprint(self.script_name,"cyan",f"send message = "+str(message_tosend))