init auth and main function

This commit is contained in:
Yuriy Yuriev
2026-05-14 16:15:58 +07:00
commit 27c53e897e
47 changed files with 5750 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
# test_irc.py
import asyncio
import sys
sys.path.insert(0, '.')
from services.irc_service import TwitchIRCClient
async def test():
print("Testing IRC connection...")
irc = TwitchIRCClient("jentteno", "*")
async def on_url(url, user):
print(f"URL: {url} from {user}")
print("Connecting...")
await irc.listen_for_messages(on_url, duration=60)
await irc.disconnect()
asyncio.run(test())