discord-jellyfin-bot/src/discordclientmanager.js

16 lines
224 B
JavaScript
Raw Normal View History

2020-09-21 05:30:39 +02:00
const Discord = require("discord.js");
2020-09-05 08:20:19 +02:00
var discordClient;
2020-09-21 05:30:39 +02:00
function init () {
discordClient = new Discord.Client();
2020-09-05 08:20:19 +02:00
}
2020-09-21 05:30:39 +02:00
function getDiscordClient () {
return discordClient;
2020-09-05 08:20:19 +02:00
}
module.exports = {
2020-09-21 05:30:39 +02:00
getDiscordClient,
init
};