mirror of
https://github.com/syuilo/ai.git
synced 2024-11-12 17:08:00 +00:00
Update serif
This commit is contained in:
parent
0d0872e615
commit
13481451f3
|
@ -1,6 +1,7 @@
|
||||||
import 藍 from '../../ai';
|
import 藍 from '../../ai';
|
||||||
import IModule from '../../module';
|
import IModule from '../../module';
|
||||||
import MessageLike from '../../message-like';
|
import MessageLike from '../../message-like';
|
||||||
|
import serifs from '../../serifs';
|
||||||
|
|
||||||
export default class DiceModule implements IModule {
|
export default class DiceModule implements IModule {
|
||||||
public readonly name = 'dice';
|
public readonly name = 'dice';
|
||||||
|
@ -29,7 +30,7 @@ export default class DiceModule implements IModule {
|
||||||
results.push(Math.floor(Math.random() * dice) + 1);
|
results.push(Math.floor(Math.random() * dice) + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
msg.reply(results.join(' '));
|
msg.reply(serifs.dice.done(results.join(' ')));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,6 +85,10 @@ export default {
|
||||||
remembered: (word) => `${word}`
|
remembered: (word) => `${word}`
|
||||||
},
|
},
|
||||||
|
|
||||||
|
dice: {
|
||||||
|
done: res => `${res} です!`
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* リバーシ
|
* リバーシ
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue