bot

package
v0.0.0-...-ad5ca02 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HelloCommandName = "hello"
View Source
var MilpacCommandName = "milpac"
View Source
var SyncCommandName = "sync"

Functions

func AskToConnectDiscord

func AskToConnectDiscord(s *discordgo.Session, i *discordgo.InteractionCreate)

func ErrorWithCommand

func ErrorWithCommand(s *discordgo.Session, i *discordgo.InteractionCreate)

func HandleHello

func HandleHello(s *discordgo.Session, i *discordgo.InteractionCreate)

func HandleMilpac

func HandleMilpac(s *discordgo.Session, i *discordgo.InteractionCreate)

func HandleSync

func HandleSync(s *discordgo.Session, i *discordgo.InteractionCreate)

func HelloCommand

func HelloCommand() *discordgo.ApplicationCommand

func MilpacCommand

func MilpacCommand() *discordgo.ApplicationCommand

func SyncCommand

func SyncCommand() *discordgo.ApplicationCommand

Types

type Bot

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

func New

func New(token string) (Bot, error)

func (Bot) SpecialClearOldUsers

func (b Bot) SpecialClearOldUsers(guildId string)

func (Bot) Start

func (b Bot) Start(appId string, guildId string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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