twitch logging platform
Find a file
2021-11-23 10:12:24 +01:00
.github/workflows cut too long commit message I'd just like to interject for a moment. What you’re referring to as Linux, is in fact, GNU/Linux, or as I’ve recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX. 2021-03-19 22:43:17 +01:00
api fix duplication of userids on config when added via api #134 2021-11-23 10:12:24 +01:00
archiver double check if we actually try to open a dir 2019-08-18 11:08:27 +02:00
bot Clarify logging output 2021-10-03 01:38:31 +02:00
config fix duplication of userids on config when added via api #134 2021-11-23 10:12:24 +01:00
filelog more error logging, remove runetime monitoring 2021-01-09 13:34:31 +01:00
helix prevent concurrent map writes fixes #121 2021-09-28 10:31:52 +02:00
humanize add tests for humanize 2019-08-18 11:38:54 +02:00
web fix duplication of userids on config when added via api #134 2021-11-23 10:12:24 +01:00
.gitignore simplify webpack setup 2020-09-05 12:15:35 +02:00
config.json.dist Removed references to channelConfigs and messageType 2021-10-03 01:17:10 +02:00
Dockerfile new cmd 2019-05-17 21:54:38 +02:00
go.mod update go-twitch-irc to fix parsing issue 2021-11-22 14:37:29 +01:00
go.sum update go-twitch-irc to fix parsing issue 2021-11-22 14:37:29 +01:00
LICENSE use json config and enable arguments 2018-11-29 22:20:57 +01:00
main.go remove all message type configs, better handle joining/leaving 2021-04-16 18:03:41 +02:00
Makefile tidy assets, need to track assets for now so only go build required 2021-03-19 22:18:16 +01:00
README.MD Removed references to channelConfigs and messageType 2021-10-03 01:17:10 +02:00

justlog Build Status

What is this?

Justlog is an twitch irc bot. It focuses on logging and providing an api for the logs.

Docker

mkdir logs # Make sure the log folder is set correctly in your config, we need to create it first to have correct permissions
docker run -p 8025:8025 --restart=unless-stopped --user $(id -u):$(id -g) -v $PWD/config.json:/etc/justlog.json -v $PWD/logs:/logs ghcr.io/gempir/justlog

Commands

  • !justlog status will respond with uptime
  • !justlog join gempir,pajlada will join the channels and append them to the config
  • !justlog optout gempir,gempbot will opt out users of message logging or querying previous logs of that user, same applies to users own channel
  • !justlog optin gempir,gempbot will revert the opt out

Config

{
    "admins": ["gempir"], // will only respond to commands executed by these users
    "logsDirectory": "./logs", // the directory to log into
    "adminAPIKey": "noshot", // your secret api key to access the admin api (documented below)
    "username": "gempbot", // bot username (can be justinfan123123 if you don't want to use an account)
    "oauth": "oauthtokenforchat", // bot token can be anything if justinfan123123
    "botVerified": true, // increase ratelimits if you have a verified bot, so the bot can join faster, false by default
    "clientID": "mytwitchclientid", // your client ID, needed for fetching userids or usernames etc
    "clientSecret": "mysecret", // your twitch client secret
    "logLevel": "info", // the log level, keep this to info probably
    "channels": ["77829817", "11148817"], // the channels (userids) you want to log
    "archive": true // probably keep to true, will disable gzipping of old logs if false, useful if you setup compression on your own
}

Development

Development requires yarn and go-swagger

Run go build && ./justlog and yarn start in the web folder.

Before committing make sure to run make to generate openAPI specs and bundle assets.