From 4840622368fdabb07ea53386fbe6ec08074d5bca Mon Sep 17 00:00:00 2001 From: Alee14 Date: Tue, 3 Oct 2017 17:59:12 -0400 Subject: Updates on what AleeBot's playing --- aleebot.js | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/aleebot.js b/aleebot.js index da7a719..c32479e 100644 --- a/aleebot.js +++ b/aleebot.js @@ -36,6 +36,25 @@ const log = message => { }; +function setGame() { + var games = [ + "with version " + abversion, + "attacking AstralMod", + "with stuff", + "with Alee", + "games" + ] + + client.user.setPresence({ + status: 'online', + afk: false, + game: { + type: 0, + name: games[Math.floor(Math.random() * games.length)] + } + }) +} + client.commands = new Discord.Collection(); client.aliases = new Discord.Collection(); @@ -55,12 +74,6 @@ fs.readdir('./commands/', (err, files) => { client.on('ready', () => { log(`[>] AleeBot is now ready! Running version ${abversion} in ${client.guilds.size} guilds!`); - client.user.setPresence({ - game: { - name: 'with version ' + abversion + '', - type: 0 - } - }); client.user.setStatus('online') }); -- cgit v1.2.3 From d9eab29ab1f4e3a0ccbc299c8a2c0c6624d2f6cc Mon Sep 17 00:00:00 2001 From: Alee14 Date: Tue, 3 Oct 2017 18:00:22 -0400 Subject: Minor updates on ab:say (#7) --- commands/eval.js | 10 +++++----- commands/say.js | 6 ++++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/commands/eval.js b/commands/eval.js index 2716cb8..a2cdbb4 100644 --- a/commands/eval.js +++ b/commands/eval.js @@ -51,11 +51,11 @@ const argseval = message.content.split(" ").slice(1); { name: '**Output**', value: `\`\`\`js\n${clean(evaled)}\n\`\`\`` - } - ], - } - }) - } + } + ], + } + }) + } } exports.conf = { diff --git a/commands/say.js b/commands/say.js index f32544b..fa9022f 100644 --- a/commands/say.js +++ b/commands/say.js @@ -1,9 +1,11 @@ const Discord = require('discord.js'); exports.run = (client, message, args, config) => { - if(message.author.id !== config.ownerID) return; + if(message.author.id !== config.ownerID) + message.reply(":no_entry: **NOPE!** Sorry buddy Alee is only allow to say this command.") + else { message.channel.sendMessage(args.join(" ")); message.delete(); - + } } exports.conf = { -- cgit v1.2.3