commands

package
v0.0.0-...-3dc37b2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Balance

func Balance(s *discordgo.Session, m *discordgo.MessageCreate, input *structs.CmdInput)

Balance - Output the users balance to the chat

func BotInvite

func BotInvite(s *discordgo.Session, m *discordgo.MessageCreate, input *structs.CmdInput)

BotInvite - Sends back the invite link to the bot

func Debug

Debug - prints some debug information

func LeaveServer

func LeaveServer(s *discordgo.Session, m *discordgo.MessageCreate, input *structs.CmdInput)

LeaveServer - Leaves the server of the guild ID provided

func Ping

Ping - Sends back a 'Pong' message

func Pong

Pong updates the ping message with the ping duration It parses the time and calculates the diff between the cached time and the new time The difference in miliseconds is edited on the message The id is cleared from the cache

func Presence

func Presence(s *discordgo.Session, m *discordgo.MessageCreate, input *structs.CmdInput)

Presence - Reloads the configuration without restarting the application

func Profile

func Profile(s *discordgo.Session, m *discordgo.MessageCreate, input *structs.CmdInput)

func ProfileRefreshInteraction

func ProfileRefreshInteraction(authorID string, author *discordgo.User, me *discordgo.MessageEdit)

func ProfileUpdateMessageEdit

func ProfileUpdateMessageEdit(user *database.User, work *database.Work, daily *database.Daily, author *discordgo.User, me *discordgo.MessageEdit)

func Reload

Reload - Reloads the configuration without restarting the application

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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