put notes/18868bdf-f387-4c6a-a874-fa1d76e18cf4.json
Browse files
notes/18868bdf-f387-4c6a-a874-fa1d76e18cf4.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"id": "18868bdf-f387-4c6a-a874-fa1d76e18cf4",
|
3 |
+
"title": "ping.js",
|
4 |
+
"content": "module.exports.config = {\n\tname: \"ping\",\n\tversion: \"1.0.8\",\n\thasPermssion: 1,\n\tcredits: \"Mirai Team\",\n\tdescription: \"Tag ẩn toàn bộ thành viên\",\n\tcommandCategory: \"QTV\",\n\tusages: \"[Text]\",\n\tcooldowns: 20\n};\n\nmodule.exports.run = async function({ api, event, args }) {\n\ttry {\n\t\tconst botID = api.getCurrentUserID();\n\t\tvar listUserID = event.participantIDs.filter(ID => ID != botID && ID != event.senderID);\n\t\tvar body = (args.length != 0) ? args.join(\" \") : \"Bạn đã bị quản trị viên xoá khỏi nhóm.\", mentions = [], index = 0;\n\t\t\n\t\tfor(const idUser of listUserID) {\n\t\t\tbody = \"\" + body;\n\t\t\tmentions.push({ id: idUser, tag: \"\", fromIndex: index - 1 });\n\t\t\tindex -= 1;\n\t\t}\n\n\t\treturn api.sendMessage({ body, mentions }, event.threadID, event.messageID);\n\n\t}\n\tcatch (e) { return console.log(e); }\n}",
|
5 |
+
"language": "javascript",
|
6 |
+
"createdAt": 1757125371715,
|
7 |
+
"updatedAt": 1757125371715
|
8 |
+
}
|