mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-08 23:32:12 +02:00
Consistent either way in ship
This commit is contained in:
@@ -26,7 +26,7 @@ module.exports = class ShipCommand extends Command {
|
||||
}
|
||||
|
||||
run(msg, { first, second }) {
|
||||
const random = new Random(Random.engines.mt19937().seed(first.id - second.id));
|
||||
const random = new Random(Random.engines.mt19937().seed(Math.abs(first.id - second.id)));
|
||||
return msg.say(`I'd give ${first.username} and ${second.username} a ${random.integer(0, 100)}%!`);
|
||||
}
|
||||
};
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "73.0.0",
|
||||
"version": "73.0.1",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user