Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
StarlightsTeam authored Mar 9, 2024
1 parent 213c0c1 commit 0724184
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 19 deletions.
49 changes: 49 additions & 0 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ global.owner = [
['5218132588591', 'おDanịel.xyz⁩', true],
['5218139760662'],
['5218261009198'],
['5218261275256'],
['50662333781']
] //Numeros de owner

Expand Down Expand Up @@ -47,6 +48,54 @@ global.miniurl = fs.readFileSync('./storage/img/miniurl.jpg')
global.catalogo = fs.readFileSync('./storage/img/catalogo.png')
global.thumbnail = fs.readFileSync('./storage/img/thumbnail.jpg')

global.keysZens = ['LuOlangNgentot', 'c2459db922', '37CC845916', '6fb0eff124', 'hdiiofficial', 'fiktod', 'BF39D349845E', '675e34de8a', '0b917b905e6f']
global.keysxxx = keysZens[Math.floor(keysZens.length * Math.random())]
global.keysxteammm = ['29d4b59a4aa687ca', '5LTV57azwaid7dXfz5fzJu', 'cb15ed422c71a2fb', '5bd33b276d41d6b4', 'HIRO', 'kurrxd09', 'ebb6251cc00f9c63']
global.keysxteam = keysxteammm[Math.floor(keysxteammm.length * Math.random())]
global.keysneoxrrr = ['5VC9rvNx', 'cfALv5']
global.keysneoxr = keysneoxrrr[Math.floor(keysneoxrrr.length * Math.random())]
global.lolkeysapi = ['GataDios'] // ['BrunoSobrino_2']
global.skizo = ['konekocyz']
global.lann = 'p8ADYJib'
global.kiicode = 'usU5RWzmQq'
global.itsrose = ['4b146102c4d500809da9d1ff']
global.botcahxkey = ['NDM8oaRr', 'Gi8erBvz', 'SYUTqCrg', 'DcAWSMo9']
global.botcahx = botcahxkey[Math.floor(botcahxkey.length * Math.random())]

global.APIs = {
xteam: 'https://api.xteam.xyz',
dzx: 'https://api.dhamzxploit.my.id',
lol: 'https://api.lolhuman.xyz',
neoxr: 'https://api.neoxr.my.id',
zenzapis: 'https://api.zahwazein.xyz',
akuari: 'https://api.akuari.my.id',
akuari2: 'https://apimu.my.id',
can: 'https://pnggilajacn.my.id',
fgmods: 'https://api-fgmods.ddns.net',
botcahx: 'https://api.botcahx.biz.id',
ibeng: 'https://api.ibeng.tech/docs',
rose: 'https://api.itsrose.site',
popcat: 'https://api.popcat.xyz',
xcoders: 'https://api-xcoders.site',
vihangayt: 'https://vihangayt.me',
erdwpe: 'https://api.erdwpe.com',
xyroinee: 'https://api.xyroinee.xyz',
nekobot: 'https://nekobot.xyz'
},
global.APIKeys = {
'https://api.xteam.xyz': `${keysxteam}`,
'https://api.lolhuman.xyz': 'GataDios',
'https://api.neoxr.my.id': `${keysneoxr}`,
'https://api.zahwazein.xyz': `${keysxxx}`,
'https://api-fgmods.ddns.net': 'fg-dylux',
'https://api.botcahx.biz.id': 'Admin',
'https://api.ibeng.tech/docs': 'tamvan',
'https://api.itsrose.site': 'Rs-Zeltoria',
'https://pnggilajacn.my.id': 'ItsukaChan',
'https://api-xcoders.site': 'Frieren',
'https://api.xyroinee.xyz': 'uwgflzFEh6'
}

//━━━━━━━━━━━ ฅ^•ﻌ•^ฅ ━━━━━━━━━━━

