Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/starshine-sys/report-button

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/starshine-sys/report-button

  • v0.0.0-20211118015221-1ceee6a55f14
  • Source
  • Go
  • Socket score

Version published
Created
Source

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!

FAQs

Package last updated on 18 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc