diff options
| author | Alee <alee14498@gmail.com> | 2018-04-18 15:28:39 -0400 |
|---|---|---|
| committer | Alee <alee14498@gmail.com> | 2018-04-18 15:28:39 -0400 |
| commit | 3b7935fdfe07b023823d89316874270082e2b56c (patch) | |
| tree | b54b27d5cb286da95bf777e3320574ae344c3058 /test.js | |
| parent | 6157fb64ec61dde05a1dc955037ef9d079bb41d9 (diff) | |
| download | AleeBot-3b7935fdfe07b023823d89316874270082e2b56c.tar.gz AleeBot-3b7935fdfe07b023823d89316874270082e2b56c.tar.bz2 AleeBot-3b7935fdfe07b023823d89316874270082e2b56c.zip | |
New imrpove changes
Diffstat (limited to 'test.js')
| -rw-r--r-- | test.js | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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;
|
