-
Notifications
You must be signed in to change notification settings - Fork 243
/
config.js
47 lines (34 loc) · 1.98 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
const expandHomeDir = require('expand-home-dir');
var config = {
// Accounts to read the last tweet from. The first one in the list will be
// spoken by the party parrot.
twitter: (process.env.TTC_BOTS || 'tinycarebot,selfcare_bot,magicrealismbot').toLowerCase().split(',').map(s => s.trim()),
// Use this to have a different animal say a message in the big box.
// regex: if TTC_SAY_BOX is a filePath, return that path
say: /(\w[~\/])/.test(process.env.TTC_SAY_BOX)
? process.env.TTC_SAY_BOX : (process.env.TTC_SAY_BOX || 'parrot').toLowerCase(),
// Set this to false if you want to scrape twitter.com instead of using
// API keys. The tweets may include RTs in this case :(
apiKeys: (process.env.TTC_APIKEYS || 'true') === 'true',
// Directories in which to run git-standup on for a list of your recent commits.
repos: (process.env.TTC_REPOS || '~/Code').split(',').map(p => expandHomeDir(p)),
// Directory-depth to look for git repositories.
depth: (process.env.TTC_REPOS_DEPTH || 1),
// Where to check the weather for.
// It's using weather.service.msn.com behind the curtains.
weather: process.env.TTC_WEATHER || 'San Francisco',
// Set to false if you're an imperial savage. <3
celsius: (process.env.TTC_CELSIUS || 'true') === 'true',
terminal_title: (process.env.TTC_TERMINAL_TITLE === 'false' ? null : '✨💖 tiny care terminal 💖✨'),
updateInterval: parseFloat(process.env.TTC_UPDATE_INTERVAL) || 20,
keys: {
consumer_key: process.env.TTC_CONSUMER_KEY || process.env.CONSUMER_KEY || 'none',
consumer_secret: process.env.TTC_CONSUMER_SECRET || process.env.CONSUMER_SECRET || 'none',
access_token: process.env.TTC_ACCESS_TOKEN || process.env.ACCESS_TOKEN || 'none',
access_token_secret: process.env.TTC_ACCESS_TOKEN_SECRET || process.env.ACCESS_TOKEN_SECRET || 'none',
},
// Pomodoro Settings
runningDuration: process.env.TTC_POMODORO || 20,
breakDuration: process.env.TTC_BREAK || 5,
};
module.exports = config;