commands

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commands

type Commands struct {
	// contains filtered or unexported fields
}

func InitCommands

func InitCommands(config *conf.Config) *Commands

func (*Commands) Ban

func (c *Commands) Ban(ctx context.Context, b *bot.Bot, update *models.Update)

Ban user on /ban

func (*Commands) Exit

func (c *Commands) Exit(ctx context.Context, b *bot.Bot, update *models.Update)

Exit bot on /exit

func (*Commands) Kick

func (c *Commands) Kick(ctx context.Context, b *bot.Bot, update *models.Update)

Kick user on /kick

func (*Commands) Mute

func (c *Commands) Mute(ctx context.Context, b *bot.Bot, update *models.Update)

Mute user on /mute

func (*Commands) TLDR

func (c *Commands) TLDR(ctx context.Context, b *bot.Bot, update *models.Update)

Send Yandex 300 response on link

func (*Commands) Unban

func (c *Commands) Unban(ctx context.Context, b *bot.Bot, update *models.Update)

Unban user on /unban

func (*Commands) Unmute

func (c *Commands) Unmute(ctx context.Context, b *bot.Bot, update *models.Update)

// Unmute user on /unmute

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL