forked from Dark-Town/GHOST-RIDER
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcommand.js
More file actions
23 lines (21 loc) · 540 Bytes
/
command.js
File metadata and controls
23 lines (21 loc) · 540 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//GHOST-RIDER Whatsapp User Bot
//Created BY Tcroneb
var commands = [];
function cmd(info, func) {
var data = info;
data.function = func;
if (!data.dontAddCommandList) data.dontAddCommandList = false;
if (!info.desc) info.desc = '';
if (!data.fromMe) data.fromMe = false;
if (!info.category) data.category = 'misc';
if(!info.filename) data.filename = "Not Provided";
commands.push(data);
return data;
}
module.exports = {
cmd,
AddCommand:cmd,
Function:cmd,
Module:cmd,
commands,
};