report-button

command module
v0.0.0-...-1ceee6a Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: Unlicense Imports: 17 Imported by: 0

README

report button

(not actually a button, it's an application command)

Setup

Set up an .env file with the following keys:

  • TOKEN and PUBLIC_KEY: your bot's token and public key from Discord
  • GUILD_ID: the guild ID to respond to commands from, and to write commands to.
  • CHANNEL_ID: the channel ID to send reports to.

Also set PORT if you don't want to use the default (3100)

You should also change some of the messages in consts.go (especially reportError)

Then build the application (use build.sh to build without cgo) and run it with the -sync flag. This will sync the commands to Discord and immediately exit.
Then rerun the executable with no arguments to run the report button!

License

I don't care what you do with this, so it's licensed under the Unlicense :]
Check LICENSE in the repository's root for the full text!

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package interaction provides types for handling Discord webhook interactions.
Package interaction provides types for handling Discord webhook interactions.

Jump to

Keyboard shortcuts

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