mirror of
https://github.com/syuilo/ai.git
synced 2024-11-14 01:37:59 +00:00
Update index.ts
This commit is contained in:
parent
a9f8d9bfb8
commit
d388d0ab8d
|
@ -124,7 +124,7 @@ export default class EmojiModule implements IModule {
|
||||||
public install = (ai: 藍) => { }
|
public install = (ai: 藍) => { }
|
||||||
|
|
||||||
public onMention = (msg: MessageLike) => {
|
public onMention = (msg: MessageLike) => {
|
||||||
if (msg.includes(['絵文字', 'emoji'])) {
|
if (msg.includes(['絵文字', 'emoji', '福笑い'])) {
|
||||||
const hand = hands[Math.floor(Math.random() * hands.length)];
|
const hand = hands[Math.floor(Math.random() * hands.length)];
|
||||||
const face = faces[Math.floor(Math.random() * faces.length)];
|
const face = faces[Math.floor(Math.random() * faces.length)];
|
||||||
const emoji = Array.isArray(hand) ? hand[0] + face + hand[1] : hand + face + hand;
|
const emoji = Array.isArray(hand) ? hand[0] + face + hand[1] : hand + face + hand;
|
||||||
|
|
Loading…
Reference in a new issue