A Twitch.tv IRC echo bot.
The bot can only currently connect to a twitch.tv chat channel, but could technically connect to any host with some alterations to the message parsing.
Echo will listen in on the twitch.tv chat and look for multiple repeated messages and perform a Least Common Substring calculation to provide a similarity metric. If there are enough messages that are close to the same (and the bot hasn't sent a message recently) it will repeat the message into the chat.
$ git clone https://github.com/DevinCarr/echo.git $ cd echo $ git submodule update --init --recursive
- CMake >= 2.8
- C++11 compiler:
- clang++ >= 3.4
- g++ >= 4.8
mkdir build cd build cmake .. make
Open the solution file in the
echo folder and build with at least VS2015. (hasn't been tested with other Windows compilers)
After run once, a
settings.xml file will be created for you to put your twitch username and password to login. The settings file will be located in:
Get your password using the oauth key generated from here and then the channel of the twitch.tv stream.
The bot wil create a log file (currently stored in the settings folder (see above) in
Echo occassionally shows:
< PING > PONG :tmi.twitch.tv
This is a common response that echo makes to make sure that the twitch IRC doesn't disconnect echo for being AFK. (Further)
mkdir build # build directory cd build cmake -Dtest=on .. # build with tests linked make make unittest # or ./echo-test
MIT - (view LICENSE for more information)