Update index.ts

This commit is contained in:
syuilo 2018-11-24 06:31:40 +09:00
parent a9f8d9bfb8
commit d388d0ab8d
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -124,7 +124,7 @@ export default class EmojiModule implements IModule {
public install = (ai: ) => { }
public onMention = (msg: MessageLike) => {
if (msg.includes(['絵文字', 'emoji'])) {
if (msg.includes(['絵文字', 'emoji', '福笑い'])) {
const hand = hands[Math.floor(Math.random() * hands.length)];
const face = faces[Math.floor(Math.random() * faces.length)];
const emoji = Array.isArray(hand) ? hand[0] + face + hand[1] : hand + face + hand;