From 5482bb938025cbf99f6fb07f65af3f0d9f4e18ad Mon Sep 17 00:00:00 2001 From: KGT1 Date: Sat, 5 Sep 2020 08:20:19 +0200 Subject: [PATCH] add discord client manager --- src/discordclientmanager.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/discordclientmanager.js diff --git a/src/discordclientmanager.js b/src/discordclientmanager.js new file mode 100644 index 0000000..0af363e --- /dev/null +++ b/src/discordclientmanager.js @@ -0,0 +1,15 @@ +const Discord = require('discord.js'); + +var discordClient; + +function init(){ + discordClient= new Discord.Client(); +} +function getDiscordClient(){ + return discordClient; +} + +module.exports = { + getDiscordClient, + init +}