Configuration
FocaBot can be customized on a per-guild basis, even if you're not the bot owner.
To change most parameters, you must use the f'config
command. For example, running
f'config locale fr_FR
Changes the bot's language to french for the current guild.
Only guild owners and those with the Admin/Bot Commander roles have access to the config
command.
List of configurable parameters
- restrict {yes/no} (default:
no
)
f'config restrict yes
- prefix {text} (default:
f'
)
f'config prefix '
- autoDel {yes/no} (default:
yes
)
f'config autoDel no
- commandChannel {#channel} (default:
*
)
Setting it to *
makes it unrestricted.
f'config commandChannel #bots
- voiceChannel {channel name} (default:
*
)
Setting it to *
makes it unrestricted.
f'config voiceChannel Music
- allowNSFW {yes/no} (default:
no
)
f'config allowNSFW yes
- locale {language code} (default:
en_US
)
f'config locale es_ES
- greet {text} (default:
off
)
- {mention} - Mentions the user.
- {name} - Prints the username
- {server} - Prints the guild name
f'config greet Welcome to the server, {mention}!
- farewell {text} (default:
off
)
f'config farewell {name} left the server.
- voteSkip {yes/no} (default:
yes
)
If 40% of the users in the voice channel vote to skip a song, it is skipped immediately.
f'config voteSkip no
- maxSongLength {number} (default:
1800
)
f'config maxSongLength 3600
- maxItems {number} (default:
0
)
f'config maxItems 2
- unrestrictedLivestreams {yes/no} (default:
no
)
f'config unrestrictedLivestreams yes
- asyncPlaylists {yes/no} (default:
no
)
When this parameter is set to yes
, playlist items are added to the queue as they're
loaded.
The downside of this is that since the items are added asynchronously, they might not be added in the same order they appear in the playlist.
f'config asyncPlaylists yes
- inversePlaylist {yes/no} (default:
no
)
f'config inversePlaylist yes
- allowWaifus {yes/no} (default:
no
)
f'config allowWaifus no
- raffleMention {yes/no} (default:
no
)
f'config raffleMention yes
Disabling modules
Most modules can be disabled on a per-guild basis as well, by using the f'disable
command.
For example, if you want to disable the danbooru (anime image search) in your guild, you have to run this command:
f'disable danbooru
Naturally, the module can be enabled again by running
f'enable danbooru
Some modules, like the inlineCommands
module, are disabled by default and must be
manually enabled.
Overriding permissions
You can override command permissions by using the f'perm
command.
For example, if you want to restrict the f'play
command to DJs only:
f'perm play dj
The following permission levels are available:
*
- Everyone is allowed to use the command.dj
- Only those with theDJ
role (or higher) are allowed.admin
- Only those with theBot Commander
role are allowed.
For security reasons, some commands can't be overriden.