From 13481451f37c876aa962554f0adba11eb3753d66 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 3 Sep 2018 23:50:41 +0900 Subject: [PATCH] Update serif --- src/modules/dice/index.ts | 3 ++- src/serifs.ts | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/dice/index.ts b/src/modules/dice/index.ts index c307ca7..e3753f8 100644 --- a/src/modules/dice/index.ts +++ b/src/modules/dice/index.ts @@ -1,6 +1,7 @@ import 藍 from '../../ai'; import IModule from '../../module'; import MessageLike from '../../message-like'; +import serifs from '../../serifs'; export default class DiceModule implements IModule { public readonly name = 'dice'; @@ -29,7 +30,7 @@ export default class DiceModule implements IModule { results.push(Math.floor(Math.random() * dice) + 1); } - msg.reply(results.join(' ')); + msg.reply(serifs.dice.done(results.join(' '))); return true; } diff --git a/src/serifs.ts b/src/serifs.ts index 94b75b2..02bc397 100644 --- a/src/serifs.ts +++ b/src/serifs.ts @@ -85,6 +85,10 @@ export default { remembered: (word) => `${word}` }, + dice: { + done: res => `${res} です!` + }, + /** * リバーシ */