mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Only no u half the time
This commit is contained in:
@@ -13,6 +13,8 @@ module.exports = class NoUCommand extends Command {
|
||||
}
|
||||
|
||||
generateText() {
|
||||
const chance = Boolean(Math.floor(Math.random() * 2));
|
||||
if (chance) return null;
|
||||
return 'no u';
|
||||
}
|
||||
};
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "138.5.0",
|
||||
"version": "139.0.0",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"private": true,
|
||||
|
||||
@@ -10,7 +10,9 @@ module.exports = class AutoReplyCommand extends Command {
|
||||
|
||||
run(msg, args, fromPattern) {
|
||||
if (msg.guild && !msg.channel.permissionsFor(this.client.user).has('SEND_MESSAGES')) return null;
|
||||
return this.reply ? msg.reply(this.generateText(fromPattern)) : msg.say(this.generateText(fromPattern));
|
||||
const text = this.generateText(fromPattern);
|
||||
if (!text) return null;
|
||||
return this.reply ? msg.reply(text) : msg.say(text);
|
||||
}
|
||||
|
||||
generateText() {
|
||||
|
||||
Reference in New Issue
Block a user