diff --git a/src/modules/fortune/index.ts b/src/modules/fortune/index.ts index 5a4807c..e1d0f59 100644 --- a/src/modules/fortune/index.ts +++ b/src/modules/fortune/index.ts @@ -36,7 +36,7 @@ export default class FortuneModule implements IModule { const rng = seedrandom(seed); const omikuji = omikujis[Math.floor(rng() * omikujis.length)]; const item = items[Math.floor(rng() * items.length)]; - msg.reply(`**${omikuji}๐ŸŽ‰**\nใƒฉใƒƒใ‚ญใƒผใ‚ขใ‚คใƒ†ใƒ : ${item}`, serifs.fortune.cw); + msg.reply(`**${omikuji}๐ŸŽ‰**\nใƒฉใƒƒใ‚ญใƒผใ‚ขใ‚คใƒ†ใƒ : ${item}`, serifs.fortune.cw(msg.friend.name)); return true; } else { return false; diff --git a/src/serifs.ts b/src/serifs.ts index 02bc397..5143d23 100644 --- a/src/serifs.ts +++ b/src/serifs.ts @@ -220,7 +220,7 @@ export default { * ๅ ใ„ */ fortune: { - cw: '็งใŒไปŠๆ—ฅใฎใ‚ใชใŸใฎ้‹ๅ‹ขใ‚’ๅ ใ„ใพใ—ใŸ...', + cw: name => name ? `็งใŒไปŠๆ—ฅใฎ${name}ใฎ้‹ๅ‹ขใ‚’ๅ ใ„ใพใ—ใŸ...` : '็งใŒไปŠๆ—ฅใฎใ‚ใชใŸใฎ้‹ๅ‹ขใ‚’ๅ ใ„ใพใ—ใŸ...', }, /**