Move message handler to own function

Move intents into the config
Reindent files with spaces
This commit is contained in:
Michał Gdula 2025-02-28 00:34:09 +00:00
parent 78dcdc0b46
commit b93820e9d0
3 changed files with 45 additions and 41 deletions

View file

@ -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)