update
This commit is contained in:
		
							parent
							
								
									7cc675bfda
								
							
						
					
					
						commit
						e8b918f3f0
					
				@ -73,10 +73,10 @@ func messageCreateEvt(s *discordgo.Session, evt *discordgo.MessageCreate) {
 | 
			
		||||
 | 
			
		||||
	for _, it := range acts {
 | 
			
		||||
		res := selectAction(info, it.Key, it.Value, payload)
 | 
			
		||||
		// TODO: command result parse message type
 | 
			
		||||
		cmdmodel.Value = strings.ReplaceAll(cmdmodel.Value, fmt.Sprintf("{{%s}}", it.Origin), res)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// TODO: switch case message response format
 | 
			
		||||
	client.SendMessage(channelID, cmdmodel.Value)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user