role updates

- bolt will now ensure role is present before exec payload
- readme updates
- removed author struct since roles are checked in bolt framework
This commit is contained in:
2025-06-04 16:47:50 -04:00
parent 381073dc39
commit 6ae84c0d5b
3 changed files with 22 additions and 12 deletions

View File

@@ -6,7 +6,7 @@ Base Discord bot framework
bolt is a wrapper for Discordgo to provide very quick and easy setup for simple Discord bots. The only code required to run bolt is the command handler functions, this provides developers with the ability to have text-based commands on a Discord server without all the bootstrapping and setup usually required. Any strings returned from the Payload function will be sent back to the Discord server as a reply to the command message.
## Basic Usage
bolt allows developers to create a Discord bot with simply a discord bot token and a few lines of Go code, the below example creates a Discord bot and registers two commands: ".test" and ".time"
bolt allows developers to create a Discord bot with simply a discord bot token and a few lines of Go code, the below example creates a Discord bot and registers three commands: ".test", ".time", and ".role"
```go
package main