Twitch/Discord Chat Bot that works for KGB
WARNING! CONTAINS SUBMODULES! Clone with git clone --recursive
.
$ cabal v2-build
$ cabal v2-run kgbotka secret.json database.db
$ stack init --resolver=snapshot.yaml
$ stack build
$ stack run kgbotka secret.json database.db
The easiest way to obtain Twitch credentials right now is to
- Go to https://tsoding.org/kgbotka-login/
- Press
Login
button and follow the instructions - Copy paste the generated credentials to your
secret.json
. Check ./secret.json.example to learn about the format of the file.
See OAuth2 for Bots section of Discord documentation.
- Generate the Personal Access Token
- Make sure you enable the
gist
scope, otherwise Friday Videos Gist synchronization won't work
TBD