made simplefun plugin

This commit is contained in:
2024-04-14 22:26:30 +02:00
parent 410c28bda9
commit d814d39cf1
22 changed files with 96 additions and 39 deletions

View File

@@ -0,0 +1,20 @@
package main
import (
"github.com/disgoorg/disgo/events"
"github.com/sirupsen/logrus"
"github.com/vaporvee/acecore/cmd"
)
var Plugin = &cmd.Plugin{
Name: "Simple Fun",
Register: func(e *events.Ready) error {
app, err := e.Client().Rest().GetCurrentApplication()
if err != nil {
return err
}
logrus.Infof("%s has a working plugin called \"testplugin\"", app.Bot.Username)
return nil
},
Commands: []cmd.Command{cmd_ask, cmd_cat, cmd_dadjoke},
}