Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. package main
  2. import (
  3. "fmt"
  4. "regexp"
  5. )
  6.  
  7. package discordgo
  8. import "github.com/bwmarrin/discordgo"
  9.  
  10. func donateCommand(x string) {
  11.  
  12. }
  13.  
  14. func main(){
  15. dg.AddHandler(messageCreate)
  16.  
  17. var input string
  18.  
  19. fmt.Println("Hello! I'm GuillBot!")
  20. fmt.Scanln(&input)
  21.  
  22. command, b := regexp.MatchString(";", input)
  23.  
  24. b = b //make error detect later
  25.  
  26. if command == true {
  27. donate, null := regexp.MatchString("donate") //Donation command detect
  28. null = null //useless
  29. if donate == true {donateCommand(input)}
  30.  
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement