From fb668dc0f8c01b3d037f65d0a244a6a86ae72047 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 4 Sep 2018 11:17:28 +0900 Subject: [PATCH] Update serif --- src/modules/fortune/index.ts | 2 +- src/serifs.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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}ใฎ้‹ๅ‹ขใ‚’ๅ ใ„ใพใ—ใŸ...` : '็งใŒไปŠๆ—ฅใฎใ‚ใชใŸใฎ้‹ๅ‹ขใ‚’ๅ ใ„ใพใ—ใŸ...', }, /**