-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathreplies.go
More file actions
185 lines (179 loc) · 10.3 KB
/
replies.go
File metadata and controls
185 lines (179 loc) · 10.3 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
package main
import (
"regexp"
"strings"
)
type Reply struct {
pattern string
unless string
message string
excludeChannels []string
excludeRoles []Role
onlyChannels []string
onlyRoles []Role
regex *regexp.Regexp
notRegex *regexp.Regexp
}
func init() {
for i := range replies {
replies[i].regex = regexp.MustCompile(replies[i].pattern)
if replies[i].unless != "" {
replies[i].notRegex = regexp.MustCompile(replies[i].unless)
}
}
}
var nightlies = "https://impactclient.net/ImpactInstaller.<EXT>?nightlies=true"
var replies = []Reply{
{
pattern: `forge`,
message: "Use the [installer](https://impactclient.net/) to install Forge (1.12.2 only)\nBaritone 1.16 for Forge can be downloaded from [here](https://github.com/cabaletta/baritone/releases/download/v1.6.1/baritone-standalone-forge-1.6.1.jar)",
},
{
pattern: `faq|question`,
message: "[Setup/Install FAQ](https://github.com/impactdevelopment/impactclient/wiki/Setup-FAQ)\n[Usage FAQ](https://github.com/impactdevelopment/impactclient/wiki/Usage-FAQ)",
},
{
pattern: `defender|virus|mcafee|norton|trojan|\brat\b`,
message: "[Please read this thread regarding Impact being flagged by antiviruses](https://github.com/ImpactDevelopment/ImpactIssues/wiki/Setup-FAQ#my-antivirus-says-the-installer-is-a-virus-is-it-a-virus)\n\n[Direct download link after adfly](https://impactdevelopment.github.io/?brady-money-grubbing-completed=true)",
},
{
pattern: `tutorial|(impact|install|download).*(on|for) (windows|linux|mac)`,
message: "Tutorial videos for downloading and installing the client:\n[Windows](https://www.youtube.com/watch?v=QP6CN-1JYYE)\n[Mac OSX](https://www.youtube.com/watch?v=BBO0v4eq95k)\n[Linux](https://www.youtube.com/watch?v=XPLvooJeQEI)\n",
},
{
pattern: `baritone\ssetting`,
message: "[Baritone settings list and documentation](https://baritone.leijurv.com/baritone/api/Settings.html#field.detail)",
},
{
pattern: `screenshot`,
message: "[How to take a screenshot in Minecraft](https://www.minecraft.net/en-us/article/screenshotting-guide)",
},
{
pattern: `use\sbaritone|baritone\susage|baritone\scommand|[^u]\.b|goal|goto|path`,
message: "Please read the [Baritone usage guide](https://github.com/cabaletta/baritone/blob/master/USAGE.md)",
},
{
pattern: `installe?r?|mediafire|dire(c|k)+to?\s+(linko?|url|site|page)|ad\s?f\.?ly|(ad|u)\s?block|download|ERR_CONNECTION_ABORTED|evassmat|update|infect`,
unless: `nightly|pre[- ]*release|beta|alpha|alfa|((download|get|where).*1[.]15)|multimc`,
excludeRoles: []Role{Donator},
message: "[Direct download link after AdFly](https://impactclient.net/?brady-money-grubbing-completed=true)",
},
{
pattern: `installe?r?|mediafire|dire(c|k)+to?\s+(linko?|url|site|page)|ad\s?f\.?ly|(ad|u)\s?block|download|ERR_CONNECTION_ABORTED|evassmat|update|infect`,
// this unless is so it doesnt trigger twice if it matches in both this regex and the next
unless: `premium|donat|become\s*a?\s+don(at)?or|what\*do\s*(you|i|u)\s*(get|unlock)|perks?`,
onlyRoles: []Role{Donator},
message: "You can install nightly builds of Impact using the **Impact Nightly Installer**: [EXE for Windows](" + strings.Replace(nightlies, "<EXT>", "exe", 1) + ") or [JAR for other platforms](" + strings.Replace(nightlies, "<EXT>", "jar", 1) + ").\nYou can download the normal installer [here](https://impactclient.net/?brady-money-grubbing-completed=true).",
},
{
pattern: `premium|donat|become\s*a?\s+don(at)?or|what\*do\s*(you|i|u)\s*(get|unlock)|perks?`,
// second part of unless (after col 72) is so it doesnt trigger twice if it matches in both this regex and the previous
unless: `(just|forgot|how\s*long|i\s*donated|hours?|wait)|(installe?r?|mediafire|dire(c|k)+to?\s+(linko?|url|site|page)|ad\s?f\.?ly|(ad|u)\s?block|download|ERR_CONNECTION_ABORTED|evassmat|update|infect)`,
message: "If you donate $5 or more, you will receive early access to upcoming releases through nightly builds when they are available (**eventually including 1.16.3 nightly builds!**), 1 premium mod (Ignite), a cape visible to other Impact users, a gold colored name in the Impact Discord Server, and access to #Donator-help (with faster and nicer responses). Go on the [website](https://impactclient.net/#donate) to donate. You will also need to [register](https://impactclient.net/register) your account and/or [login](https://impactclient.net/account) to get access to all the promised features",
excludeRoles: []Role{Donator},
},
{
pattern: `lite\s*loader`,
message: "[LiteLoader tutorial](https://github.com/ImpactDevelopment/ImpactIssues/wiki/Adding-LiteLoader)",
},
{
pattern: `(web\s?)?(site|page)`,
message: "[Impact Website](https://impactclient.net)",
},
{
pattern: `issue|bug|crash|error|suggest(ion)?s?|feature|enhancement`,
message: "Use the [GitHub repo](https://github.com/ImpactDevelopment/ImpactIssues/issues) to report issues/suggestions!",
},
{
pattern: `help|support`,
message: "Switch to the <#" + help + "> channel!",
excludeRoles: []Role{Donator},
excludeChannels: []string{help, betterHelp},
},
{
pattern: `help|support`,
message: "Switch to the <#" + betterHelp + "> channel!",
onlyRoles: []Role{Donator},
excludeChannels: []string{help, betterHelp},
},
{
pattern: `what(\sdoes|\sis|s|'s)?\s+franky`,
message: "[It does exactly what you think it does.](https://youtu.be/_FzInOheiRw)",
},
{
pattern: `opti\s*fine`,
message: "Use the installer to add OptiFine to Impact: [Instructions](https://github.com/ImpactDevelopment/ImpactIssues/wiki/Adding-OptiFine)",
},
{
pattern: `macros?`,
message: "Macros are in-game chat commands, they can be accessed in-game by clicking on the Impact button, then Macros.",
},
{
pattern: `change(\s*logs?|s)`,
message: "[Changelog](https://impactclient.net/changelog)",
},
{
pattern: `hack(s|ing|er|client)?`,
message: "The discussion of hacks in this Discord is prohibited to comply with the [Discord Community Guidelines](https://discord.com/guidelines)",
},
{
pattern: `dumb|retard|idiot`,
message: "Like the " + Weeb.Mention() + "s?",
onlyRoles: []Role{Weeb},
},
{
pattern: `(1\.15.*?(fucking|get|where|need|asap|update|coming|support|release|impact|version|eta|when|out|support)|(fucking|get|where|need|asap|update|coming|support|release|impact|version|eta|when|out|support).*?1\.15)`,
message: "1.15.2 has been released! Download the newest installer [here](https://impactclient.net/?brady-money-grubbing-completed=true).",
excludeRoles: []Role{Donator},
},
{
pattern: `nightly|pre[- ]*release|beta|alpha|alfa|((download|get|where).*1[.]16)`,
message: "You can install nightly builds of Impact using the **Impact Nightly Installer**: [EXE for Windows](" + strings.Replace(nightlies, "<EXT>", "exe", 1) + ") or [JAR for other platforms](" + strings.Replace(nightlies, "<EXT>", "jar", 1) + ").\nYou can download the normal installer [here](https://impactclient.net/?brady-money-grubbing-completed=true).",
onlyRoles: []Role{Donator},
},
{
pattern: `nightly|pre[- ]*release|beta|alpha|alfa|((download|get|where).*1[.]16)`,
message: "You can install nightly builds of Impact using the **Impact Nightly Installer**. Login into the [dashboard](https://impactclient.net/account) then download the nightly installer.\nYou can download the normal installer [here](https://impactclient.net/?brady-money-grubbing-completed=true).",
excludeRoles: []Role{Donator},
},
{
pattern: `schematics?`,
message: "0) Schematic file **MUST** be made in a 1.12.2 world or prior. 1) Place the .schematic file into `.minecraft/schematics`. 2) Ensure all the blocks are in your hotbar. 3) Type `#build name.schematic`",
},
{
pattern: `((crack|cracked) (launcher|account|game|minecraft))|(terramining|shiginima|(t(-|)launcher))`,
message: "Impact does not support cracked launchers. You can attempt to use the unstable Forge version, but no further support will be provided.",
},
{
pattern: `(impact|install|use).*(wiki|spammer|multimc)`,
message: "[Impact Wiki](https://github.com/ImpactDevelopment/ImpactIssues/wiki)",
},
{
pattern: `java.*(download|runtime|environment)`,
message: "[Downloads for Java Runtime Environment](https://www.java.com/download/)",
},
{
pattern: `how.+(mine|auto\s*mine)`,
message: "You can mine a specific type of block(s) by typing `#mine [number of blocks to mine] <ID> [<ID>]` in chat.\nYou can find a list of block ID names [here](https://www.digminecraft.com/lists/)",
},
{
pattern: `(1\.16.*?(update|coming|support|release|impact|version|eta|when|out|support)|(update|coming|support|release|impact|version|eta|when|out|support).*?1\.16)`,
message: "You can install nightly builds of Impact using the **Impact Nightly Installer**. Login into the [dashboard](https://impactclient.net/account) then download the nightly installer.\nYou can download the normal installer [here](https://impactclient.net/?brady-money-grubbing-completed=true).",
},
{
pattern: `(impact.+(1\.8|1\.7))|((1\.8|1\.7).impact)`,
message: "Impact for older versions is no longer availible to comply with Mojang's EULA.",
},
{
pattern: `(modpack|\bftb\b|rlcraft|skyfactory|valhelsia|pixelmon|sevtech)`,
message: "Impact is generally incompatible with modpacks and support will not be provided if you encounter bugs with them. It's likely your game will just crash on startup.",
},
{
pattern: `good bot`,
message: "tnyak yow *nuwzzwes yoww necky wecky*",
},
{
pattern: `raycon`,
message: "Before we start this video, We’d like to thank the sponsor of this video, “Raycons”. We here at the Impact dev team actually have multiple pairs of Raycons and We love them. We usually use them when We're skidding franky or when we're at home playing Minecraft. The sound quality is just as amazing as all the other top name brands and they’re half the price. The ones We're using are the everyday E25’s. They’re the best ones yet. 6 hours of playtime, seamless Bluetooth pairing, more bass, available in multiple colors, and their compact design helps get rid of background noise. We also like the fact that you can click either earbud with your finger to pause your music. Makes it super convenient if you need to stop for any reason. Go to rayconglobal.com/ImpactClient for 15% off your order.",
},
}