You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
649 B

7 years ago
  1. package main
  2. import "fmt"
  3. const version = "0.1-dev"
  4. func main() {
  5. c.Yellow("echo-botnet")
  6. fmt.Println("---------------")
  7. c.Cyan("echo-botnet initialized")
  8. c.Purple("https://github.com/arnaucode/echo-botnet")
  9. fmt.Println("version " + version)
  10. keywords := readKeywordsConfig()
  11. c.Cyan("keywords configured: ")
  12. fmt.Println(keywords)
  13. replies := readRepliesConfig()
  14. c.Cyan("replies configured: ")
  15. fmt.Println(replies)
  16. fmt.Println("Reading botsConfig.json file")
  17. botnet := readConfigTokensAndConnect()
  18. c.Cyan("[list of configured bots]:")
  19. for _, v := range botnet.ScreenNames {
  20. c.Cyan(v)
  21. }
  22. streamTweets(botnet, keywords, replies)
  23. }