mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Bug fixes
This commit is contained in:
@@ -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`);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "98.0.1",
|
||||
"version": "98.0.2",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user