Update serif

This commit is contained in:
syuilo 2018-09-03 23:50:41 +09:00
parent 0d0872e615
commit 13481451f3
2 changed files with 6 additions and 1 deletions

View file

@ -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;
}

View file

@ -85,6 +85,10 @@ export default {
remembered: (word) => `${word}`
},
dice: {
done: res => `${res} です!`
},
/**
*
*/