A bot used to post twitch mod actions into a discord channel.
- Go to the website https://modlogs.komodohype.dev and add the bot to your discord.
- Ask your streamer to go to the website https://modlogs.komodohype.dev/login and copy the command that it returns and patse it your discord channel.
- You can have a maximum of 10 hooks per discord. If you need more you can dm me on discord Troy#0003
If you find any questions, feature requests, bugs, issues or an error is thrown, please make an issue here.
-
/add token minimal? channel? -> Adds a new hook binding for mod logs to the current channel or the channel specified.
-
/delete streamerID/streamerName channel? -> Removed the hook for that channel.
-
/list channel? -> Lists the current hooks for either the guild or the specified channel.
-
/ignore accountName/accountID -> Ignores a user useful for bot.
-
/unignore accountName/accountID -> Unignores a user.
-
/ignored -> Shows all ignored users
/link -> Displays invite links.
- Install golang
wget https://golang.org/dl/go1.16.2.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.16.2.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
- Clone the repo
cd /opt/
git clone https://github.com/troydota/modlogs.git
cd modlogs
- Build the source
go build
- Modify the config.
cp config.demo.yaml config.yaml && vim config.yaml
- Run the bot with rebuild commands flag once. Once you see the application started message you can stop it and run it in the system service.
./modlogs --rebuild_commands
# for more info on all the flags
./moglogs --help
- Setup auto run with systemboot.
sudo cp modlogs.service /etc/systemd/system && sudo systemctl start modlogs && sudo systemctl enable modlogs