NatLee / Twitch-Echo-Bot-with-Python

Use python to make a twitch echo bot.
MIT License
2 stars 1 forks source link
echo-bot python socket twitch twitch-bot

Twitch Echo Bot with Python

License: GPL v3 Python 3

Fast and easy way to use.

Features

Usage

git clone https://github.com/NatLee/Twitch-Echo-Bot-with-Python.git

Example (in main.py)


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

Contributors

NatLee

License

MIT license