diff --git a/src/modules/fortune/index.ts b/src/modules/fortune/index.ts index 927ecd5..7a40f89 100644 --- a/src/modules/fortune/index.ts +++ b/src/modules/fortune/index.ts @@ -224,7 +224,7 @@ export default class FortuneModule implements IModule { public onMention = (msg: MessageLike) => { if (msg.includes(['占', 'うらな', '運勢', 'おみくじ'])) { const date = new Date(); - const seed = `${date.getFullYear()}/${date.getMonth()}/${date.getDay()}@${msg.userId}`; + const seed = `${date.getFullYear()}/${date.getMonth()}/${date.getDate()}@${msg.userId}`; const rng = seedrandom(seed); const omikuji = omikujis[Math.floor(rng() * omikujis.length)]; const itemPrefix = Math.floor(rng() * 5) != 0 ? itemPrefixes[Math.floor(rng() * itemPrefixes.length)] : '';