mirror of
https://github.com/syuilo/ai.git
synced 2024-11-21 20:58:00 +00:00
✌️
This commit is contained in:
parent
ad7dad407e
commit
f587d4043c
|
@ -46,7 +46,8 @@ export default class KeywordModule implements IModule {
|
|||
|
||||
console.log(keywords);
|
||||
|
||||
const keyword = keywords.sort((a, b) => a[0].length < b[0].length ? 1 : -1)[0];
|
||||
const rnd = Math.floor((1 - Math.sqrt(Math.random())) * keywords.length);
|
||||
const keyword = keywords.sort((a, b) => a[0].length < b[0].length ? 1 : -1)[rnd];
|
||||
|
||||
const text = serifs.KEYWORD
|
||||
.replace('{word}', keyword[0])
|
||||
|
|
Loading…
Reference in a new issue