You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 3, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: main.go
+43-13Lines changed: 43 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,9 @@ var (
25
25
conf=&config{}
26
26
emojiRegex=regexp.MustCompile("<:(.*?):(.*?)>")
27
27
loginTime time.Time
28
+
errorLog*log.Logger
29
+
infoLog*log.Logger
30
+
logF*os.File
28
31
)
29
32
30
33
funccreateConfig() error {
@@ -55,11 +58,9 @@ func createConfig() error {
55
58
}
56
59
57
60
funcinputToken() error {
58
-
fmt.Println("\nFirst, I'll need your user token. To do that, follow these instructions:")
59
-
fmt.Println("1. Type Ctrl-Shift-i\n2. Click on the tab labelled 'Application'\n3. Click 'Local Storage', and then https://discordapp.com")
60
-
fmt.Println("4. Then copy paste the long string of random characters here, but WITHOUT THE QUOTATION MARKS! Thats very important")
61
+
fmt.Println("\nFirst, I'll need your user token. To do that, follow these instructions:\n1. Type Ctrl-Shift-i\n2. Click on the tab labelled 'Application'\n3. Click 'Local Storage', and then https://discordapp.com")
62
+
fmt.Print("4. Then copy paste the long string of random characters here, but WITHOUT THE QUOTATION MARKS! Thats very important\nPaste your token here: ")
61
63
62
-
fmt.Print("\nPaste your token here: ")
63
64
fmt.Scanln(&conf.Token)
64
65
err:=testLogin()
65
66
iferr!=nil {
@@ -71,13 +72,14 @@ func inputToken() error {
71
72
}
72
73
73
74
funcinputPrefix() {
74
-
fmt.Println("\nNext up, I'll need a prefix of your preference! This will be used to call your commands.")
75
+
fmt.Println("\nNext up, I'll need a prefix of your preference! This will be used to call your commands.\nYou can choose to have a space between your prefix and command after you input your prefix")
75
76
fmt.Println("Example: prefix => ||\n||help => shows the help menu")
76
77
fmt.Print("\nType your chosen prefix here: ")
78
+
77
79
fmt.Scanln(&conf.Prefix)
78
-
fmt.Print("Do you want a space at the end of your prefix? (y/n) ")
79
80
varwsstring
80
81
for {
82
+
fmt.Print("Do you want a space at the end of your prefix? (y/n) ")
0 commit comments