mirror of
https://github.com/Fluffy-Bean/Lynxie.git
synced 2025-05-19 09:54:53 +00:00
Move message handler to own function
Move intents into the config Reindent files with spaces
This commit is contained in:
parent
78dcdc0b46
commit
b93820e9d0
3 changed files with 45 additions and 41 deletions
6
main.go
6
main.go
|
@ -5,12 +5,14 @@ import (
|
|||
|
||||
"github.com/Fluffy-Bean/lynxie/app"
|
||||
"github.com/Fluffy-Bean/lynxie/commands"
|
||||
"github.com/bwmarrin/discordgo"
|
||||
)
|
||||
|
||||
func main() {
|
||||
a := app.NewApp(app.Config{
|
||||
Token: os.Getenv("TOKEN"),
|
||||
Prefix: "?",
|
||||
Prefix: "?",
|
||||
Token: os.Getenv("TOKEN"),
|
||||
Intents: discordgo.IntentsGuildMessages,
|
||||
})
|
||||
|
||||
commands.RegisterMetaCommands(a)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue