16 lines
300 B
JavaScript
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 };
|