NatLee / Twitch-Echo-Bot-with-Python

Use python to make a twitch echo bot.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Twitch Echo Bot with Python

License: GPL v3 Python 3

Fast and easy way to use.

Features

  • Join the twitch channel.
  • Send message.
  • Get new message.

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

About

Use python to make a twitch echo bot.

License:MIT License


Languages

Language:Python 100.0%