Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
3bf763f196
|
|||
8f9205fbf0
|
|||
e1bae3edea
|
|||
34fdf453c1
|
@@ -58,7 +58,10 @@ import (
|
||||
func main() {
|
||||
//bolt defaults the command indicator to '.' however that can be changed with the options
|
||||
//Example: bolt.New(bolt.WithIndicator('!')) would support commands like !ping
|
||||
b := bolt.New(bolt.WithLogLevel(bolt.LogLevelCmd))
|
||||
b, err := bolt.New(bolt.WithLogLevel(bolt.LogLevelCmd))
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
b.AddCommands(
|
||||
// basic ping pong command, .ping can be run at anytime by anyone and will reply "pong"
|
||||
@@ -95,11 +98,12 @@ func main() {
|
||||
)
|
||||
|
||||
//start is a blocking call that handles safe-shutdown, all configuration and setup should be done before calling Start()
|
||||
err := b.Start()
|
||||
err = b.Start()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
## Development
|
||||
|
3
bolt.go
3
bolt.go
@@ -20,7 +20,8 @@ const (
|
||||
dg.IntentGuildMembers |
|
||||
dg.IntentGuildPresences |
|
||||
dg.IntentMessageContent |
|
||||
dg.IntentsGuildMessages
|
||||
dg.IntentsGuildMessages |
|
||||
dg.IntentGuildMessageReactions
|
||||
)
|
||||
|
||||
// basic bot structure containing discordgo connection as well as the command map
|
||||
|
37
message.go
37
message.go
@@ -6,14 +6,35 @@ import "fmt"
|
||||
type Reaction string
|
||||
|
||||
const (
|
||||
ReactionThumbsUp Reaction = ":+1:"
|
||||
ReactionThumbsDown Reaction = ":-1:"
|
||||
ReactionPointUp Reaction = ":point_up:"
|
||||
ReactionPointDown Reaction = ":point_down:"
|
||||
ReactionHotdog Reaction = ":hotdog:"
|
||||
ReactionGiraffe Reaction = ":giraffe:"
|
||||
ReactionWatermelon Reaction = ":watermelon:"
|
||||
ReactionNoPedestrians Reaction = ":no_pedestrian:"
|
||||
ReactionThumbsUp Reaction = ":+1:"
|
||||
ReactionThumbsDown Reaction = ":-1:"
|
||||
ReactionHundred Reaction = ":100:"
|
||||
ReactionHeart Reaction = ":heart:"
|
||||
ReactionPinkHeart Reaction = ":pink_heart:"
|
||||
ReactionOrangeHeart Reaction = ":orange_heart:"
|
||||
ReactionYellowHeart Reaction = ":yellow_heart:"
|
||||
ReactionGreenHeart Reaction = ":green_heart:"
|
||||
ReactionBlueHeart Reaction = ":blue_heart:"
|
||||
ReactionBlackHeart Reaction = ":black_heart:"
|
||||
ReactionPointUp Reaction = ":point_up:"
|
||||
ReactionPointDown Reaction = ":point_down:"
|
||||
ReactionHotdog Reaction = ":hotdog:"
|
||||
ReactionDog Reaction = ":dog:"
|
||||
ReactionCat Reaction = ":cat:"
|
||||
ReactionMonkey Reaction = ":monkey:"
|
||||
ReactionGiraffe Reaction = ":giraffe:"
|
||||
ReactionDuck Reaction = ":duck:"
|
||||
ReactionGoose Reaction = ":goose:"
|
||||
ReactionWatermelon Reaction = ":watermelon:"
|
||||
ReactionHoney Reaction = ":honey_pot:"
|
||||
ReactionSandwich Reaction = ":sandwich:"
|
||||
ReactionPepper Reaction = ":hot_pepper:"
|
||||
ReactionNoPedestrians Reaction = ":no_pedestrian:"
|
||||
ReactionExclamation Reaction = ":exclamation:"
|
||||
ReactionDoubleExclamation Reaction = ":bangbang:"
|
||||
ReactionSkull Reaction = ":skull:"
|
||||
ReactionSpeakingHead Reaction = ":speaking_head:"
|
||||
ReactionGreenCheck Reaction = ":white_check_mark:"
|
||||
)
|
||||
|
||||
// information about attachments to messages
|
||||
|
Reference in New Issue
Block a user