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