core

package
v0.0.0-...-85b1c04 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: MPL-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CB_DATANULL int64 = iota - 1
	CB_ERROR
	CB_MEDIA_UP
	CB_MEDIA_DOWN
	CB_MEDIA_SHOW
	CB_MEDIA_SEARCH_MORE
	CB_MEDIA_SEARCH_LESS
)

Variables

This section is empty.

Functions

func AbraxasCommand

func AbraxasCommand(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)

AbraxasCommand handles commands for abraxas (add, remove)

func AbraxasHandler

func AbraxasHandler(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)

AbraxasHandler handles message text like: `abraxas ...`

func AliasCommand

func AliasCommand(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)

AliasCommand handles the `/alias <from> <to>` command

func AnyCommand

func AnyCommand(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)

AnyCommand handles any command sent to the chat, searches for aliases and dispatch the update accordingly

func CalloutCommand

func CalloutCommand(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)

CalloutCommand handles `/callout <name> <rest>`

func CalloutMessage

func CalloutMessage(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)

func DiceCommand

func DiceCommand(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)

DiceCommand handles the `/dice <dice>[ <dice>]` command

func GrumpyCommand

func GrumpyCommand(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)

Grumpy

func Listen

func Listen(ctx context.Context, b *tg.Bot, cfg *config.Config) error

func MediaBottomtenCommand

func MediaBottomtenCommand(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)

func MediaForgetCommand

func MediaForgetCommand(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)

func MediaRememberCommand

func MediaRememberCommand(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)

func MediaSearchCommand

func MediaSearchCommand(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)

Media

func MediaSearchOffsetCallback

func MediaSearchOffsetCallback(ctx context.Context, b *tg.Bot, update *tg.Update, act, offset int64) error

func MediaToptenCommand

func MediaToptenCommand(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)

func MediaToptwentyCommand

func MediaToptwentyCommand(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)

func OnCallback

func OnCallback(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)

func OnMessage

func OnMessage(ctx context.Context, b *tg.Bot, update *tg.Update) (*tg.Sendable, error)

Any Message

Types

This section is empty.

Jump to

Keyboard shortcuts

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