global.estilo = { key: { fromMe: false, participant: `0@s.whatsapp.net`, ...(false ? { remoteJid: "5219992095479-1625305606@g.us" } : {}) }, message: { orderMessage: { itemCount : -999999, status: 1, surface : 1, message: 'Ai Hoshino - MD', orderTitle: 'Bang', thumbnail: catalogo, sellerJid: '0@s.whatsapp.net'}}}
Expand Down
3 changes: 3 additions & 0 deletions handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ export async function handler(chatUpdate) {
user.warn = 0
if (!isNumber(user.level))
user.level = 0
if (!('useDocument' in user))
user.useDocument = false
if (!('premium' in user))
user.premium = false
if (!user.premiumTime)
Expand All @@ -85,6 +87,7 @@ export async function handler(chatUpdate) {
banned: false,
warn: 0,
level: 0,
useDocument: true,
premium: false,
premiumTime: 0,
}
Expand Down
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ const rl = createInterface(process.stdin, process.stdout)
const app = express()
const port = process.env.PORT || 8080;

say(`Ai Hoshino`, {
say('Ai Hoshino - MD', {
font: 'chrome',
align: 'center',
gradient: ['red', 'magenta']})
say(`WhatsApp Bot Multi Device`, {
say(`Simple WhatsApp Bot Multi Device`, {
font: 'console',
align: 'center',
gradient: ['red', 'magenta']})
Expand Down Expand Up @@ -85,4 +85,4 @@ async function start(file) {
// console.log(p)
}

start('main.js')
start('main.js')
24 changes: 8 additions & 16 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ global.timestamp = {
const __dirname = global.__dirname(import.meta.url)

global.opts = new Object(yargs(process.argv.slice(2)).exitProcess(false).parse())
global.prefix = new RegExp('^[' + (opts['prefix'] || '‎z/i!#$%+£¢€¥^°=¶∆×÷π√✓©®:;?&.,\\-').replace(/[|\\{}()[\]^$+*?.\-\^]/g, '\\$&') + ']')
global.prefix = new RegExp('^[' + (opts['prefix'] || '‎/#.\\-').replace(/[|\\{}()[\]^$+*?.\-\^]/g, '\\$&') + ']')

// global.opts['db'] = process.env['db']

Expand Down Expand Up @@ -80,15 +80,14 @@ global.loadDatabase = async function loadDatabase() {
loadDatabase()

//-- SESSION
global.authFolder = `Ai Hoshino/sessions`
global.authFolder = `sessions`
const { state, saveCreds } = await useMultiFileAuthState(global.authFolder)
let { version, isLatest } = await fetchLatestBaileysVersion()

const connectionOptions = {
version,
printQRInTerminal: true,
auth: state,
browser: ['Ai Hoshino', 'Safari', '1.0.0'],
browser: ['Ai Hoshino - MD', 'Safari', '1.0.0'],
patchMessageBeforeSending: (message) => {
const requiresPatch = !!(
message.buttonsMessage
Expand Down Expand Up @@ -138,14 +137,15 @@ async function clearTmp() {
//---
return filename.map(file => {
const stats = statSync(file)
if (stats.isFile() && (Date.now() - stats.mtimeMs >= 1000 * 60 * 1)) return unlinkSync(file) // 1 minuto
if (stats.isFile() && (Date.now() - stats.mtimeMs >= 1000 * 60 * 1)) return unlinkSync(file) // 3 minuto
return false
})
}

setInterval(async () => {
await clearTmp()
}, 60000) //1 munto
console.log(chalk.cyan(`Se limpio la carpeta tmp`))
}, 60000) //3 muntos

async function connectionUpdate(update) {
const { connection, lastDisconnect, isNewLogin } = update
Expand All @@ -158,7 +158,7 @@ async function connectionUpdate(update) {

if (global.db.data == null) loadDatabase()

}
} //-- cu

process.on('uncaughtException', console.error)
// let strQuot = /(["'])(?:(?=(\\?))\2.)*?\1/
Expand Down Expand Up @@ -187,14 +187,6 @@ global.reloadHandler = async function (restatConn) {
conn.ev.off('connection.update', conn.connectionUpdate)
conn.ev.off('creds.update', conn.credsUpdate)
}

conn.spromote = '@user promovió a admin'
conn.sdemote = '@user degradado'
conn.sDesc = 'La descripción ha sido cambiada a \n@desc'
conn.sSubject = 'El nombre del grupo ha sido cambiado a \n@group'
conn.sIcon = 'El icono del grupo ha sido cambiado'
conn.sRevoke = 'El enlace del grupo ha sido cambiado a \n@revoke'
conn.handler = handler.handler.bind(global.conn)
conn.participantsUpdate = handler.participantsUpdate.bind(global.conn)
conn.groupsUpdate = handler.groupsUpdate.bind(global.conn)
conn.onDelete = handler.deleteUpdate.bind(global.conn)
Expand All @@ -211,7 +203,7 @@ global.reloadHandler = async function (restatConn) {
return true
}

const pluginFolder = global.__dirname(join(__dirname, './plugins/index'));
const pluginFolder = global.__dirname(join(__dirname, './plugins/index'))
const pluginFilter = (filename) => /\.js$/.test(filename);
global.plugins = {};
async function filesInit() {
Expand Down

0 comments on commit 0724184

Please sign in to comment.