diff options
| -rw-r--r-- | .vscode/launch.json | 6 | ||||
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | To be worked on/leave.js (renamed from commands/leave.js) | 2 | ||||
| -rw-r--r-- | To be worked on/play.js (renamed from commands/play.js) | 8 | ||||
| -rw-r--r-- | To be worked on/queue.js (renamed from commands/queue.js) | 2 | ||||
| -rw-r--r-- | To be worked on/skip.js (renamed from commands/skip.js) | 2 | ||||
| -rw-r--r-- | bot_discord.js | 40 | ||||
| -rw-r--r-- | commands/suggestfeature.js | 2 |
8 files changed, 50 insertions, 14 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json index b82378f..4058c57 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,13 +4,16 @@ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ + { "type": "node", "request": "launch", "name": "Launch Bot", "program": "${workspaceFolder}/bot_discord.js", "console": "integratedTerminal", - + "args": [ + "--beta" + ] }, { "type": "node", @@ -19,6 +22,7 @@ "program": "${workspaceFolder}/bot_discord.js", "console": "integratedTerminal", "args": [ + "--beta", "--debug" ] } @@ -3,7 +3,7 @@ <a href="https://discordbots.org/bot/282547024547545109"><img src="https://discordbots.org/api/widget/status/282547024547545109.svg" alt="AleeBot Status Widget" />
</a><a href="https://discord.gg/EFhRDqG"><img src="https://img.shields.io/discord/243022206437687296.svg?colorB=7289DA&label=discord" alt="Discord Badge"> </a><a href="https://travis-ci.org/AleeCorp/AleeBot"><img src="https://travis-ci.org/AleeCorp/AleeBot.svg?branch=master" alt="Travis CI Build Status" /></a>
- <p>Welcome to the AleeBot github repository! This bot is crafted for discord servers.</p>
+ <p>AleeBot: A bot that's made for the discord app</p>
</div>
<br>
<h1>What features does AleeBot have?</h1>
diff --git a/commands/leave.js b/To be worked on/leave.js index a2a48d8..e1584f0 100644 --- a/commands/leave.js +++ b/To be worked on/leave.js @@ -1,7 +1,7 @@ /**************************************** * * Leave: Command for AleeBot - * Copyright (C) 2018 AleeCorp & (your name here) + * Copyright (C) 2018 AleeCorp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/commands/play.js b/To be worked on/play.js index 06ca7f1..ddf80db 100644 --- a/commands/play.js +++ b/To be worked on/play.js @@ -1,7 +1,7 @@ /**************************************** * * Play: Command for AleeBot - * Copyright (C) 2018 AleeCorp & (your name here) + * Copyright (C) 2018 AleeCorp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -106,10 +106,10 @@ module.exports.run = async (client, message, args, ops) => { if (vc) vc.leave(); - } - - } + } + } + exports.conf = { aliases: [], guildOnly: false, diff --git a/commands/queue.js b/To be worked on/queue.js index 67faf91..77d86b7 100644 --- a/commands/queue.js +++ b/To be worked on/queue.js @@ -1,7 +1,7 @@ /**************************************** * * Queue: Command for AleeBot - * Copyright (C) 2018 AleeCorp & (your name here) + * Copyright (C) 2018 AleeCorp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/commands/skip.js b/To be worked on/skip.js index c1402cc..5a6d2b7 100644 --- a/commands/skip.js +++ b/To be worked on/skip.js @@ -1,7 +1,7 @@ /**************************************** * * Skip: Command for AleeBot - * Copyright (C) 2018 AleeCorp & (your name here) + * Copyright (C) 2018 AleeCorp * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/bot_discord.js b/bot_discord.js index 45da5ea..314553d 100644 --- a/bot_discord.js +++ b/bot_discord.js @@ -62,6 +62,17 @@ if (process.argv.indexOf("--debug") == -1) { });
}
+if (process.argv.indexOf("--beta") == -1) {
+ client.login(api.abtoken).catch(function() {
+ log('[X] Login failed. The token that you put in is invalid, please put in a new one...'.red);
+ });
+
+} else {
+ client.login(api.abbtoken).catch(function() {
+ log('[X] Login failed. The token that you put in is invalid, please put in a new one...'.red);
+ });
+}
+
client.commands = new Discord.Collection();
client.aliases = new Discord.Collection();
@@ -217,6 +228,31 @@ client.on('guildDelete', guild => { client.on('message', (msg) => {
if (msg.author.bot) return;
+
+ if (msg.mentions != null && msg.mentions.users != null) {
+ if (msg.mentions.users.has("282547024547545109")){
+ if (msg.content.toLowerCase().includes("hello") || (msg.content.toLowerCase().includes("hi"))) {
+ msg.reply("Hi there.");
+ } else {
+ if (msg.content.toLowerCase().includes("shut") && msg.content.toLowerCase().includes("up")) {
+ switch (Math.floor(Math.random() * 1000) % 3) {
+ case 0:
+ msg.reply("Excuse me? Can you not speak to me in that tone...")
+ break;
+ case 1:
+ msg.reply("NO! I can talk as much I can!");
+ break;
+ case 2:
+ msg.reply("Nah I won't....");
+ break;
+ }
+ } else if (msg.content.toLowerCase().includes("how") && msg.content.toLowerCase().includes("are") && msg.content.toLowerCase().includes("you")) {
+ msg.reply("I'm doing OK, I suppose...")
+ }
+ }
+ }
+}
+
let prefixes = JSON.parse(fs.readFileSync("./storage/prefixes.json", "utf8"));
@@ -270,7 +306,3 @@ log("[X | UNCAUGHT PROMISE] " + err.stack.red); process.on('uncaughtException', function (exception) {
log(exception.red);
});
-
-client.login(api.abtoken).catch(function() {
- log('[X] Login failed. Please contact Alee14#9928 or email him at alee14498@gmail.com.'.red);
-});
diff --git a/commands/suggestfeature.js b/commands/suggestfeature.js index 04db033..dbafc98 100644 --- a/commands/suggestfeature.js +++ b/commands/suggestfeature.js @@ -19,7 +19,7 @@ * *************************************/ module.exports.run = async (client, message, args) => { const { RichEmbed } = require('discord.js'); - client.channels.find('id', '435234655579537418').send( + client.channels.find('id', '427495678390960148').send( new RichEmbed() .setColor ('#1fd619') .setTitle('AleeBot Feature Suggestion') |
