Simple IRC class for a Twitch bot. There is also a bot example called "Diodobot".
It is composed by:
connect: connect to a server using the twitch account secret, the nickname and the target channel nameread: read a message from the connectionwrite: write something in the channel as a PRVMSGclose: close the socket connection
- Make sure you have
pipinstalled for extra modules if you want to include them inrequirements.txt - Change the channel, nickname and secrete as in the main of
DiodoBot.py python.exe ./Diodobot.py