bot

package
v0.0.0-...-e5942d8 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BotID string

Functions

func GetBot

func GetBot() *discordgo.Session

func GetBotID

func GetBotID() string

func MessageHandler

func MessageHandler(s *discordgo.Session, m *discordgo.MessageCreate)

func NormalizeMessage

func NormalizeMessage(message string) string

func ParseCommand

func ParseCommand(message string) (string, string)

return the eparsed command and remove that command from the message Return tha matched command and the striped message

func Start

func Start()

func ValidateMessage

func ValidateMessage(m *discordgo.MessageCreate) (bool, string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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