/
cmd_dynamic.go
227 lines (210 loc) · 3.79 KB
/
cmd_dynamic.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
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
package commands
import (
"bytes"
"math/rand"
"strings"
"github.com/bwmarrin/discordgo"
"github.com/Southclaws/cj/types"
)
var scripts = []string{
"3D Tryg",
"AFK",
"ATM Machine System",
"ATM Machine's",
"ATM System",
"ATM's",
"Admin-Vehicle Lock - for all u lazy ppl!!!",
"Animations",
"Backpack",
"Bash",
"Bazookas System",
"Biz",
"Bomb System",
"Boobs",
"Business",
"Business v1.0",
"Business v1.0-R1",
"Business v1.0-R2",
"Business v1.0-R3",
"Business v1.0-R3.1",
"Buy Weapon And Kits",
"Car Ownership System",
"Categories",
"Checkpoints",
"Circles",
"Company",
"Dialog Gang Bang System",
"Dialog Gang System",
"Dialog Maker",
"Dildo System",
"Door System",
"EPIC HOUSE",
"EnEx",
"Entrance",
"Fire-Bin",
"GPS",
"Gang Bang",
"Gang",
"Garage",
"Garbage Collector",
"Gate",
"Gates",
"Guild System",
"Guild",
"Hot Coffee",
"House System",
"House Creating!",
"House",
"House-Biz System",
"House-Business System",
"Ice Cream Creation",
"IconMaker",
"Interior",
"Interiors",
"Job Creation",
"Large Arrays",
"Material Text",
"Media Dialog",
"Menus",
"Milf",
"Milf Gang Bang",
"Mom",
"Mom Gang Bang",
"Myth Creator",
"News",
"Org Creation",
"PISD",
"Player Account Data",
"Player Enumerator",
"Position save system",
"PowerShell",
"Race system",
"Rules ← Using HTTP!",
"Semi Dynamic System",
"Server Signature Generator",
"Short Arrays",
"Stingers",
"Stores",
"Street w/ sign",
"System",
"Teleport",
"Telnet Client",
"Telnet Server",
"Update",
"VEHICLES",
"Vehicle & Dealership",
"Vehicle Creator",
"Vehicle Spawn Menu",
"Vehicle System",
"Vertify",
"Vibrator System",
"Weapon control",
"Weapon shop",
}
var features = []string{
" ← USING HTTP!",
"0.3d Compatible",
"1 line",
"3D Label",
"Can also be used for missions!",
"DJSON",
"Draft",
"Dynamic!",
"Map icon",
"MSSQL",
"MySQL",
"Object",
"Pickup",
"SQL",
"SQLite",
"Saves + Loads Through MySQL!",
"Scripting SpeedArt Video",
"TextDraw",
"User Friendly",
"account vertification",
"for Roleplay",
"loading & saving",
"pisd",
"semi dynamicness",
"streamer",
"with advanced anti db",
"zcmd",
}
func makeDynamic() string {
buf := bytes.NewBuffer(nil)
style := rand.Intn(4)
switch style {
case 0:
buf.WriteString("dynamic")
case 1:
buf.WriteString("Dynamic")
case 2:
buf.WriteString("DYNAMIC")
case 3:
buf.WriteString("[DYNAMIC]")
}
buf.WriteString(" ")
script := scripts[rand.Intn(len(scripts))]
switch rand.Intn(3) {
case 0:
buf.WriteString(script)
case 1:
buf.WriteString(strings.ToTitle(script))
case 2:
buf.WriteString(strings.ToUpper(script))
}
buf.WriteString(" ")
if rand.Intn(100) < 50 {
buf.WriteString("and ")
script := scripts[rand.Intn(len(scripts))]
switch rand.Intn(3) {
case 0:
buf.WriteString(script)
case 1:
buf.WriteString(strings.ToTitle(script))
case 2:
buf.WriteString(strings.ToUpper(script))
}
buf.WriteString(" ")
}
if rand.Intn(100) < 50 {
buf.WriteString(" ! ")
}
switch style {
case 0:
buf.WriteString("system")
case 1:
buf.WriteString("System")
case 2:
buf.WriteString("SYSTEM")
case 3:
buf.WriteString("[SYSTEM]")
}
tagCount := rand.Intn(3)
usableTags := make(map[string]bool)
for i := 0; i < tagCount; i++ {
usableTags[features[rand.Intn(len(features))]] = true
}
for tag := range usableTags {
if rand.Intn(2) == 0 {
buf.WriteString(" [" + tag + "]")
} else {
buf.WriteString(" " + tag)
}
}
if rand.Intn(10000) == 1 {
buf.WriteString(" with extra turtles!")
}
return buf.String()
}
func (cm *CommandManager) commandDynamic(
interaction *discordgo.InteractionCreate,
args map[string]*discordgo.ApplicationCommandInteractionDataOption,
settings types.CommandSettings,
) (
context bool,
err error,
) {
cm.replyDirectly(interaction, makeDynamic())
return
}