basic command system

This commit is contained in:
Cynthia Foxwell 2023-07-08 14:51:26 -06:00
parent c70359d412
commit 10ba1af405
10 changed files with 201 additions and 17 deletions

View file

@ -17,6 +17,7 @@ type ComcordState struct {
AFK bool
MessageQueue []discordgo.Message
LastChannel map[string]string
LastDM string
}
var state ComcordState
@ -100,3 +101,11 @@ func GetMessageQueue() []discordgo.Message {
func AddMessageToQueue(msg discordgo.Message) {
state.MessageQueue = append(state.MessageQueue, msg)
}
func GetLastDM() string {
return state.LastDM
}
func SetLastDM(value string) {
state.LastDM = value
}