Typstify /chat_message to /chat

This commit is contained in:
Joscha 2025-03-01 23:11:49 +01:00
parent 8bece23baf
commit de7ae63a5e
13 changed files with 93 additions and 153 deletions

View file

@ -1,6 +1,5 @@
import argparse
import json
import re
import time
import requests
@ -93,7 +92,7 @@ class Room:
print("Posting", data)
try:
requests.post(f"http://{self.addr}/chat_message", data=data)
requests.post(f"http://{self.addr}/chat", data=data)
except Exception as e:
print("Oop:", e)

View file

@ -99,7 +99,7 @@ class Room:
time.sleep(10)
def join(self):
nick = f"justinfan{ random.randint(1, 99999)}"
nick = f"justinfan{random.randint(1, 99999)}"
print(f"Joining #{self.channel} as {nick}")
self.ws.send("CAP REQ :twitch.tv/tags twitch.tv/commands")
self.ws.send("PASS SCHMOOPIIE") # What the web ui does
@ -120,7 +120,7 @@ class Room:
print("Posting", data)
try:
requests.post(f"http://{self.addr}/chat_message", data=data)
requests.post(f"http://{self.addr}/chat", data=data)
except Exception as e:
print("Oop:", e)