Skip to content

Commit

Permalink
added alert test command
Browse files Browse the repository at this point in the history
  • Loading branch information
bytebone committed Feb 7, 2025
1 parent d76b7ed commit a09e103
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
13 changes: 13 additions & 0 deletions internal/commands/AlertTestCommand.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package commands

import (
"context"

"github.com/bytebone/verbilobot/internal/admin"
"github.com/go-telegram/bot"
"github.com/go-telegram/bot/models"
)

func AlertTest(ctx context.Context, b *bot.Bot, update *models.Update) {
admin.Alert(ctx, b, "This is a test alert")
}
9 changes: 9 additions & 0 deletions internal/commands/CommandList.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ var CommandList = []Command{
MatchType: bot.MatchTypePrefix,
HandlerFunc: Privacy,
},

// {
// Command: "alerttest",
// Description: "Test the admin alert",
// HandlerType: bot.HandlerTypeMessageText,
// MatchType: bot.MatchTypePrefix,
// HandlerFunc: AlertTest,
// },

// {
// Command: "chatid",
// Description: "Get current chat ID",
Expand Down

0 comments on commit a09e103

Please sign in to comment.