forked from an/flokati
		
	markov.go: don't handle messages starting with '!'
This commit is contained in:
		
							parent
							
								
									7cc0768e2a
								
							
						
					
					
						commit
						d4344fbcde
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -39,7 +39,9 @@ func init() {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
func markovHandleMessage(m *Message) {
 | 
			
		||||
 | 
			
		||||
	if len(m.Text) == 0 || m.Text[0] == "!" {
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
	tok := strings.Split(m.Text, " ")
 | 
			
		||||
	if tok[0] == "!talk" {
 | 
			
		||||
		if len(tok) < 2 {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue