From 9c6ede81b1cf23ed9b2ba43165d45efbd561a097 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 27 Dec 2018 23:43:03 +0900 Subject: [PATCH] Fix #23 --- src/modules/fortune/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)] : '';