Documentation
¶
Overview ¶
Package awg provides "a worker in go"
awg is designed to be compatible with github.com/foxbot/adidis, a distributed discord sharder. It should work with any sharder that sends JSON-encoded Discord events over a Redis gateway keyed with `exchange:events` - though this can pretty easily be adapted to work in your environment.
sub-packages are provided to help make writing a fully-fledged bot with this worker easier.
Index ¶
Constants ¶
View Source
const (
// KeyExchange is the key for the events exchange
KeyExchange = "exchange:events"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Worker ¶
type Worker struct { ID string // contains filtered or unexported fields }
Worker will pull and parse data from Redis
Directories
¶
Path | Synopsis |
---|---|
Package bot provides an example bot with example commands using this worker
|
Package bot provides an example bot with example commands using this worker |
cmd
|
|
Package commands provides a basic commands manager for a bot to use View the example bot under github.com/foxbot/awg/bot to see its intended use.
|
Package commands provides a basic commands manager for a bot to use View the example bot under github.com/foxbot/awg/bot to see its intended use. |
Package wumpus provides lightweight wrappers over Discord's REST and Gateway APIs.
|
Package wumpus provides lightweight wrappers over Discord's REST and Gateway APIs. |
Click to show internal directories.
Click to hide internal directories.