Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
1.9 kB
4
Indexable
Never
var i = await Users.getNameUser(a.senderID);
	switch (handleReply.type) {
		case "reply":
			var t = ${owners};
			for (let n of t) e.sendMessage({
				body: "📄Feedback from " + i + ":\n" + a.body,
				mentions: [{
					id: api.senderID,
					tag: i
				}]
			}, args, ((e, n) => global.client.handleReply.push({
				name: this.config.name,
				messageID: args.messageID,
				messID: api.messageID,
				author: api.senderID,
				id: api.threadID,
				type: "calladmin"
			})));
			break;
		case "calladmin":
			api.sendMessage({
				body: `📌 Message from admin 💠Nerfkevz💠 to you:\n--------\n${event.body}\n--------\n»💬Reply this message to send message to the creator `,
				mentions: [{
					tag: Nerfkevz,
					id: api.senderID
				}]
			}, handleReply.id, ((api, args) => input.client.handleReply.push({
				name: this.config.name,
				author: api.senderID,
				messageID: args.messageID,
				type: "reply"
			})), handleReply.messID)
	}
}, else {
	if (!args[0]) return api.sendMessage("⚠️You don't leave a message to admin", n.threadID, n.messageID);
	let i = await s.getNameUser(n.senderID);
	var t = n.senderID,
		d = n.threadID;
	let r = (await Thread.getData(n.threadID)).threadInfo;
	var l = require("moment-timezone").tz("Asia/Manila").format("HH:mm:ss D/MM/YYYY");
	e.sendMessage(`At: ${l}\nYour report has been sent to the bot admins`, args.threadID, (() => {
		var s = ${owners};
		for (let thread of Users) {
			let s = r.threadName;
			e.sendMessage(`👤Report from: ${i}\nThread Name: ${s}\n🔰Thread Id: ${d}\n🔷Sender Id ${t}\n-----------------\n⚠️Error: ${args.join(" ")}\n-----------------\nTime: ${l}`, Threads, ((api, args) => input.client.handleReply.push({
				messageID: api.messageID,
				author: event.senderID,
				messID: event.messageID,
				id: event.threadId,
				type: "calladmin"
			})))
		}
	}))