-
Notifications
You must be signed in to change notification settings - Fork 0
/
misc.go
77 lines (61 loc) · 2.46 KB
/
misc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
package main
import "fmt"
import "strconv"
func startText() string {
var text string
fmt.Println("Start Text")
text = ("The Ultimate Bot For Telegram!!!\nIncorporates:\n- Tinbot\n- Cryptoprices\n- Stockbot\n- TheTime\nThe code for this is opensource and can be found at https://github.com/gageco/TheUltimateTelegramBot.\n\nIf you want to buy me a coffee or you liked this bot, please feel free to send me some coin at the following:\nEthereum: 0x2A7D65d4F6C148c7dfeEc76836E8c5EE02dc5f83\nBitcoin: 1NcWtC3McnZwebyhkruadg7zaWKNYAZgmW\n")
return text
}
func invalidInput(arg string) string {
fmt.Println("Invalid Input:",arg)
return "Invalid Input"
}
func rimshotCommand() string {
fmt.Println("Rimshot command")
return "https://giphy.com/gifs/c8bJDVz7i9KRW/html5"
}
func beeCommand() string {
return "https://cdn.modernfarmer.com/wp-content/uploads/2013/06/bee-hero.jpg"
}
func bee2Command() string {
return "https://i.imgur.com/nTBgiJo.jpg"
}
func update() string {
return "Latest Update:\nAdded Ethereum price to coin prices"
}
func helpCommand(arg string) string {
if arg == "stock" {
return "/stock [stock symbol]\nExample: /stock goog"
} else if arg == "coin" {
return "/coin [coin symbol]\nExample: /coin eth"
} else if arg == "findbabe" {
return "/findbabe [babeid]\nExample: /findbabe {hashID}"
} else {
return "Cryptocoin: /coin eth\nStocks: /stock goog\nThe Time: /whattimeisit\nBabe: /babe\nFind Babe: /findbabe [BabeID]\nRimshot: /rimshot\n\nIf you want to buy me a coffee or you liked this bot, please feel free to send me some coin at the following:\nEthereum: 0x6e5C41a2f9E00eeA4F3Dd09eC9CF847821691cEc\nBitcoin: 3G4bq76MEUFDaUmRjgByuZXHPqkSEWSCbX\n"
}
}
func abeCommand() string {
fmt.Println("Abe Command")
return "http://img.quotery.com/pictures/2013/02/abraham-lincoln.jpg"
}
func kbntCommand() string {
fmt.Println("KBNT Command")
return "TO THE MOON!!!! GET THE MONEY!!!! :)!"
}
func getTheTime() string {
fmt.Println("Respect Women Command")
return "TIME TO RESPECT WOMEN!!!!!"
}
func bcic1Amount(currentAmount string) string {
initAmount := 35545.00*.95
currentAmountFloat, err := strconv.ParseFloat(currentAmount, 64)
if err != nil {
return "Error, please dont use commas"
}
currentAmountFloat = currentAmountFloat*.8
percent := (currentAmountFloat - initAmount)/initAmount
percentString := strconv.FormatFloat(percent, 'f', 6, 64)[:5]
// fmt.Println(percentString)
return percentString + "x"
}