Files
broccolini-bot/api/bosscordClient.js
2026-02-17 21:49:58 -06:00

16 lines
300 B
JavaScript

/**
* bOSScord API: reference to the Discord bot client.
* Set in broccolini-discord.js when client fires "ready"; read by bosscord routes.
*/
let botClient = null;
function setBot(client) {
botClient = client;
}
function getBot() {
return botClient;
}
module.exports = { setBot, getBot };