feat(command): fetch stats
This commit is contained in:
parent
d98e5704f9
commit
e00f05d7c6
5 changed files with 72 additions and 4 deletions
4
main.go
4
main.go
|
@ -84,6 +84,9 @@ func main() {
|
|||
creditsCmd := cmd.New("credits", "Crédits").
|
||||
SetHandler(commands.Credits)
|
||||
|
||||
statsCmd := cmd.New("stats", "Affiche des stats :D").
|
||||
SetHandler(commands.Stats)
|
||||
|
||||
innovations, err := gokord.LoadInnovationFromJson(updatesData)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
@ -116,6 +119,7 @@ func main() {
|
|||
resetCmd,
|
||||
resetUserCmd,
|
||||
creditsCmd,
|
||||
statsCmd,
|
||||
},
|
||||
AfterInit: func(dg *discordgo.Session) {
|
||||
d := 24 * time.Hour
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue