Update index.ts

This commit is contained in:
syuilo 2018-11-29 08:03:45 +09:00
parent a0298a14da
commit 18e8b4cca9

View file

@ -132,7 +132,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;