mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 14:55:40 +02:00
Only chance if not directly used
This commit is contained in:
@@ -12,7 +12,8 @@ module.exports = class NoUCommand extends Command {
|
||||
});
|
||||
}
|
||||
|
||||
generateText() {
|
||||
generateText(fromPattern) {
|
||||
if (!fromPattern) return 'no u';
|
||||
const chance = Boolean(Math.floor(Math.random() * 2));
|
||||
if (chance) return null;
|
||||
return 'no u';
|
||||
|
||||
Reference in New Issue
Block a user