Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo + kurang dikit #355

Merged
merged 3 commits into from
Jun 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/downloader-facebook.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ let handler = async (m, { conn, args, usedPrefix, command }) => {
const { result } = await facebookdl(args[0]).catch(async _ => await facebookdlv2(args[0]))
for (const { url, isVideo } of result.reverse()) conn.sendFile(m.chat, url, `facebook.${!isVideo ? 'bin' : 'mp4'}`, `🔗 *Url:* ${url}`, m)
}
handler.help = ['facebbok'].map(v => v + ' <url>')
handler.help = ['facebook'].map(v => v + ' <url>')
handler.tags = ['downloader']

handler.command = /^((facebook|fb)(downloder|dl)?)$/i
Expand Down
2 changes: 1 addition & 1 deletion plugins/owner-banuser.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let handler = async (m, { conn, text }) => {
users[who].banned = true
conn.reply(m.chat, `berhasil banned`, m)
}
handler.help = ['ban']
handler.help = ['ban @user']
handler.tags = ['owner']
handler.command = /^ban$/i
handler.rowner = true
Expand Down
2 changes: 1 addition & 1 deletion plugins/owner-unbanuser.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import db from '../lib/database.js'

let handler = async (m, { conn, text}) => {
let handler = async (m, { conn, text }) => {
if (!text) throw 'Siapa yang mau di unbanned?'
let who
if (m.isGroup) who = m.mentionedJid[0]
Expand Down