modlogs

command module
v0.0.0-...-3cc618a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2021 License: MIT Imports: 19 Imported by: 0

README

ModLogs

A bot used to post twitch mod actions into a discord channel.

Using the global version

  1. Go to the website https://modlogs.komodohype.dev and add the bot to your discord.
  2. 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.
  3. 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.

Commands

Admin Commands
  • /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

Other Commands
  • /link -> Displays invite links.
Screenshots

image image

Running it yourself.

  1. 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
  1. Clone the repo
cd /opt/
git clone https://github.com/troydota/modlogs.git
cd modlogs
  1. Build the source
go build
  1. Modify the config.
cp config.demo.yaml config.yaml && vim config.yaml
  1. 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
  1. Setup auto run with systemboot.
sudo cp modlogs.service /etc/systemd/system && sudo systemctl start modlogs && sudo systemctl enable modlogs

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
src
api
bot

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL