package
2.1.0+incompatible
Repository: https://github.com/pixeltopic/sayori.git
Documentation: pkg.go.dev

# README

example: middleware

middleware is a basic Discord bot that has a simple Checker middleware defined.

This middleware will be run when the command .p is invoked, and will determine whether the user calling it has admin privileges.

run

go build

./middlewares -t <discord bot token>

# Variables

Variables used for command line parameters.

# Structs

Checker checks if a user has admin privilege.
Prefix loads a prefix.
Privilege is a privileged command only admins can use.