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