feat: leveling system
This commit is contained in:
1 parent
0354fdc032
commit
2bce787c05
24 files changed
+1840
-3
No files matched your search
@@ -2,16 +2,26 @@ package commands
|
||||
|
||||
import (
|
||||
"velox-bot/internal/commands/fun"
|
||||
"velox-bot/internal/commands/help"
|
||||
cmdlevel "velox-bot/internal/commands/level"
|
||||
|
||||
"github.com/bwmarrin/discordgo"
|
||||
)
|
||||
|
||||
var AllCommands = []*discordgo.ApplicationCommand{
|
||||
fun.PingCommand,
|
||||
help.HelpCommand,
|
||||
cmdlevel.LevelConfigCommand,
|
||||
cmdlevel.RankCommand,
|
||||
cmdlevel.LeaderboardCommand,
|
||||
}
|
||||
|
||||
var handlers = map[string]func(s *discordgo.Session, i *discordgo.InteractionCreate){
|
||||
"ping": fun.HandlePing,
|
||||
"help": help.HandleHelp,
|
||||
"slvl": cmdlevel.HandleLevelConfig,
|
||||
"rank": cmdlevel.HandleRank,
|
||||
"leaderboard": cmdlevel.HandleLeaderboard,
|
||||
}
|
||||
|
||||
func HandleInteraction(s *discordgo.Session, i *discordgo.InteractionCreate) {
|
||||
|
||||
Reference in new issue
Block a user