From 1667a4fbc7378ade4d87aa6814787017038d641a Mon Sep 17 00:00:00 2001 From: derpystuff <3515180-derpystuff@users.noreply.gitlab.com> Date: Fri, 17 Jun 2022 20:29:09 +0200 Subject: [PATCH] allow overwriting local prefix --- labscore/client.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/labscore/client.js b/labscore/client.js index 5b85db8..9a8415b 100644 --- a/labscore/client.js +++ b/labscore/client.js @@ -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'},