This commit is contained in:
syuilo 2018-08-15 01:49:31 +09:00
parent ad7dad407e
commit f587d4043c

View file

@ -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])