diff options
| author | Alee14 <Alee14498@gmail.com> | 2018-04-18 18:47:40 -0400 |
|---|---|---|
| committer | Alee14 <Alee14498@gmail.com> | 2018-04-18 18:47:40 -0400 |
| commit | 198b827a4a998682fc6d78f6cd9e24a88f05a0d0 (patch) | |
| tree | 218ee10d929f96dc5b3d4d59bbc7bd9ef86c5b8e | |
| parent | 70ca0adbebc31236e5800b0743e59942abf86c91 (diff) | |
| download | AleeBot-198b827a4a998682fc6d78f6cd9e24a88f05a0d0.tar.gz AleeBot-198b827a4a998682fc6d78f6cd9e24a88f05a0d0.tar.bz2 AleeBot-198b827a4a998682fc6d78f6cd9e24a88f05a0d0.zip | |
Replaced config with API
| -rw-r--r-- | bot_discord.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bot_discord.js b/bot_discord.js index a9f8ee0..fd14c49 100644 --- a/bot_discord.js +++ b/bot_discord.js @@ -26,8 +26,8 @@ const client = new Discord.Client({ });
const settings = require('./storage/settings.json')
const fs = require('fs');
-const config = require('./tokens.json');
-const dbl = new DBL(config.dbltoken, client);
+const api = require('./tokens.json');
+const dbl = new DBL(api.dbltoken, client);
const log = message => {
@@ -83,7 +83,7 @@ client.on('ready', () => { log(`[i] Logged in as ${client.user.tag}`);
log(`[i] Prefix: ${settings.prefix}`)
log(`[i] Bot ID: ${client.user.id}`);
- log(`[i] Token: ${config.abtoken}`);
+ log(`[i] Token: ${api.abtoken}`);
log('[i] Running version ' + settings.abVersion + ` and in ${client.guilds.size} guilds`);
client.setInterval(function() {
@@ -166,6 +166,6 @@ client.on("error", error => { log(error);
});
-client.login(config.abtoken).catch(function() {
+client.login(api.abtoken).catch(function() {
log('[X] Login failed. Please contact Alee14#9928 or email him at alee14498@gmail.com.');
});
|
