basic command system
This commit is contained in:
		
							parent
							
								
									c70359d412
								
							
						
					
					
						commit
						10ba1af405
					
				
					 10 changed files with 201 additions and 17 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue