summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnknown <Alee14498@gmail.com>2017-08-20 17:33:06 -0400
committerUnknown <Alee14498@gmail.com>2017-08-20 17:33:06 -0400
commitcd191af35063cea9fdece46837a77609d3804486 (patch)
tree90b5968450f569de3692e3e35dde088ff726bd6e
parent598fe4e350242f0e84d7c9ad14562a8a8b927e30 (diff)
downloadAleeBot-cd191af35063cea9fdece46837a77609d3804486.tar.gz
AleeBot-cd191af35063cea9fdece46837a77609d3804486.tar.bz2
AleeBot-cd191af35063cea9fdece46837a77609d3804486.zip
1.1.1 release!
-rw-r--r--absettings.json.example2
-rw-r--r--aleebot.js13
-rw-r--r--commands/help.js6
3 files changed, 8 insertions, 13 deletions
diff --git a/absettings.json.example b/absettings.json.example
index 3d12948..7ae1f82 100644
--- a/absettings.json.example
+++ b/absettings.json.example
@@ -2,6 +2,4 @@
"abtoken": "token",
"ownerID": "242775871059001344",
"prefix": "ab:",
- "abversion": "1.1.0",
- "year": "2017"
}
diff --git a/aleebot.js b/aleebot.js
index 436d3c1..c07a22f 100644
--- a/aleebot.js
+++ b/aleebot.js
@@ -1,6 +1,6 @@
/****************************************
*
- * AleeBot for AleeArmy Community and other servers
+ * AleeBot 1.1.1 for AleeArmy Community and other servers
* Copyright (C) 2017 AleeCorp
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -29,16 +29,13 @@ const blessed = require('blessed');
const fs = require('fs');
const client = new Discord.Client();
const config = require('./absettings.json');
+const abversion = "1.1.1";
const log = message => {
console.log(`[${moment().format('YYYY-MM-DD HH:mm:ss')}] ${message}`);
};
-
-var logsChannel = "318874545593384970";
-
-
client.commands = new Discord.Collection();
client.aliases = new Discord.Collection();
@@ -57,10 +54,10 @@ fs.readdir('./commands/', (err, files) => {
client.on('ready', () => {
- log("[>] AleeBot is now ready! Running version " + config.abversion + "!");
+ log("[>] AleeBot is now ready! Running version " + abversion + "!");
client.user.setPresence({
game: {
- name: 'with version ' + config.abversion + '',
+ name: 'with version ' + abversion,
type: 0
}
});
@@ -101,7 +98,7 @@ client.on("message", function(message) {
try {
let commandFile = require(`./commands/${command}.js`);
- commandFile.run(client, message, args, config);
+ commandFile.run(client, message, args, config, abversion);
} catch (err) {
message.reply(`:no_entry_sign: Error!\nThe command ${command} isn't found. (Reported to console.)`)
console.error(err);
diff --git a/commands/help.js b/commands/help.js
index 1cf6f06..e9384de 100644
--- a/commands/help.js
+++ b/commands/help.js
@@ -1,10 +1,10 @@
const Discord = require('discord.js');
//const config = require('./absettings.json');
//const abversion = require(config.abversion)
-exports.run = (client, message, args, config) => {
+exports.run = (client, message, args, config, abversion) => {
var embed = new Discord.RichEmbed()
- .setTitle(`Commands for AleeBot ` + config.abversion + ` and running on ${client.guilds.size} servers.`)
+ .setTitle(`Commands for AleeBot ` + abversion + ` and running on ${client.guilds.size} servers.`)
.setDescription('Every command you put in this bot must start with `ab:`')
.setThumbnail("https://cdn.discordapp.com/avatars/282547024547545109/6c147a444ae328c38145ef1f74169e38.png?size=2048")
.addField('Fun Stuff:', 'attack\nask\nship',true)
@@ -13,7 +13,7 @@ var embed = new Discord.RichEmbed()
.addField('Owner Only:', 'say\neval',true)
.addField('Monitor:', 'ping\nuptime',true)
.addField('Etc:', 'avatarurl', true)
- .setFooter("AleeBot "+ config.abversion +" Copyright "+ config.year +". Created by Alee14", "https://cdn.discordapp.com/avatars/282547024547545109/6c147a444ae328c38145ef1f74169e38.png?size=2048")
+ .setFooter("AleeBot "+ abversion +" Copyright 2017. Created by Alee14", "https://cdn.discordapp.com/avatars/282547024547545109/6c147a444ae328c38145ef1f74169e38.png?size=2048")
.setColor("#7af442")
message.channel.sendEmbed(embed);
} /* This feature is broken