Twitch reader CZ
Twitch reader is a program, which is reading Twitch chat in selected channel and then writing it in the text file. It can run in CMD or GUI interface, but GUI interface has more functions.
It has only one function now, and that's message sorting according to which keyword is included in the message. ("mentions" are converted to lowercase) Keywords must be separated by space, otherwise the program will not catch that message. You are choosing, which keyword will be catched by your list of hashtags in the settings. Keyboard shortcuts are supported too. Here is list of keys and their functions:
- Delete - message delete
- Arrow up and down - switching between hashtags
- R - refresh of messages
- A - auto refresh
- S - scroll lock
Setup is pretty easy. You need to fill only mandatory data. For this purpose is GUI program config.exe
, or you can edit JSON file directly. If the program exits immediately, most likely you haven't entered parameters correctly.
- main
- nick
- token (which you can get here (You need Twitch account for this.))
- channel
- minor
- CMD
- raw output (from Twitch API)
- output (formatted nick and message)
- GUI
- refresh rate (interval in ms, when the text will update)
- commands
- gui (check for mod with GUI)
- CMD
You have to fill mandatory data, without that the program will not work.
There's comments in the code, which can help you. For your code is reserved a block, which is highlighted. GUI has been written in Tkinter.