Skip to content

NatLee/Twitch-Echo-Bot-with-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages