allow overwriting local prefix

This commit is contained in:
derpystuff 2022-06-17 20:29:09 +02:00
parent 46c93b0c4e
commit 1667a4fbc7

View file

@ -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'},