-
Notifications
You must be signed in to change notification settings - Fork 3
/
configs.js
361 lines (315 loc) · 9.57 KB
/
configs.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
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
const configs = (function () {
"use strict";
// settings
const showDoneTasks = true; // true or false
const showTasksNumber = true; // true or false
const crossTasksOnDone = false; // true or false
const showCheckBox = true; // true or false
const reverseOrder = true; // true or false
// fonts
const headerFontFamily = "Fredoka One"; // supports all google fonts - https://fonts.google.com/
const bodyFontFamily = "Nunito"; // supports all google fonts - https://fonts.google.com/
// scroll
const taskListScrollBehaviour = "linear"; // supports all css transition-timing-function
const pixelsPerSecond = 30; // must be a number
const animationDelay = 5; // must be a number (seconds)
// task list
const taskListWidth = "500px"; // must have px at the end
const taskListHeight = "410px"; // must have px at the end
const taskListBackgroundColor = "#000"; // hex only
const taskListBackgroundOpacity = 0; // must be between 0 and 1
const taskListBorderColor = "white"; // hex or name
const taskListBorderWidth = "0px"; // must have px at the end
const taskListBorderRadius = "10px"; // must have px at the end
const taskListPadding = "0px"; // must have px at the end
// header
const headerHeight = "60px"; // must have px at the end
const headerBackgroundColor = "#000"; // hex only
const headerBackgroundOpacity = 0.9; // must be between 0 and 1
const headerBorderColor = "white"; // hex or name
const headerBorderWidth = "2px"; // must have px at the end
const headerBorderRadius = "10px"; // must have px at the end
const headerFontSize = "30px"; // must have px at the end
const headerFontColor = "white"; // hex or name
const headerPadding = "10px"; // must have px at the end
const tasksNumberFontSize = "30px"; // must have px at the end
// body
const bodyBackgroundColor = "#ffffff"; // hex only
const bodyBackgroundOpacity = 0; // must be between 0 and 1
const bodyFontColor = "white"; // hex or name
const bodyBorderColor = "white"; // hex or name
const bodyBorderWidth = "0px"; // must have px at the end
const bodyBorderRadius = "0px"; // must have px at the end
const bodyVerticalPadding = "5px"; // must have px at the end
const bodyHorizontalPadding = "5px"; // must have px at the end
// task (individual tasks)
const numberOfLines = 2; // number of lines for the task
const usernameColor = "white"; // hex or name, "" for twitch username color
const usernameMaxWidth = "150px"; // must have px at the end
const taskBackgroundColor = "#000"; // hex only
const taskBackgroundOpacity = 0.8; // must be between 0 and 1
const taskFontSize = "25px"; // must have px at the end
const taskFontColor = "white"; // hex or name
const taskBorderColor = "black"; // hex or name
const taskBorderWidth = "0px"; // must have px at the end
const taskBorderRadius = "5px"; // must have px at the end
const taskMarginBottom = "5px"; // must have px at the end
const taskPadding = "10px"; // must have px at the end
const taskMaxWidth = "70%";
// checkbox - if enabled
const checkBoxSize = "20px"; // must have px at the end
const checkBoxBackgroundColor = "#000"; // hex only
const checkBoxBackgroundOpacity = 0; // must be between 0 and 1
const checkBoxBorderColor = "white"; // hex or name
const checkBoxBorderWidth = "1px"; // must have px at the end
const checkBoxBorderRadius = "3px"; // must have px at the end
const checkBoxMarginTop = "6px"; // must have px at the end
const checkBoxMarginLeft = "2px"; // must have px at the end
const checkBoxMarginRight = "2px"; // must have px at the end
const tickCharacter = "'✔'"; // any character, must be in single quotes
const tickSize = "18px"; // must have px at the end
const tickColor = "white"; // hex or name
const tickTranslateY = "4px"; // must have px at the end
// bullet point - if enabled
const bulletPointCharacter = "•"; // any character
const bulletPointSize = "15px"; // must have px at the end
const bulletPointColor = "white"; // hex or name
const bulletPointMarginTop = "0px"; // must have px at the end
const bulletPointMarginLeft = "5px"; // must have px at the end
const bulletPointMarginRight = "5px"; // must have px at the end
// colon
const colonMarginLeft = "2px"; // must have px at the end
const colonMarginRight = "2px"; // must have px at the end
// Add task commands - please add commands in the exact format
const addTaskCommands = [
"!taska",
"!taskadd",
"!atask",
"!addtask",
"!task",
"!add",
"!todo",
"!a",
];
// Delete task commands - please add commands in the exact format
const deleteTaskCommands = [
"!taskd",
"!taskdel",
"!taskdelete",
"!deltask",
"!deletetask",
"!taskr",
"!taskremove",
"!rtask",
"!removetask",
"!remove",
"!delete",
"!r",
];
// Edit task commands - please add commands in the exact format
const editTaskCommands = [
"!taske",
"!taskedit",
"!etask",
"!edittask",
"!edit",
"!e",
];
// Finish task commands - please add commands in the exact format
const finishTaskCommands = [
"!taskf",
"!taskfinish",
"!ftask",
"!finishtask",
"!taskd",
"!taskdone",
"!donetask",
"!dtask",
"!finish",
"!done",
"!finished",
"!f",
];
// Next task commands - please add commands in the exact format
const nextTaskCommands = ["!next", "!nexttask", "!n"];
// Check task commands - please add commands in the exact format
const checkCommands = [
"!taskc",
"!taskcheck",
"!ctask",
"!checktask",
"!mytask",
"!check",
"!c",
];
// Help commands - please add commands in the exact format
const helpCommands = [
"!taskh",
"!taskhelp",
"!htask",
"!helptask",
"!tasks",
];
// Admin delete - please add commands following the exact format
const adminDeleteCommands = [
"!taskadel",
"!adel",
"!adelete",
"!admindelete",
];
// Admin clear done - please add commands following the exact format
const adminClearDoneCommands = [
"!acleardone",
"!admincleardone",
"!cleardone",
];
const adminClearAllCommands = [
"!clearall",
"!allclear",
"!adminclearall",
"!adminallclear",
"!aclearall",
"!aclear",
"!clear",
];
// Responses
const taskAdded = 'The task "{task}" has been added, {user}!';
const noTaskAdded =
"Looks like you already have a task up there {user}, use !check to check your last task!";
const noTaskContent = "Try using !add the-task-you-are-working-on {user}";
const noTaskToEdit = "No task to edit {user}";
const taskEdited = 'Task edited to "{task}" {user}';
const taskDeleted = 'Task "{task}" has been deleted, {user}';
const taskNext =
"Good job on finishing the task '{oldTask}'! Now moving onto '{newTask}', {user}!";
const adminDeleteTasks = "All of the user's tasks have been deleted";
const taskFinished = 'Good job on finishing "{task}" {user}!';
const taskCheck = '{user} your current task is: "{task}"';
const taskCheckUser = `{user} {user2}'s current task is: "{task}"`;
const noTask = "Looks like you don't have a task up there {user}";
const noTaskA = "Looks like there is no task from that user there {user}";
const notMod = "Permission denied, {user}; Mods only";
const clearedAll = "All tasks have been cleared";
const clearedDone = "All finished tasks have been cleared";
const help = `{user} Use the following commands to help you out - !task !remove !edit !done. For more commands, click here: https://github.com/liyunze-coding/Chat-Task-Tic-Overlay#commands`;
const additionalCommands = {
"!botcred":
"{user} Ryan is the creator of this bot, check out his Twitch at https://www.twitch.tv/rythondev",
};
const titles = ["!botcred", "!taskadd", "!taskdone", "!taskhelp"];
// Other
const styles = {
headerFontFamily,
bodyFontFamily,
taskListScrollBehaviour,
pixelsPerSecond,
animationDelay,
taskListWidth,
taskListHeight,
taskListBackgroundColor,
taskListBackgroundOpacity,
taskListBorderColor,
taskListBorderWidth,
taskListBorderRadius,
taskListPadding,
numberOfLines,
headerFontColor,
headerBorderColor,
headerBorderWidth,
headerBorderRadius,
headerHeight,
headerFontSize,
headerBackgroundColor,
headerBackgroundOpacity,
headerPadding,
tasksNumberFontSize,
bodyBorderColor,
bodyBorderWidth,
bodyBorderRadius,
bodyBackgroundColor,
bodyBackgroundOpacity,
bodyFontColor,
bodyVerticalPadding,
bodyHorizontalPadding,
usernameColor,
usernameMaxWidth,
taskFontSize,
taskFontColor,
taskBackgroundColor,
taskBackgroundOpacity,
taskBorderRadius,
taskBorderColor,
taskBorderWidth,
taskMarginBottom,
taskPadding,
taskMaxWidth,
checkBoxSize,
checkBoxBorderColor,
checkBoxBorderRadius,
checkBoxBorderWidth,
checkBoxMarginTop,
checkBoxMarginLeft,
checkBoxMarginRight,
checkBoxBackgroundColor,
checkBoxBackgroundOpacity,
tickCharacter,
tickColor,
tickSize,
tickTranslateY,
bulletPointCharacter,
bulletPointColor,
bulletPointSize,
bulletPointMarginRight,
bulletPointMarginLeft,
bulletPointMarginTop,
colonMarginRight,
colonMarginLeft,
};
const commands = {
addTaskCommands,
deleteTaskCommands,
editTaskCommands,
finishTaskCommands,
nextTaskCommands,
helpCommands,
checkCommands,
adminDeleteCommands,
adminClearDoneCommands,
adminClearAllCommands,
additionalCommands,
};
const responses = {
taskAdded,
noTaskAdded,
noTaskContent,
taskDeleted,
taskEdited,
noTaskToEdit,
taskFinished,
taskNext,
taskCheck,
taskCheckUser,
noTask,
noTaskA,
notMod,
help,
adminDeleteTasks,
clearedAll,
clearedDone,
};
const settings = {
showDoneTasks,
showTasksNumber,
crossTasksOnDone,
showCheckBox,
reverseOrder,
};
let module = {
styles,
commands,
responses,
settings,
titles,
};
return module;
})();