Improve AI

This commit is contained in:
syuilo 2018-08-12 21:00:20 +09:00
parent 75fee2b753
commit 1bf139b204

View file

@ -28,7 +28,7 @@ export default class EmojiModule implements IModule {
public install = (ai: ) => { }
public onMention = (msg: MessageLike) => {
if (msg.text && msg.text.includes('占')) {
if (msg.text && (msg.text.includes('占') || msg.text.includes('運勢'))) {
const date = new Date();
const seed = `${date.getFullYear()}/${date.getMonth()}/${date.getDay()}@${msg.userId}`;
const rng = seedrandom(seed);