kaguya

command module
v0.0.0-...-4eaa17f Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2019 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Kaguya is a Discord Channel React Join/Leave BOT. It's functionalities are the following:


  • Show avatar for a target user. Works for people not in the server

  • Full spoiler/opt-in/hidden channel support with reaction based role-giving or just join/leave commands. Tracks hidden channels between two dummy roles

  • BOT say/edit commands that any mod can use to send or edit important messages with the BOT, or pretend they're a ROBOT


How to install:

  1. Download in a folder.

  2. Edit config.json with your own values. Use only one for each, except for CommandRoles. Everything is required unless stated otherwise:

    BotPrefix is the character that needs to be used before every command
    
    BotID is the ID of the BOT you are using
    
    ServerID is the ID of the server the BOT is going to be managing
    
    BotLogID is the ID of the channel in which the bot will dump errors, timed events, punishments and other things
    
    CommandRoles are the admin/mod/bot role IDs
    
    OptInUnder is the name of the top dummy role for spoiler/opt-in/hidden channels
    
    OptInAbove is the name of the bottom dummy role for spoiler/opt-in/hidden channels
    
  3. Set your "KaguyaToken" environment variable to the BOT token (either hidden on the system env or in config.go ReadConfig func with os.Setenv("KaguyaToken", "TOKEN"))

  4. Compile in your favorite IDE or compiler with "go build" (or type "set GOOS=linux" to change OS first and then "go build".)

  5. Invite BOT to server and give it an admin role

  6. Start the BOT and use


If you have discovered any bugs or have questions, please message Apiks or raise an issue.

If you use the BOT successfuly, please also let Apiks know

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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