goat
command
unsendreact
Reply #r on bot msg with angry react
0
views
0
likes
0
installs
Aliases: ur
raw source
module.exports = {
config: {
name: "unsendreact",
aliases: ["ur"],
version: "1.2",
author: "Sazzad",
countDown: 0,
role: 1,
shortDescription: "Reply #r on bot msg with angry react",
longDescription: "React ๐ on bot msg to make bot reply #r. Only for Sazzad",
category: "admin",
guide: { en: "React ๐ on bot message" }
},
onStart: async function() {},
onReaction: async function({ api, event }) {
const OWNER_ID = "61587127840501"
const TARGET_REACT = "๐ "
const botID = api.getCurrentUserID()
if (event.userID !== OWNER_ID) return
if (event.reaction !== TARGET_REACT) return
if (event.senderID !== botID) return
try {
await api.sendMessage("#r", event.threadID, event.messageID)
} catch (e) {
await api.sendMessage("โ ๐๐๐ง๐ญ ๐ซ๐๐ฉ๐ฅ๐ฒ ๐ญ๐จ ๐ญ๐ก๐ข๐ฌ ๐ฆ๐๐ฌ๐๐ ๐", event.threadID)
}
}
}