Linot is a chat bot for LINE™ App. It provides services to user through the LINE message interfaces.
TwitchNotifier let user subscribe twitch channels. When the subscribed channels goes live, Linot sends a LINE message to the subscribers with the channel infomation.
- Example
User> twitch -subscribe Nightblue3
Linot> Done.
(When Nightblue3 goes live)
Linot>
Nightblue3 is now streamming!!
[Title] ASSASSIN/SATED JUNGLE META
[Playing] League of Legends
http://www.twitch.tv/nightblue3
- Command List
User> twitch -h
- This bot is run under Python2.7. You will also need LINE API package.
- Please notice that there is currently an issue on the thrift which may randomly connection lost when using LINE API. Please refere to this thread.
- Fill out generate_config.py and generate the config file.
- Since it is a LINE chat bot, you need to provide a valid LINE account/password.
- If you are going to load TwitchNotifier, you need to provide a oauth key to a twitch account.
- To run the bot:
python run.py
- You may need to enter the pompt code to the LINE app on your cellphone to complete the authentication process.
- We use nose to write test cases, make sure you have nose installed. ex:
pip install nose
- Run test cases by:
nosetests -c nose.cfg