Exemple #1
0
func main() {
	fmt.Println(c.CL + c.Y + "Welcome to Magic Eight Ball.")
	fmt.Println("Enter your questions below: " + c.X)
	for {
		text := input.Ask(c.Y + "--> " + c.X)

		if strings.Contains(text, "die") {

			fmt.Println(c.Random() + "I don't deal with pity mortal worries." + c.X)

		} else if strings.Contains(text, "love") {

			fmt.Println(c.Random() + "Blah Blah Blah.. Love whatever. Not my problem." + c.X)

		} else if strings.Contains(text, "exit") {

			utils.Bye()

		} else {

			answer := choice.Strings(answers)
			fmt.Println(c.Random() + answer + c.X)

		}
	}
}
Exemple #2
0
func roll(time) {
	done := 0
	for done < time {
		num := r.Strings(dice)
		fmt.Println(c.Rc() + num)
	}
}
Exemple #3
0
func main() {
	fmt.Println()
	fmt.Println(c.G + "Welcome to excuseBot")
	fmt.Println("Here is your excuse, now go back to Reddit!" + c.X)
	//	for {
	//		input.Ask("--> " + c.B3)
	answer := choice.Strings(answers)
	fmt.Println(c.R + answer + c.X)
	//	}
	fmt.Println()
}
Exemple #4
0
func main() {
	fmt.Println(c.CL + c.R + "MAGIC EIGHT BALLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL.")
	fmt.Println(c.X + c.R + "GIMME A QUESTION OR SOMETHING.")
	for true {
		question := input.Ask(c.X + c.R + "> " + c.B3)
		if strings.Contains(question, "love") {
			fmt.Println(c.R + "u w0t m8. Srsly? Love? Stahp.")
		} else if strings.Contains(question, "bye") {
			bye()
		} else {
			answer := choice.Strings(answers)
			fmt.Println(c.Random() + answer + c.X)
		}
	}
}
Exemple #5
0
func main() {
	fmt.Println(c.CL + c.Y + "Welcome to the magic eight ball.")
	fmt.Println("Enter your yes or no questions below:" + c.X)
	for {
		question := input.Ask("--> " + c.B3)
		if strings.Contains(question, "die") ||
			strings.Contains(question, "death") {
			fmt.Println(c.Random() + "I don't deal in death." + c.X)
		} else if strings.Contains(question, "love") {
			fmt.Println(c.Random() + "I always get love wrong." + c.X)
		} else if strings.Contains(question, "kiss ma booty cheeks") {
			fmt.Println(c.Random() + "as a quote from mr.rob cut that crap off!" + c.X)
		} else {
			answer := choice.Strings(answers)
			fmt.Println(c.Random() + answer + c.X)
		}
	}

}