commands-hybrid

command
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: ISC Imports: 14 Imported by: 0

README

commands-hybrid

commands-hybrid is an alternative variant of commands, where the program permits being hosted either as a Gateway-based daemon or as a web server using the Interactions Webhook API.

Usage

Gateway Mode
BOT_TOKEN="<token here>" go run .
Interactions Webhook Mode
BOT_TOKEN="<token here>" WEBHOOK_ADDR="localhost:29485" WEBHOOK_PUBKEY="<hex app pubkey>" go run .

The endpoint will be http://localhost:29485/. I recommend using something like srv.us to expose this endpoint as a public one, which can then be used by Discord.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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