-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-example.yml
147 lines (113 loc) · 6.62 KB
/
config-example.yml
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
# ████████████████████████████████████████████████████████████████████████████████████████████
# █ This is the config file for the bot. █
# █ Only the fields marked ■ REQUIRED ■ need to be filled; the rest offer some finer control █
# █ and need not be changed. █
# ████████████████████████████████████████████████████████████████████████████████████████████
---
# ===============================================================
# Main: This section contains the required fields and basic info.
# ===============================================================
# ■ REQUIRED ■ Put the client ID (bot's user ID) here.
id:
# ■ REQUIRED ■ Put the bot account's token here.
token:
# ■ REQUIRED ■ Put the bot's command prefix within the brackets here.
# For multiple prefixes, separate each prefix with commas.
# Surround your prefix with single ('') quotes if it contains any of the following characters:
# : { } [ ] , ' & * ? | - < > = ! % @ \ #
prefix: []
# Put the type of account this bot is here (either user or bot account).
# Accepted are user and bot (case sensitive); anything else defaults to bot.
type: bot
# Put the game to set the bot's "Playing" status to here.
# Leave blank to have no game.
game:
# Put the name of your bot here, to be sent to Discord upon making any API requests and used
# by them to trace the source of excessive API requests.
# Leave blank to have no name.
name:
# ===================================================================================
# Commands & Messages: This section contains options concerning how the bot reacts to
# messages and command calls.
# ===================================================================================
# Put whether the bot should react to its own messages.
# Accepted are yes/true and no/false (case sensitive); anything else defaults to no.
react_to_self: yes
# Put all aliases of the help command within the brackets here, i.e. what the help command should be called as.
# Leave blank to disable (e.g. if you have a custom implementation).
help_alias: []
# Put the message to be displayed when the user tries to use a nonexistent command here.
# You can put the string '%command%' within the message to replace it with the command
# the user attempted to use automatically (i.e. 'Command %command% does not exist' will be
# replaced with 'Command foomy does not exist.')
# Leave blank to disable.
command_doesnt_exist_message:
# Put the message to be displayed when the user doesn't have permission to use the command
# (a NoPermission error is raised.)
# Leave blank to disable.
no_permission_message:
# Put whether spaces should be allowed between the prefix and the command name.
# Accepted are yes/true and no/false (case sensitive); anything else defaults to no.
spaces_allowed: no
# Put whether messages sent by fake webhook users should be allowed to trigger commands.
# Accepted are yes/true and no/false (case sensitive); anything else defaults to no.
react_to_webhooks: no
# Put the IDs of channels the bot should react to within the brackets, separated by commas.
# Leave blank to allow the bot to accept commands in all channels.
channel_whitelist: []
# Put whether the bot should react to messages sent by other bots.
# Accepted are yes/true and no/false (case sensitive); anything else defaults to yes.
react_to_bots: yes
# ==============================================================================
# Logging: This section contains options concerning how the bot logs to console.
# ==============================================================================
# Put the bot's logging mode here.
# Accepted are: (case sensitive)
# debug: logs everything
# verbose: logs everything except for debug messages
# normal: logs useful information, warnings and errors
# quiet: only logs warnings and errors
# silent: logs nothing
# Anything else defaults to normal.
log_mode: normal
# Put whether the log should be fancy and use ANSI escape codes here.
# Not all terminals support this.
# Accepted are yes/true and no/false (case sensitive); anything else defaults to no.
fancy_log: no
# Put whether the READY packet should be printed to console here.
# Accepted are yes/true and no/false (case sensitive); anything else defaults to yes.
log_ready: yes
# Put whether the bot's token should be printed in logs.
# Accepted are yes/true and no/false (case sensitive); anything else defaults to no.
log_token: no
# ========================================================================
# Sharding: This section contains the options related to sharding the bot.
# ========================================================================
# Put the shard number that this bot should handle here.
shard_id:
# Put the total number of shards that should be running here.
num_shards:
# =========================================================================================
# Advanced Functionality: This section contains the options related to discordrb's advanced
# functionality, command chaining.
# Details at: https://github.com/meew0/discordrb/wiki/Commands#command-chain-syntax
# Note: All entries in this section except for enabling/disabling advanced functionality
# must be limited to one character only.
# =========================================================================================
# Put whether advanced functionality should be enabled or disabled here.
# Accepted are yes/true and no/false (case sensitive); anything else defaults to no.
advanced_functionality: no
# Put the character that designates the result of the previous command in a chain within the quotes here.
previous: '~'
# Put the character that should designate that a new command begins in the chain within the quotes here.
chain_delimiter: '>'
# Put the character that should separate the chain arguments from the chain itself within the quotes here.
chain_args_delim: ':'
# Put the character that should begin a sub-chain within the quotes here.
sub_chain_start: '['
# Put the character that should end a sub-chain within the quotes here.
sub_chain_end: ']'
# Put the character that should begin a quoted string within the quotes here.
quote_start: '"'
# Put the character that should end a quoted string within the quotes here.
quote_end: '"'