Can the event command be used in private messages? #481
revanapriyandi
started this conversation in
General
Replies: 1 comment 1 reply
-
yes, just make sure the filename end with _
and you can filter the message import type { Event } from "../../types/command"
export default <Event>{
execute: async ({ aruga, message }) => {
if (!message.isGroupMsg && !message.fromMe) {
await aruga.sendMessage(message.from, {
react: {
text: "⏳",
key: message.key
}
})
}
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
import type { Event } from "../../types/command"
export default {
execute: async ({ client, message }) => {
if (!message.fromMe) {
return await client.sendMessage(message.from, {
react: {
text: "⏳",
key: message.key
}
})
}
}
}
Beta Was this translation helpful? Give feedback.
All reactions