-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathconfigs.js
177 lines (158 loc) ยท 5.15 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
let configs = (function () {
'use strict';
// Authentication and channels
const channel = ''; // your channel
const username = ''; // bot account
const oauth = ''; // should be oauth:xxxxxxxxxxxx from the bot account
// Styling - required
const height = '150px';
const width = '373px';
const backgroundColor = '#000000'; // hex only
const backgroundOpacity = 0.2; // 0 to 1 (0 is transparent)
const backgroundRoundness = '0px';
const textColor = 'white'; // hex or name
const fontFamily = 'Poppins'; // From google fonts: https://fonts.google.com
const labelFontSize = '24px';
const timeFontSize = '64px';
const pomoFontSize = '24px';
const textOutlineColor = 'black'; // hex or name
const textOutlineSize = '0px';
// Remember to change the height and width when changing these!
const labelSpaceAbove = '115px';
const labelSpaceLeft = '0px'; // auto for centered; negative px is left; positive px is right
const timeSpaceAbove = '-10px'; // negative is up; positive is down
const timeSpaceLeft = 'auto'; // auto for centered; negative px is left; positive px is right
const cycleSpaceAbove = '115px'; // negative is up; positive is down
const cycleSpaceRight = '0px'; // Diff:auto for centered; negative px is right; positive px is left
// Remember to change the above values when changing the following one
const direction = 'row'; // row or column
// Time Configuration
const workTime = 5400; // in seconds
const breakTime = 900; // in seconds
const longBreakTime = 900; // in seconds
const longBreakEvery = 3; // long break every x pomos
const defaultPomoNumber = 5;
const workTimeRemind = 25;
const sendWorkTimeRemind = true;
const startingTime = 300;
const noLastBreak = true;
const showHours = false; // true: time in hh:mm:ss; false: time in mm:ss always
const showHoursIf00 = false; // true: will show 00:mm:ss, false: will show mm:ss when hours is 0
// Label Configuration
const workLabel = 'Work';
const breakLabel = 'Break';
const longBreakLabel = 'Break';
const finishLabel = 'Finished!';
const startingLabel = 'Starting';
// Sound Configuration
const workSound = 'workSound.riff'; // works with any sound extension
const breakSound = 'breakSound.riff'; // ensure that the extension is put here
const longBreakSound = 'breakSound.riff';
// Responses
const workMsg = "It's work time ๐ ๐"; // these are 7tv emotes
const breakMsg = 'Time for a break! ๐ถ ๐ฎ'; // works with emojis
const longBreakMsg = 'Time for a long break! ๐';
const workRemindMsg = 'Time to get ready for focus @{channel} ๐ป'; // can be customized to anything
const notMod = 'hhhhh not mod';
const notRunning = 'The timer is not running to perform this command!';
const streamStarting = 'Stream is starting!';
const wrongCommand = 'Command not recognized!';
const timerRunning = 'Timer is already started!';
const commandSuccess = 'Done!';
const cycleWrong = 'Cycle cannot be more than goal!';
const goalWrong = 'Goal cannot be less than cycle!';
const finishResponse = 'Good work today everyone ๐ช๐ฝ';
const alreadyStarting =
'The stream is already starting or the timer is running!';
// Discord notifications
const sendDiscord = false; // true or false
const webHookURL = ''; // make sure to keep the '' around the url
const roleID = '1050921202853617724'; // role id to ping, can be obtained by right clicking on the role (ensure to have developer mode on)
const content = 'Stream is going on break! {role}'; // message to send
// work/play category options
const workCategory = ''; // e.g. "Co-working & Studying"
const playCategory = ''; // e.g. "Hearthstone"
const categoryCommand = '!game';
// Please don't edit any of the lines below
const runTests = false;
const user = {
channel,
username,
oauth,
};
const responses = {
workMsg,
breakMsg,
longBreakMsg,
notMod,
workRemindMsg,
notRunning,
streamStarting,
wrongCommand,
timerRunning,
commandSuccess,
cycleWrong,
goalWrong,
finishResponse,
alreadyStarting,
};
const settings = {
startingLabel,
workTime,
breakTime,
longBreakTime,
defaultPomoNumber,
longBreakEvery,
startingTime,
workLabel,
breakLabel,
longBreakLabel,
finishLabel,
sendWorkTimeRemind,
workTimeRemind,
workSound,
breakSound,
longBreakSound,
noLastBreak,
runTests,
showHours,
showHoursIf00,
workCategory,
playCategory,
categoryCommand,
};
const styles = {
height,
width,
direction,
textColor,
backgroundColor,
backgroundOpacity,
backgroundRoundness,
fontFamily,
labelFontSize,
timeFontSize,
pomoFontSize,
labelSpaceAbove,
labelSpaceLeft,
timeSpaceAbove,
timeSpaceLeft,
cycleSpaceAbove,
cycleSpaceRight,
textOutlineColor,
textOutlineSize,
};
const discordSettings = {
webHookURL,
roleID,
content,
sendDiscord,
};
let module = {};
module.user = user;
module.styles = styles;
module.responses = responses;
module.settings = settings;
module.discordSettings = discordSettings;
return module;
})();