API-XX commited on
Commit
cf1f9e3
·
verified ·
1 Parent(s): 8f63333

Upload 3 files

Browse files
Files changed (2) hide show
  1. group.js +1 -2
  2. message.js +1 -1
group.js CHANGED
@@ -8,7 +8,6 @@ const {
8
  sleep
9
  } = require("../lib/myfunc");
10
 
11
- //Function update member
12
  module.exports = async (conn, anu) => {
13
  var jeda = false;
14
  if (jeda) return console.log("spam welcome active");
@@ -68,7 +67,7 @@ module.exports = async (conn, anu) => {
68
 
69
  const isRAdmin = (user && user.admin == "superadmin") || false;
70
  const isAdmin = isRAdmin || (user && user.admin == "admin") || false;
71
- const isBotAdmin = (bot && bot.admin == "admin") || false; // Are you Admin?
72
  const pushname = await conn.getName(sender);
73
  const oneMem = anu.participants.length === 1;
74
  const itsMe = sender === botNumber;
 
8
  sleep
9
  } = require("../lib/myfunc");
10
 
 
11
  module.exports = async (conn, anu) => {
12
  var jeda = false;
13
  if (jeda) return console.log("spam welcome active");
 
67
 
68
  const isRAdmin = (user && user.admin == "superadmin") || false;
69
  const isAdmin = isRAdmin || (user && user.admin == "admin") || false;
70
+ const isBotAdmin = (bot && bot.admin == "admin") || false;
71
  const pushname = await conn.getName(sender);
72
  const oneMem = anu.participants.length === 1;
73
  const itsMe = sender === botNumber;
message.js CHANGED
@@ -10,7 +10,7 @@ module.exports = async (senderNumber, prefix, command, setReply) => {
10
  group: 'this feature can only be accessed in groups',
11
  private: 'this feature can only be accessed in private chat',
12
  ownerB: 'command for bot user only',
13
- owner: 'command for bot owner only',
14
  admin: 'this feature can only be accessed by admins !!!',
15
  reseller: 'command can only be used by registered resellers',
16
  Badmin: 'make bot admin to be able to use this feature'
 
10
  group: 'this feature can only be accessed in groups',
11
  private: 'this feature can only be accessed in private chat',
12
  ownerB: 'command for bot user only',
13
+ owner: 'command for sudo users only',
14
  admin: 'this feature can only be accessed by admins !!!',
15
  reseller: 'command can only be used by registered resellers',
16
  Badmin: 'make bot admin to be able to use this feature'