-
Notifications
You must be signed in to change notification settings - Fork 59
/
config.js
47 lines (40 loc) · 1.09 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
// change these two variables
let channel = process.env.TWITCH_CHANNEL || "twitchplayspokemon";
let programName =
process.env.CONFIG_PROGRAM_NAME || "VisualBoyAdvance";
// List of commands to check for
let commands = [
"left",
"right",
"up",
"down",
"start",
"select",
"a",
"b",
"democracy",
"anarchy",
];
let filteredCommands = [];
let throttledCommands = [];
module.exports = {
// all commands to print out
commands,
// twitch channel to connect to
channel,
// Title of the window of the program (ex: 'Desmume' or 'VBA')
programName,
// If you need to filter the commands sent to the program
// Ex: democracy/anarchy since they don't affect the program itself
// Ex: ["democracy","anarchy"]
filteredCommands,
// If you want to prevent people from using from command too often
// Ex: ["start"]
throttledCommands,
// Throttle time in seconds
// Ex: you can limit 'start' so it's only used every 10 sec
timeToWait: 10000,
// Delay between each possible keypress in milliseconds (can't be too fast)
// To change on Windows, change `key.py`
delay: 100,
};