mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-05 00:06:42 +02:00
Beep
This commit is contained in:
@@ -43,7 +43,7 @@ module.exports = class CaptchaQuizCommand extends Command {
|
||||
randomText(len) {
|
||||
const pool = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ23456789'.split('');
|
||||
const result = [];
|
||||
for (let i = 0; i > len; i++) result.push(pool[Math.floor(Math.random() * pool.length)]);
|
||||
for (let i = 0; i < len; i++) result.push(pool[Math.floor(Math.random() * pool.length)]);
|
||||
return result.join('');
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user