Skip to content

Commit c506e84

Browse files
committed
Merge pull request #4 from brussell98/Indev
Merge Indev 1.2
2 parents ad8aa98 + 8c691e0 commit c506e84

File tree

12 files changed

+1207
-579
lines changed

12 files changed

+1207
-579
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
*.tmp
22
*.env
3+
.vscode
4+
typings
5+
node_modules
6+
jsconfig.json
7+
typings.json
8+
.jscsrc

BrussellBot.js

Lines changed: 121 additions & 124 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# BrussellBot
1+
# BrussellBot 1.2
22

3-
An multipurpose bot for Discord using the [Discord.js](https://github.com/hydrabolt/discord.js/) unofficial API.
3+
A multipurpose bot for Discord using the [Discord.js](https://github.com/hydrabolt/discord.js/) unofficial API.
44

55
[Website](http://brussell98.github.io/BrussellBot)
66
[Discord Server](https://discord.gg/0kvLlwb7slG3XCCQ)
7-
[Get the latests version here](https://github.com/brussell98/BrussellBot/releases/latest)
7+
[Get the latest version here](https://github.com/brussell98/BrussellBot/releases/latest)
88

99
[Wiki](https://github.com/brussell98/BrussellBot/wiki)
1010
[Commands](https://github.com/brussell98/BrussellBot/wiki/Commands)
@@ -14,11 +14,11 @@ An multipurpose bot for Discord using the [Discord.js](https://github.com/hydrab
1414

1515
---
1616

17-
### TODO
17+
### TO DO
1818

1919
- [ ] Music commands
2020
- [ ] Audio help
21-
- [ ] Queue song from youtube
21+
- [ ] Queue song from YouTube
2222
- [ ] Or pass it a webm link
2323
- [ ] Skip
2424
- [ ] Have pre-made playlists available

bot/cleverbot.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ exports.cleverbot = function(bot, msg) {
77
if (text){
88
bot.startTyping(msg.channel);
99
for (var i = 0; i < msg.mentions.length; i++){
10-
if (msg.mentions[i].id != bot.user.id) { text = text.replace("<@"+msg.mentions[i].id+">", msg.mentions[i].username); }
10+
if (msg.mentions[i].id != bot.user.id) { text = text.replace('<@' + msg.mentions[i].id + '>', msg.mentions[i].username); }
1111
}
1212
Cleverbot.prepare(function() {
1313
try {
1414
Slave.write(text, function(resp) {
1515
if (/\|/g.test(resp.message)) {
16-
resp.message = resp.message.replace(/\|/g, "\\u"); //replace | with \u
17-
resp.message = resp.message.replace(/\\u([\d\w]{4})/gi, function (match, grp) { //unescape unicode
18-
return String.fromCharCode(parseInt(grp, 16));
16+
resp.message = resp.message.replace(/\|/g, '\\u'); //replace | with \u
17+
resp.message = resp.message.replace(/\\u([\d\w]{4})/gi, function(match, grp) { //unescape unicode
18+
return String.fromCharCode(parseInt(grp, 16));
1919
});
2020
}
21-
bot.sendMessage(msg, ":speech_balloon: "+ent.decodeHTML(resp.message));
21+
bot.sendMessage(msg, '💬 ' + ent.decodeHTML(resp.message));
2222
});
23-
} catch(error) { bot.sendMessage(msg, ":warning: There was an error", function (erro, wMessage) { bot.deleteMessage(wMessage, {"wait": 8000}); }); }
23+
} catch (error) { bot.sendMessage(msg, '⚠ There was an error', function(erro, wMessage) { bot.deleteMessage(wMessage, {'wait': 8000}); }); }
2424
});
2525
bot.stopTyping(msg.channel);
26-
} else { bot.sendMessage(msg, "Yes?"); } //if no suffix
26+
} else { bot.sendMessage(msg, 'Yes?'); } //if no suffix
2727
};

bot/commands.js

Lines changed: 437 additions & 323 deletions
Large diffs are not rendered by default.

bot/config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@
1414
"mal_pass": "",
1515
"is_heroku_version": true,
1616
"weather_api_key": "",
17-
"osu_api_key": ""
17+
"osu_api_key": "",
18+
"banned_server_ids": [""]
1819
}

bot/games.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"with JOHN CENA",
55
"kappa kappa kappa",
66
"no waifu no laifu",
7-
"your waifu is trash",
7+
"your waifu is __trash__",
88
"Kancolle",
9-
"with you",
9+
"with __you__",
1010
"node.js",
1111
"discord.js",
1212
"osu!",
@@ -19,7 +19,7 @@
1919
"Sakura Swim Club",
2020
"Sakura Spirit",
2121
"Akiba's Trip",
22-
"Animaaayyyy lmao",
22+
"Animaayyy lmao",
2323
"Ayyyy lmao",
2424
"Jet fuel can't melt dank memes",
2525
"with nekos",
@@ -32,6 +32,9 @@
3232
"who is this Bot-chan?",
3333
"world domination",
3434
"dank memes",
35-
"]help [command]",
36-
"what's an anime?"
35+
"Toshinou Kyouko",
36+
"__]help [command]__",
37+
"what's an anime?",
38+
"@everyone",
39+
"http://brussell98.github.io/BrussellBot/"
3740
]}

bot/mod.js

Lines changed: 103 additions & 107 deletions
Large diffs are not rendered by default.

bot/styles.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ exports.cWarn = function (text) {
99
chalk.styles.bgYellow.close +
1010
chalk.styles.white.open + chalk.styles.bgBlack.open +" ";
1111
};
12-
12+
1313
exports.cError = function (text) {
1414
return chalk.styles.bgRed.open +
1515
chalk.styles.black.open +
@@ -18,7 +18,7 @@ exports.cError = function (text) {
1818
chalk.styles.bgRed.close +
1919
chalk.styles.white.open + chalk.styles.bgBlack.open + " ";
2020
};
21-
21+
2222
exports.cDebug = function (text) {
2323
return chalk.styles.bgWhite.open +
2424
chalk.styles.black.open +

bot/versioncheck.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
var request = require("request");
22
var version = require("../package.json").version;
3-
var colors = require('./styles.js');
3+
var colors = require("./styles.js");
44

5-
exports.checkForUpdate = function (callback) {
5+
exports.checkForUpdate = function(callback) {
66
request("https://raw.githubusercontent.com/brussell98/BrussellBot/master/package.json", function (err, response, body) {
77
if (err) {
8-
console.log(colors.cWarn(" WARN ")+"Version check error: "+err);
8+
console.log(colors.cWarn(" WARN ") + "Version check error: " + err);
99
return callback(null);
1010
}
1111
if (response.statusCode == 200) {
@@ -14,7 +14,7 @@ exports.checkForUpdate = function (callback) {
1414
if ((version.split(".").join("")) > (latest.split(".").join(""))) { return callback("Bot is a development version (v" + version + ")"); }
1515
return callback("BrussellBot is up-to-date (v" + version + ")");
1616
} else {
17-
console.log(colors.cWarn(" WARN ")+"Failed to check for new version. Status code: "+response.statusCode);
17+
console.log(colors.cWarn(" WARN ") + "Failed to check for new version. Status code: " + response.statusCode);
1818
return callback(null);
1919
}
2020
});

0 commit comments

Comments
 (0)