Upload message.js
Browse files- message.js +28 -0
message.js
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
module.exports = async (senderNumber, prefix, command, setReply) => {
|
2 |
+
global.mess = {
|
3 |
+
wait: '*processing a sec....*',
|
4 |
+
nsfw: '*nsfw is prohibited in this group*',
|
5 |
+
success: 'successful',
|
6 |
+
limit: `[β] your limit has run out\nif you want unlimited limit, you can buy premium. for only 10 thousand, you can get an unlimited limit for 3 months.\nplease type ${prefix}owner to find out.`,
|
7 |
+
only: {
|
8 |
+
prem: 'this feature is only for premium users',
|
9 |
+
vip: 'this feature is for vip users only π₯π\ncontact 2347041039367 to buy',
|
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'
|
17 |
+
}
|
18 |
+
};
|
19 |
+
const fs = require("fs");
|
20 |
+
const chalk = require("chalk");
|
21 |
+
const file = require.resolve(__filename);
|
22 |
+
fs.watchFile(file, () => {
|
23 |
+
fs.unwatchFile(file);
|
24 |
+
console.log(chalk.redBright(`Reloading file: ${__filename}`));
|
25 |
+
delete require.cache[file];
|
26 |
+
require(file);
|
27 |
+
});
|
28 |
+
};
|