mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -04:00
allow overwriting local prefix
This commit is contained in:
parent
46c93b0c4e
commit
1667a4fbc7
1 changed files with 4 additions and 1 deletions
|
@ -25,13 +25,16 @@ const paginator = new Paginator(cluster, {
|
||||||
pageNumber: true
|
pageNumber: true
|
||||||
});
|
});
|
||||||
|
|
||||||
|
let commandPrefix = '.'
|
||||||
|
if(process.env.PREFIX_OVERRIDE) commandPrefix = process.env.PREFIX_OVERRIDE;
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
// Run cluster
|
// Run cluster
|
||||||
await cluster.run();
|
await cluster.run();
|
||||||
const commandClient = new CommandClient(cluster, {
|
const commandClient = new CommandClient(cluster, {
|
||||||
activateOnEdits: true,
|
activateOnEdits: true,
|
||||||
mentionsEnabled: true,
|
mentionsEnabled: true,
|
||||||
prefix: '.',
|
prefix: commandPrefix,
|
||||||
ratelimits: [
|
ratelimits: [
|
||||||
{duration: 60000, limit: 50, type: 'guild'},
|
{duration: 60000, limit: 50, type: 'guild'},
|
||||||
{duration: 5000, limit: 5, type: 'channel'},
|
{duration: 5000, limit: 5, type: 'channel'},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue