mirror of
https://github.com/Alee14/AleeBot.git
synced 2025-01-22 11:11:46 -05:00
Release 2.11.0
This commit is contained in:
parent
98e6fa6be7
commit
300080d295
8 changed files with 50 additions and 14 deletions
6
.vscode/launch.json
vendored
6
.vscode/launch.json
vendored
|
@ -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>
|
||||
|
|
|
@ -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
|
|
@ -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,
|
|
@ -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
|
|
@ -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
|
|
@ -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);
|
||||
});
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue