-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
29 lines (23 loc) · 936 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package main
import (
"github.com/theovidal/onyxcord"
"github.com/BecauseOfProg/bop-le-bricoleur/commands"
)
func main() {
bot := onyxcord.RegisterBot("Bop Le Bricoleur")
// bot.RegisterCommand("archive", commands.Archive()) TODO: make permissions work in onyxcord
bot.RegisterCommand("ping", commands.Ping())
bot.RegisterCommand("poll", commands.Poll())
// bot.RegisterCommand("reactionRole", reaction_role.ReactionRole())
bot.RegisterCommand("weather", commands.Weather())
/*bot.Client.AddHandler(func(_ *discordgo.Session, message *discordgo.MessageDelete) {
handlers.ReactionRoleHandlerDelete(&bot, message)
})
bot.Client.AddHandler(func(_ *discordgo.Session, reaction *discordgo.MessageReactionAdd) {
handlers.ReactionRoleAdd(&bot, reaction)
})
bot.Client.AddHandler(func(_ *discordgo.Session, reaction *discordgo.MessageReactionRemove) {
handlers.ReactionRoleRemove(&bot, reaction)
})*/
bot.Run(true)
}