File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,17 +40,10 @@ client.cooldowns = new Map();
4040client . helpers = { checkPermissions } ;
4141module . exports = client ;
4242
43- const { setupBumpReminder, handleMessage } = require ( "./events/notifications/bumpReminder" ) ;
44-
45- // Example: configure on startup (or from a slash command)
46- setupBumpReminder (
47- "1392910932740538540" ,
48- "1467685229916455013" ,
49- "1467684301280907412" // the role to ping, e.g. @Bump Squad
50- ) ;
43+ const { loadConfig, handleMessage } = require ( "./events/notifications/bumpReminder" ) ;
5144
5245client . on ( "messageCreate" , ( message ) => {
53- handleMessage ( client , message ) ;
46+ handleMessage ( message ) ;
5447} ) ;
5548
5649async function InteractionHandler ( interaction , type ) {
@@ -170,6 +163,7 @@ client.helpers.InteractionHandler = InteractionHandler;
170163
171164( async ( ) => {
172165 try {
166+ loadConfig ( ) ;
173167 await Promise . all ( [ connectToMongo ( ) , loadEvents ( client ) , loadComponents ( client ) ] ) ;
174168
175169 const token = process . env . DISCORD_TOKEN ;
You can’t perform that action at this time.
0 commit comments