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

@@ -4,10 +4,10 @@ import (
"github.com/disgoorg/disgo/discord"
"github.com/disgoorg/disgo/events"
"github.com/sirupsen/logrus"
"github.com/vaporvee/acecore/struct_cmd"
"github.com/vaporvee/acecore/cmd"
)
var Plugin = &struct_cmd.Plugin{
var Plugin = &cmd.Plugin{
Name: "testplugin",
Register: func(e *events.Ready) error {
app, err := e.Client().Rest().GetCurrentApplication()
@@ -17,7 +17,7 @@ var Plugin = &struct_cmd.Plugin{
logrus.Infof("%s has a working plugin called \"testplugin\"", app.Bot.Username)
return nil
},
Commands: []struct_cmd.Command{
Commands: []cmd.Command{
{
Definition: discord.SlashCommandCreate{
Name: "testplugincommand",