Fast and easy way to use.
git clone https://github.com/NatLee/Twitch-Echo-Bot-with-Python.git
from twitchSocket import twitchSocket
ts = twitchSocket(channelName='<YourChannelName>',
botName ='<YourBotAccountName>',
botAuth ='<YourBotAccountTwitchAuthKey')
while True:
try:
username, message = ts.getMsg()
# Your logic here.
ts.sendMsg(message)
except(KeyboardInterrupt, EOFError, SystemExit):
break