Skip to content

Commit

Permalink
update?
Browse files Browse the repository at this point in the history
  • Loading branch information
Nurutomo committed Feb 23, 2021
1 parent df3e00a commit 7258de1
Show file tree
Hide file tree
Showing 99 changed files with 18 additions and 7 deletions.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified Procfile
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified index.js
100644 → 100755
Empty file.
Empty file modified install.sh
100644 → 100755
Empty file.
Empty file modified lib/database.js
100644 → 100755
Empty file.
Empty file modified lib/logs.js
100644 → 100755
Empty file.
Empty file modified lib/print.js
100644 → 100755
Empty file.
Empty file modified lib/simple.js
100644 → 100755
Empty file.
Empty file modified lib/sticker.js
100644 → 100755
Empty file.
Empty file modified lib/uploadImage.js
100644 → 100755
Empty file.
Empty file modified lib/webp.js
100644 → 100755
Empty file.
Empty file modified lib/y2mate.js
100644 → 100755
Empty file.
5 changes: 3 additions & 2 deletions main.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ conn.handler = async function (m) {
m.exp += 1

let usedPrefix
let user = global.DATABASE._data.users[m.sender]
let _user = global.DATABASE._data.users[m.sender]
for (let name in global.plugins) {
let plugin = global.plugins[name]
if (!plugin) continue
Expand Down Expand Up @@ -202,7 +202,7 @@ conn.handler = async function (m) {
fail('private', m, this)
continue
}
if (plugin.register && user.registered == false) { // Butuh daftar?
if (plugin.register && _user.registered == false) { // Butuh daftar?
fail('unreg', m, this)
continue
}
Expand Down Expand Up @@ -239,6 +239,7 @@ conn.handler = async function (m) {
console.log(e)
if (e) m.reply(util.format(e))
} finally {
// m.reply(util.format(_user))
if (m.limit) m.reply(+ m.limit + ' Limit terpakai')
}
break
Expand Down
Empty file modified package.json
100644 → 100755
Empty file.
Empty file modified plugins/add.js
100644 → 100755
Empty file.
Empty file modified plugins/apakah.js
100644 → 100755
Empty file.
Empty file modified plugins/apakah2.js
100644 → 100755
Empty file.
Empty file modified plugins/attp.js
100644 → 100755
Empty file.
Empty file modified plugins/banchat.js
100644 → 100755
Empty file.
Empty file modified plugins/base64.js
100644 → 100755
Empty file.
Empty file modified plugins/brainly.js
100644 → 100755
Empty file.
Empty file modified plugins/broadcast.js
100644 → 100755
Empty file.
Empty file modified plugins/broadcastgroups.js
100644 → 100755
Empty file.
Empty file modified plugins/broadcastjadibot.js
100644 → 100755
Empty file.
Empty file modified plugins/bucin.js
100644 → 100755
Empty file.
Empty file modified plugins/buylimit.js
100644 → 100755
Empty file.
Empty file modified plugins/calc.js
100644 → 100755
Empty file.
Empty file modified plugins/clear.js
100644 → 100755
Empty file.
Empty file modified plugins/creator.js
100644 → 100755
Empty file.
Empty file modified plugins/daily.js
100644 → 100755
Empty file.
Empty file modified plugins/debounce.js
100644 → 100755
Empty file.
Empty file modified plugins/delete.js
100644 → 100755
Empty file.
Empty file modified plugins/demote.js
100644 → 100755
Empty file.
Empty file modified plugins/donasi.js
100644 → 100755
Empty file.
Empty file modified plugins/enable.js
100644 → 100755
Empty file.
7 changes: 5 additions & 2 deletions plugins/exec.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ let handler = async (m, { conn, usedPrefix, command, text, noPrefix, args, grou
let old = m.exp * 1
try {
let i = 15
let exec = new (async () => {}).constructor('print', 'm', 'handler', 'require', 'conn', 'Array', 'process', 'args', 'groupMetadata', _text)
let f = {
exports: {}
}
let exec = new (async () => {}).constructor('print', 'm', 'handler', 'require', 'conn', 'Array', 'process', 'args', 'groupMetadata', 'module', 'exports', _text)
_return = await exec.call(conn, (...args) => {
if (--i < 1) return
console.log(...args)
return conn.reply(m.chat, util.format(...args), m)
}, m, handler, require, conn, CustomArray, process, args, groupMetadata)
}, m, handler, require, conn, CustomArray, process, args, groupMetadata, f, f.exports)
} catch (e) {
let err = await syntaxerror(_text, 'Execution Function', {
allowReturnOutsideFunction: true,
Expand Down
13 changes: 10 additions & 3 deletions plugins/exec2.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@ let exec = promisify(cp.exec).bind(cp)
let handler = async (m, { conn, isOwner, command, text }) => {
if (global.conn.user.jid != conn.user.jid) return
m.reply('Executing...')
let { stdout, stderr } = await exec(command.trimStart() + ' ' + text.trimEnd())
if (stdout.trim()) m.reply(stdout)
if (stderr.trim()) m.reply(stderr)
let o
try {
o = await exec(command.trimStart() + ' ' + text.trimEnd())
} catch (e) {
o = e
} finally {
let { stdout, stderr } = o
if (stdout.trim()) m.reply(stdout)
if (stderr.trim()) m.reply(stderr)
}
}
handler.customPrefix = /^[$] /
handler.command = new RegExp
Expand Down
Empty file modified plugins/fetch.js
100644 → 100755
Empty file.
Empty file modified plugins/fitnah.js
100644 → 100755
Empty file.
Empty file modified plugins/getcode.js
100644 → 100755
Empty file.
Empty file modified plugins/google.js
100644 → 100755
Empty file.
Empty file modified plugins/grouplist.js
100644 → 100755
Empty file.
Empty file modified plugins/hlh.js
100644 → 100755
Empty file.
Empty file modified plugins/ht.js
100644 → 100755
Empty file.
Empty file modified plugins/jadibot.js
100644 → 100755
Empty file.
Empty file modified plugins/kapankah.js
100644 → 100755
Empty file.
Empty file modified plugins/kapankah2.js
100644 → 100755
Empty file.
Empty file modified plugins/kick.js
100644 → 100755
Empty file.
Empty file modified plugins/leaderboard.js
100644 → 100755
Empty file.
Empty file modified plugins/link.js
100644 → 100755
Empty file.
Empty file modified plugins/math.js
100644 → 100755
Empty file.
Empty file modified plugins/math_answer.js
100644 → 100755
Empty file.
Empty file modified plugins/mention.js
100644 → 100755
Empty file.
Empty file modified plugins/menu.js
100644 → 100755
Empty file.
Empty file modified plugins/nulis.js
100644 → 100755
Empty file.
Empty file modified plugins/oadd.js
100644 → 100755
Empty file.
Empty file modified plugins/odemote.js
100644 → 100755
Empty file.
Empty file modified plugins/okick.js
100644 → 100755
Empty file.
Empty file modified plugins/online.js
100644 → 100755
Empty file.
Empty file modified plugins/opengumuman.js
100644 → 100755
Empty file.
Empty file modified plugins/opromote.js
100644 → 100755
Empty file.
Empty file modified plugins/pay.js
100644 → 100755
Empty file.
Empty file modified plugins/pengumuman.js
100644 → 100755
Empty file.
Empty file modified plugins/play.js
100644 → 100755
Empty file.
Empty file modified plugins/profile.js
100644 → 100755
Empty file.
Empty file modified plugins/promote.js
100644 → 100755
Empty file.
Empty file modified plugins/qrcode.js
100644 → 100755
Empty file.
Empty file modified plugins/readmore.js
100644 → 100755
Empty file.
Empty file modified plugins/register.js
100644 → 100755
Empty file.
Empty file modified plugins/runningtext.js
100644 → 100755
Empty file.
Empty file modified plugins/setbye.js
100644 → 100755
Empty file.
Empty file modified plugins/setmenu.js
100644 → 100755
Empty file.
Empty file modified plugins/setwelcome.js
100644 → 100755
Empty file.
Empty file modified plugins/simsimi.js
100644 → 100755
Empty file.
Empty file modified plugins/speed.js
100644 → 100755
Empty file.
Empty file modified plugins/ssweb.js
100644 → 100755
Empty file.
Empty file modified plugins/sticker.js
100644 → 100755
Empty file.
Empty file modified plugins/stopjadibot.js
100644 → 100755
Empty file.
Empty file modified plugins/styletext.js
100644 → 100755
Empty file.
Empty file modified plugins/sudo.js
100644 → 100755
Empty file.
Empty file modified plugins/template.js
100644 → 100755
Empty file.
Empty file modified plugins/textpro.js
100644 → 100755
Empty file.
Empty file modified plugins/toimg.js
100644 → 100755
Empty file.
Empty file modified plugins/ttp.js
100644 → 100755
Empty file.
Empty file modified plugins/tts.js
100644 → 100755
Empty file.
Empty file modified plugins/unbanchat.js
100644 → 100755
Empty file.
Empty file modified plugins/unregister.js
100644 → 100755
Empty file.
Empty file modified plugins/update.js
100644 → 100755
Empty file.
Empty file modified plugins/yta.js
100644 → 100755
Empty file.
Empty file modified plugins/ytv.js
100644 → 100755
Empty file.
Empty file modified src/LICENSE
100644 → 100755
Empty file.
Empty file modified src/font/Zahraaa.ttf
100644 → 100755
Empty file.
Empty file modified src/kertas/magernulis1.jpg
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified test.js
100644 → 100755
Empty file.
Empty file modified tmp/file
100644 → 100755
Empty file.
Empty file modified views/index.html
100644 → 100755
Empty file.
Empty file modified views/index.js
100644 → 100755
Empty file.
Empty file modified views/style.css
100644 → 100755
Empty file.

0 comments on commit 7258de1

Please sign in to comment.