mirror of
https://github.com/syuilo/ai.git
synced 2024-12-22 08:21:08 +00:00
Update index.ts
This commit is contained in:
parent
a0298a14da
commit
18e8b4cca9
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue