Documentation ¶
Index ¶
- Constants
- Variables
- type Response
- func AddGame(discordID, gameName string, maxPlayers uint8) ([]Response, error)
- func Deop(discordID string) ([]Response, error)
- func Disable(discordID string) ([]Response, error)
- func Enable(discordID string) ([]Response, error)
- func Games(players uint8) ([]Response, error)
- func Help(discordID string) ([]Response, error)
- func Inspire() ([]Response, error)
- func Laugh() ([]Response, error)
- func Op(discordID string) ([]Response, error)
- func Play(uri string) ([]Response, error)
- func Poll(options []string) ([]Response, error)
- func Reg(discordID, realname string) ([]Response, error)
- func Source() ([]Response, error)
- func Summon(mentionTag string) ([]Response, error)
- func WhoIs(discordID string) ([]Response, error)
Constants ¶
const AddGameCmd = "addgame"
AddGameCmd - constant indicating the string the command should be
const DeopCmd = "deop"
DeopCmd - constant indicating the string the command should be
const DisableCmd = "disable"
DisableCmd - constant indicating the string the command should be
const EnableCmd = "enable"
EnableCmd - constant indicating the string the command should be
const GamesCmd = "games"
GamesCmd - constant indicating the string the command should be
const HelpCmd = "help"
HelpCmd - constant indicating the string the command should be
const InspireCmd = "inspire"
InspireCmd - constant indicating the string the command should be
const LaughCmd = "laugh"
LaughCmd - constant indicating the string the command should be
const OpCmd = "op"
OpCmd - constant indicating the string the command should be
const PlayCmd = "play"
PlayCmd - constant indicating the string the command should be
const PollCmd = "poll"
PollCmd - constant indicating the string the command should be
const RegCmd = "reg"
RegCmd - constant indicating the string the command should be
const SourceCmd = "source"
SourceCmd - constant indicating the string the command should be
const SummonCmd = "summon"
SummonCmd - constant indicating the string the command should be
const WhoIsCmd = "whois"
WhoIsCmd - constant indicating the string the command should be
Variables ¶
var PermissionList = map[string]database.UserRole{ AddGameCmd: database.MEMBER, DeopCmd: database.ADMIN, DisableCmd: database.OFFICER, GamesCmd: database.MEMBER, EnableCmd: database.OFFICER, HelpCmd: database.INACTIVE, InspireCmd: database.REGISTERED, LaughCmd: database.REGISTERED, OpCmd: database.ADMIN, PlayCmd: database.REGISTERED, PollCmd: database.REGISTERED, RegCmd: database.OFFICER, SourceCmd: database.INACTIVE, WhoIsCmd: database.MEMBER, SummonCmd: database.MEMBER, }
PermissionList - Permissions for individual commands acts as a "must have AT LEAST" this role, meaning anyone with a higher role will be able to use it.
var ProgrammedCommands = map[string]bool{ AddGameCmd: true, DeopCmd: true, DisableCmd: true, GamesCmd: true, EnableCmd: true, HelpCmd: true, InspireCmd: true, LaughCmd: true, OpCmd: true, PlayCmd: true, PollCmd: true, RegCmd: true, SourceCmd: true, WhoIsCmd: true, SummonCmd: true, }
ProgrammedCommands - commands for lookup whether a string is a valid command or not
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct { ShouldRespondToUser bool ShouldRespondToChannel bool ShouldSendVoice bool VoiceOutput *dca.EncodeSession Message string ReactionsToAdd []string }
Response - struct indicating what the bot should do after a command is executed
func Games ¶
Games - list the games that can be played by the number passed, considering player count
func Reg ¶
Reg - register the user with Tito for advanced features (really all it is it records the real name) so whois works.