aboutsummaryrefslogtreecommitdiff
path: root/test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test.js')
-rw-r--r--test.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/test.js b/test.js
index da32b11..398bddf 100644
--- a/test.js
+++ b/test.js
@@ -20,11 +20,11 @@
const Discord = require('discord.js');
const economy = require('discord-eco');
const moment = require('moment');
+const DBL = require("dblapi.js");
const client = new Discord.Client({
disableEveryone: true
});
-const abVersion = '2.8.0';
-const prefix = 'ab:';
+const settings = require('./storage/settings.json')
const fs = require('fs');
const log = message => {
@@ -79,13 +79,14 @@ fs.readdir('./commands', (err, files) => {
client.on('ready', () => {
log('[>] AleeBot is now 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] Running version ' + abVersion + ` and in ${client.guilds.size} guilds`);
+ log('[i] Running version ' + settings.abVersion + ` and in ${client.guilds.size} guilds`);
client.setInterval(function() {
const games = [
- 'AleeBot ' + abVersion + ' | ' + config.prefix + 'help',
+ 'AleeBot ' + settings.abVersion + ' | ' + config.prefix + 'help',
'Annoying Alee',
'Coding stuff',
'Drawing shapes',
@@ -120,8 +121,8 @@ client.on('guildDelete', guild => {
client.on('message', (msg) => {
if (msg.author.bot) return;
- if (!msg.content.startsWith(prefix)) return;
- const args = msg.content.slice(prefix.length).trim().split(/ +/g);
+ if (!msg.content.startsWith(settings.prefix)) return;
+ const args = msg.content.slice(settings.prefix.length).trim().split(/ +/g);
const command = args.shift();
let cmd;