-
Notifications
You must be signed in to change notification settings - Fork 1
/
git.js
169 lines (131 loc) Β· 5 KB
/
git.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
const util = require('util');
const fs = require('fs-extra');
const { zokou } = require(__dirname + "/../framework/zokou");
const { format } = require(__dirname + "/../framework/mesfonctions");
const os = require("os");
const moment = require("moment-timezone");
const s = require(__dirname + "/../set");
const more = String.fromCharCode(8206)
const readmore = more.repeat(4001)
zokou({ nomCom: "sc", categorie: "General" }, async (dest, zk, commandeOptions) => {
let { ms, repondre ,prefixe,nomAuteurMessage,mybotpic} = commandeOptions;
let { cm } = require(__dirname + "/../framework//zokou");
var coms = {};
var mode = "public";
if ((s.MODE).toLocaleLowerCase() != "yes") {
mode = "private";
}
cm.map(async (com, index) => {
if (!coms[com.categorie])
coms[com.categorie] = [];
coms[com.categorie].push(com.nomCom);
});
moment.tz.setDefault('Etc/GMT');
// CrΓ©er une date et une heure en GMT
const temps = moment().format('HH:mm:ss');
const date = moment().format('DD/MM/YYYY');
let infoMsg = `
*MRSK MD IMPORTANT INFO*
πβββββββββββββββββββπ
*GITHUB LINK*
> https://github.com/Peterjoram/MRSKY-MD
β
ββββββββββββββββββββπ
βββ β β β *RAM* : ${format(os.totalmem() - os.freemem())}/${format(os.totalmem())}
βββ β β β *DEV* : *Mrsky*
β β β β β°βββββββββββββββββββπ
`;
let menuMsg = `
*Mrsky Tech*
πββββββββββββββββββββπ`;
var lien = mybotpic();
if (lien.match(/\.(mp4|gif)$/i)) {
try {
zk.sendMessage(dest, { video: { url: lien }, caption:infoMsg + menuMsg, footer: "Je suis *Beltahmd*, dΓ©veloper Beltah Tech" , gifPlayback : true }, { quoted: ms });
}
catch (e) {
console.log("π₯΅π₯΅ Menu erreur " + e);
repondre("π₯΅π₯΅ Menu erreur " + e);
}
}
// VΓ©rification pour .jpeg ou .png
else if (lien.match(/\.(jpeg|png|jpg)$/i)) {
try {
zk.sendMessage(dest, { image: { url: lien }, caption:infoMsg + menuMsg, footer: "Je suis *Beltahmd*, dΓ©veloper Beltah Tech" }, { quoted: ms });
}
catch (e) {
console.log("π₯΅π₯΅ Menu erreur " + e);
repondre("π₯΅π₯΅ Menu erreur " + e);
}
}
else {
repondre(infoMsg + menuMsg);
}
});
/*const util = require('util');
const fs = require('fs-extra');
const { zokou } = require(__dirname + "/../framework/zokou");
const { format } = require(__dirname + "/../framework/mesfonctions");
const os = require("os");
const moment = require("moment-timezone");
const s = require(__dirname + "/../set");
const more = String.fromCharCode(8206)
const readmore = more.repeat(4001)
zokou({ nomCom: "sc", categorie: "General" }, async (dest, zk, commandeOptions) => {
let { ms, repondre ,prefixe,nomAuteurMessage,mybotpic} = commandeOptions;
let { cm } = require(__dirname + "/../framework//zokou");
var coms = {};
var mode = "public";
if ((s.MODE).toLocaleLowerCase() != "yes") {
mode = "private";
}
cm.map(async (com, index) => {
if (!coms[com.categorie])
coms[com.categorie] = [];
coms[com.categorie].push(com.nomCom);
});
moment.tz.setDefault('Etc/GMT');
// CrΓ©er une date et une heure en GMT
const temps = moment().format('HH:mm:ss');
const date = moment().format('DD/MM/YYYY');
let infoMsg = `
*BMW MD IMPORTANT INFO*
βββββββββββββββββββββ
*GITHUB LINK*
> https://github.com/ibrahimaitech/BMW-MD
*WHATSAPP CHANNEL*
> https://whatsapp.com/channel/0029VaZuGSxEawdxZK9CzM0Y
*FOR MORE INFO TAP ON THE LINK BELOW*
> https://github.com/IBRAHIM-TECH-AI/IBRAHIM-ADAMS-INFOβ
βββββββββββββββββββββ
βββ β β β *RAM* : ${format(os.totalmem() - os.freemem())}/${format(os.totalmem())}
βββ β β β *DEV* : *Ibrahim Adams*
β β β β β°ββββββββββββββββββββ
`;
let menuMsg = `
π°π©πΉπ¨π―π°π΄ π¨π«π¨π΄πΊ πΊπͺπ°π¬π΅πͺπ¬
ββββββββββββββββββββββ`;
var lien = mybotpic();
if (lien.match(/\.(mp4|gif)$/i)) {
try {
zk.sendMessage(dest, { video: { url: lien }, caption:infoMsg + menuMsg, footer: "Je suis *Beltahmd*, dΓ©veloper Beltah Tech" , gifPlayback : true }, { quoted: ms });
}
catch (e) {
console.log("π₯΅π₯΅ Menu erreur " + e);
repondre("π₯΅π₯΅ Menu erreur " + e);
}
}
// VΓ©rification pour .jpeg ou .png
else if (lien.match(/\.(jpeg|png|jpg)$/i)) {
try {
zk.sendMessage(dest, { image: { url: lien }, caption:infoMsg + menuMsg, footer: "Je suis *Beltahmd*, dΓ©veloper Beltah Tech" }, { quoted: ms });
}
catch (e) {
console.log("π₯΅π₯΅ Menu erreur " + e);
repondre("π₯΅π₯΅ Menu erreur " + e);
}
}
else {
repondre(infoMsg + menuMsg);
}
});*/