Twitch Log Bot is a bot that will join Twitch channels and store chat messages using Google Cloud Datastore.
The web interface is just a basic interface to allow you to see past messages in a channel to see their chat history.
It is designed to be simple and only do lookups per-channel (and optionally: per-user).
If you want something that has more features, take a look at CBenni's Logviewer which is also hosted at cbenni.com.
- Setup Google Cloud Datastore.
- Setup node & npm.
- Install dependencies using
npm install. - Copy
config.sample.jstoconfig.jsand edit the values (see comments in the config-file). - Copy
index.sample.yamltoindex.yamland edit eachkindto what you wish to store it as in Google Cloud Datastore. Anything else should (by default) be left as-is.- The easiest way to create these indexes is by installing Google Cloud SDK, then running
gcloud initafter installing. - After that, while being in the directory of this bot, run
gcloud datastore create-indexes index.yamland it should create the indexes. - If you wanna make sure you don't have unnecessary indexes on GC Datastore, run
gcloud datastore cleanup-indexes index.yamlin the same directory.
- The easiest way to create these indexes is by installing Google Cloud SDK, then running
- Copy
channels.sample.jsontochannels.jsonand edit it.- It's recommended to at least remove the example channels.
- Copy
ignore.sample.jsontoignore.json.- If you are familiar with JSON objects, feel free to manually edit it. Otherwise, I recommend using the admin commands.
- Run the bot using
node app.js, or alternatively use pm2.
- Download the latest release or pull directly from
masterusinggit pull. - Make sure dependencies are up-to-date by using
npm install. - Make sure
config.jshas the same properties asconfig.sample.js.- Delete/move config.js elsewhere and make a new
config.jsbased offconfig.sample.jsif you feel like you have to.
- Delete/move config.js elsewhere and make a new
- Make sure
index.yamlhas the same values asindex.sample.yaml(remember to edit thekind!) and update indexes using for examplegcloud datastore create-indexes index.yaml. - Run the bot using
node app.js, or alternatively use pm2.
Changelog can be found here: CHANGELOG.
Commands can be found here: COMMANDS.
This is licensed under the MIT License.