-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
319 lines (314 loc) · 8.48 KB
/
config.js
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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
/*
* Author: Jim Harris
* Config file for Pann-IRC
* Includes all modules and bot info (responses, server and channel info,
* command info)
*/
var cryptography = require('./cryptography.js');
var gen = require('./gen.js');
var math = require('./math.js');
var misc = require('./misc.js');
var userDataFunctions = require('./userData.js');
var userDataFile = require('./userData.json');
var yo = require('./yo.js');
exports.data = {
userData: userDataFile,
yoToken: 'Insert your YO API token here',
floodProgress: [],
responseConfig: [
{
triggers: ['oman'],
response: 'yemen'
}
],
dances: [
{
steps: ['\\o\\', '/o/'],
finale: '\\o/'
},
{
steps: ['vov', '\\o/'],
finale: '/o\\'
},
{
steps: ['<o>', '\\o/'],
finale: '/o\\'
},
{
steps: ['lol', '\\o\\'],
finale: '\\o/'
},
{
steps: ['\\o/', '<o>', '<o-', '/o\\'],
finale: '\\o/'
}
],
}
exports.config = {
botName: 'Pann',
nickservMessage: 'identify password',
servers: [
{
serverName: 'irc.something.net',
channels: [
'#channel1',
'#channel2'
]
}
],
commands: [
{
names: ['l', 'ls', 'list'],
functions: [
{
argsCode: 0,
funcRef: gen.list
}
],
allowedUsers: 'ALL',
desc: 'Lists all responses and their trigger phrases.'
},
{
names: ['r', 'repeat'],
functions: [
{
argsCode: ['a Sentence'],
funcRef: gen.repeat
}
],
allowedUsers: 'ALL',
desc: 'Repeats the given string.'
},
{
names: ['ma', 'mathadd', 'add'],
functions: [
{
argsCode: ['n First Number', 'n Second Number'],
funcRef: math.add
}
],
allowedUsers: 'ALL',
desc: 'Adds two numbers.'
},
{
names: ['ms', 'mathsubtract', 'subtract'],
functions: [
{
argsCode: ['n First Number', 'n Second Number'],
funcRef: math.subtract
}
],
allowedUsers: 'ALL',
desc: 'Subtracts the second number from the first number.'
},
{
names: ['mm', 'mathmultiply', 'multiply'],
functions: [
{
argsCode: ['n First Number', 'n Second Number'],
funcRef: math.multiply
}
],
allowedUsers: 'ALL',
desc: 'Multiplies two numbers.'
},
{
names: ['md', 'mathdivide', 'divide'],
functions: [
{
argsCode: ['n First Number', 'n Second Number'],
funcRef: math.divide
}
],
allowedUsers: 'ALL',
desc: 'Divides the first number by the second number.'
},
{
names: ['yol', 'yolist'],
functions: [
{
argsCode: 0,
funcRef: yo.list
}
],
allowedUsers: 'ALL',
desc: 'Tells you how many yo subscribers you have.'
},
{
names: ['yo'],
functions: [
{
argsCode: ['s Username'],
funcRef: yo.yoTrue
}
],
allowedUsers: 'ALL',
desc: 'Sends a Yo to the given username.'
},
{
names: ['yof', 'yoflood', 'yospam'],
functions: [
{
argsCode: ['s Username', 'i Number of Yos'],
funcRef: yo.floodBuffer
}
],
allowedUsers: 'ID',
desc: 'Sends the specified number of Yos to the given username.'
},
{
names: ['yofp', 'yofloodprogress'],
functions: [
{
argsCode: 0,
funcRef: yo.floodProgress
}
],
allowedUsers: 'ALL',
desc: 'Reports the status of Yo floods.'
},
{
names: ['d', 'dance'],
functions: [
{
argsCode: ['i Number of Steps', 'n Frequency'],
funcRef: misc.dance
}
],
allowedUsers: 'ALL',
desc: 'Dances for an integer of steps, at some number frequency.'
},
{
names: ['help'],
functions: [
{
argsCode: ['s Command Name'],
funcRef: gen.help
}
],
allowedUsers: 'ALL',
desc: 'Prints out a help message for the given command.'
},
{
names: ['set'],
functions: [
{
argsCode: ['s Variable Name', 'a Value'],
funcRef: userDataFunctions.set
}
],
allowedUsers: 'ID',
desc: 'Sets a user variable. private_ prefixes private variables.'
},
{
names: ['get'],
functions: [
{
argsCode: ['s Nick', 's Variable Name'],
funcRef: userDataFunctions.get
}
],
allowedUsers: 'ID',
desc: 'Get a user profile variable.'
},
{
names: ['remove', 'rm'],
functions: [
{
argsCode: ['s Variable Name'],
funcRef: userDataFunctions.remove
}
],
allowedUsers: 'ID',
desc: 'Deletes a user profile variable.'
},
{
names: ['profile'],
functions: [
{
argsCode: ['s Nick'],
funcRef: userDataFunctions.prof
}
],
allowedUsers: 'ID',
desc: 'Sends a user profile via private message.'
},
{
names: ['vigenere', 'encrypt2', 'e2', 'ev'],
functions: [
{
argsCode: ['s Key', 'a Sentence'],
funcRef: cryptography.vigenere
}
],
allowedUsers: 'ALL',
desc: 'Encrypts a sentence with vigenere\'s cipher.'
},
{
names: ['caesar', 'encrypt', 'e', 'ec'],
functions: [
{
argsCode: ['i Key', 'a Sentence'],
funcRef: cryptography.sayCaesar
}
],
allowedUsers: 'ALL',
desc: 'Encrypts a sentence with the caesar cipher.'
},
{
names: ['hex', 'decimaltohex', 'dtoh'],
functions: [
{
argsCode: ['i Number'],
funcRef: cryptography.decimalToHex
}
],
allowedUsers: 'ALL',
desc: 'Converts a decimal number into hexadecimal.'
},
{
names: ['hexstring'],
functions: [
{
argsCode: ['a Sentence'],
funcRef: cryptography.stringToHex
}
],
allowedUsers: 'ALL',
desc: 'Converts a string into its hexcodes.'
},
{
names: ['friend'],
functions: [
{
argsCode: ['s Nick'],
funcRef: userDataFunctions.friend
}
],
allowedUsers: 'ALL',
desc: 'Adds a user to your friends list, who can see private posts.'
},
{
names: ['unfriend'],
functions: [
{
argsCode: ['s Nick'],
funcRef: userDataFunctions.unfriend
}
],
allowedUsers: 'ALL',
desc: 'Removes a friend from your friends list.'
},
{
names: ['login'],
functions: [
{
argsCode: 0,
funcRef: gen.login
}
],
allowedUsers: 'ALL',
desc: 'Logs the user in.'
}
]
};