-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.example.toml
119 lines (102 loc) · 3.15 KB
/
config.example.toml
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
# Follow the setup guide to configure this file: https://docs.discord-plays-pokemon.com/user/
# Most of these settings should not be changed by most users
# the Discord server ID that you want to connect to
server_id = ""
[bot]
# should the Discord bot component be enabled
enabled = true
# your Discord bot's token
discord_token = ""
# your Discord bot's application ID
application_id = ""
[bot.commands]
# should slash commands be enabled
enabled = true
# controls whether or not commands should be registered at startup
update = true
[bot.commands.screenshot]
# should screenshot be enabled
enabled = true
[bot.notifications]
# should the bot send notifications
enabled = true
channel_id = ""
[stream]
# should the bot stream video to Discord
enabled = true
# the Discord video channel ID to stream to
channel_id = ""
# only stream if there is someone in the channel
dynamic_streaming = true
# there must be at least this many people watching
# for commands to be processed
minimum_in_channel = 2
# only those watching the stream can send commands
require_watching = true
[stream.userbot]
# the Discord user ID of the account that will stream video
id = ""
# username for the Discord account that will stream video
username = ""
# password for the Discord account that will stream video
password = ""
[game]
# should components like the emulator, browser, etc. be enabled
enabled = true
# the game emulator URL
# can accept any URL that points to Emulator JS (https://www.emulatorjs.com/)
# use the built-in emulator (http://localhost:${config.web.port}/emulator.html) by default
emulator_url = "built_in"
# These are required for the application to work properly
[game.browser.preferences]
"media.navigator.permission.disabled" = true
"media.autoplay.block-webaudio" = false
"privacy.webrtc.legacyGlobalIndicator" = false
"privacy.webrtc.hideGlobalIndicator" = true
"browser.download.folderlist" = 1
"browser.download.alwaysOpenPanel" = false
[game.saves.auto_export]
# should game saves be exported periodically
# saves are exported to ~/Downloads
enabled = true
# by default, export the save file once every five minutes
interval_in_milliseconds = 300000
[game.saves.auto_import]
# should the latest game save be loaded on startup
enabled = true
# the path to saved files
# the game will load the file that was last modified
path = "~/Downloads"
[game.commands]
# should chat commands be enabled
# these chat commands are how the game is normally played
enabled = true
# the Discord text channel ID to listen for commands
channel_id = ""
max_actions_per_command = 20
max_quantity_per_action = 10
key_press_duration_in_milliseconds = 15
delay_between_actions_in_milliseconds = 5
[game.commands.burst]
duration_in_milliseconds = 15
delay_in_milliseconds = 5
quantity = 3
[game.commands.chord]
duration_in_milliseconds = 15
max_commands = 10
max_total = 10
delay = 5
[game.commands.hold]
duration_in_milliseconds = 150
[web]
# enable the built-in webserver
enabled = true
# enable cors
cors = true
# the port to run the webserver on
port = 8081
# the path to the UI assets, such as the emulator page and web UI
assets = "packages/frontend/dist/"
[web.api]
# should the web API be enabled
enabled = true