-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig.js
41 lines (36 loc) · 1.01 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
module.exports = {
irc: {
userName: 'leg_bot',
},
db: {
file: './legbot.sqlite',
},
channel: {
//How long we keep an users mod status after twitch revokes it
//(Twitch grants and revokes mod status all the time)
modTimeout: 30 * 60 * 60 * 1000,
},
twitchAPI: {
//Where we can find the api
hostname: "api.twitch.tv",
path: "/kraken/streams?channel=%channels%",
//How often we DO query twitch's API in milliseconds
interval: 90 * 1000,
//Channels without leg_bot that we care about.
otherChannels: require('./otherchannels.js')
},
gCal: {
url: "https://www.googleapis.com/calendar/v3/calendars/%calendar%/events",
params: "?key=%key%&maxResults=15&orderBy=startTime&singleEvents=true&timeMin=%after%&timeZone=Etc/UTC",
interval: 15 * 60 * 1000,
timeZone: 'America/Vancouver',
displayFormat: 'ddd hh:mm A z',
calendars: {
'lrr': "loadingreadyrun.com_72jmf1fn564cbbr84l048pv1go@group.calendar.google.com",
'fan': "[email protected]",
},
},
web: {
port: 3000,
}
}