jadibot-serbot-stop.js 390 B

123456789101112
  1. let handler = async (m, { conn }) => {
  2. if (global.conn.user.jid === conn.user.jid) {
  3. await m.reply('*⚠️ Este comando sólo puede ser ejecutado por un usuario que sea Sub-Bot*');
  4. } else {
  5. await m.reply(`Adios bot :(`);
  6. conn.ws.close();
  7. }};
  8. handler.help = ['stop'];
  9. handler.tags = ['jadibot'];
  10. handler.command = /^(berhenti|stop|detener)$/i
  11. handler.private = true
  12. export default handler