File size: 625 Bytes
5fb4b36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
let handler = async (m, { conn, text, usedPrefix, command }) => {
  if (command === "self") {
    if (opts["self"]) throw "*[ ! ] self has been activated previously*";
    opts["self"] = true;
    m.reply("[ ✓ ] self activated successfully");
  } else if (command === "public") {
    if (!opts["self"]) throw "*[ ! ] public has been activated previously*";
    opts["self"] = false;
    m.reply("[ ✓ ] public activated successfully");
  }
};
handler.help = ["self", "public"].map((a) => a + " *[options]*");
handler.tags = ["owner"];
handler.command = ["self", "public"];
handler.owner = true;

module.exports = handler;