mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-07 21:53:07 -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
|
||||
});
|
||||
|
||||
let commandPrefix = '.'
|
||||
if(process.env.PREFIX_OVERRIDE) commandPrefix = process.env.PREFIX_OVERRIDE;
|
||||
|
||||
(async () => {
|
||||
// Run cluster
|
||||
await cluster.run();
|
||||
const commandClient = new CommandClient(cluster, {
|
||||
activateOnEdits: true,
|
||||
mentionsEnabled: true,
|
||||
prefix: '.',
|
||||
prefix: commandPrefix,
|
||||
ratelimits: [
|
||||
{duration: 60000, limit: 50, type: 'guild'},
|
||||
{duration: 5000, limit: 5, type: 'channel'},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue