← back to browse
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)
}
}
}

View raw file