mirror of
https://github.com/syuilo/ai.git
synced 2024-11-24 22:01:07 +00:00
Improve AI
This commit is contained in:
parent
f9b2450373
commit
a0afbb8740
|
@ -44,7 +44,7 @@ export default class KeywordModule implements IModule {
|
||||||
|
|
||||||
console.log(keywords);
|
console.log(keywords);
|
||||||
|
|
||||||
const keyword = keywords[Math.floor(Math.random() * keywords.length)];
|
const keyword = keywords.sort((a, b) => a[0].length < b[0].length ? 1 : -1)[0];
|
||||||
|
|
||||||
const text = serifs.KEYWORD
|
const text = serifs.KEYWORD
|
||||||
.replace('{word}', keyword[0])
|
.replace('{word}', keyword[0])
|
||||||
|
|
Loading…
Reference in a new issue