Bug fixes

This commit is contained in:
Daniel Odendahl Jr
2018-11-03 18:52:01 +00:00
parent f5a1bb0e8b
commit a5fd5592b4
3 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -22,8 +22,9 @@ module.exports = class DickCommand extends Command {
}
run(msg, { user }) {
const random = new Random(Random.engines.mt19937().seed(user.id));
const clientAuthor = user.id === this.client.user.id;
const random = new Random(Random.engines.mt19937().seed(clientAuthor ? msg.author.id : user.id));
const length = random.integer(0, 200);
return msg.reply(`8${'='.repeat(user.id === this.client.user.id ? length + 1 : length)}D`);
return msg.reply(`8${'='.repeat(clientAuthor ? length + 1 : length)}D`);
}
};
+1 -1
View File
@@ -29,7 +29,7 @@ module.exports = class ShipCommand extends Command {
run(msg, { first, second }) {
if (first.id === second.id) return msg.reply('Shipping someone with themselves would be pretty weird.');
const botText = first.id === this.client.user.id || second.id === this.client.user.id
? '\nBut you\'re still rejected. Sorry.'
? `\nBut ${first.id === msg.author.id || second.id === msg.author.id ? 'you\'re' : 'they\'re'} still rejected.`
: '';
const random = new Random(Random.engines.mt19937().seed(Math.abs(first.id - second.id)));
const level = random.integer(0, 100);
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "98.0.1",
"version": "98.0.2",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {