Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Abuzzpoet authored Nov 26, 2024
1 parent 2ea3fb5 commit d03f795
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 8 deletions.
9 changes: 5 additions & 4 deletions cmd/main/botinfo.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
export default (handler) => {
handler.reg({
cmd: ['info', 'botinfo'],
cmd: ['infobot', 'botinfo'],
tags: 'main',
desc: 'Detail informasi bot',
run: async (m, { db }) => {
m.reply(`*Bot Information*
const jid = `${db.setting.owner}@s.whatsapp.net`
m.reply({ text: `*Bot Information*
π–₯” Owner: @${db.setting.owner}
π–₯” Owner: @${jid.split('@')[0]}
π–₯” Firstchat: ${db.setting.firstchat ? '*Active* βœ…' : '*Non Active* ❌'}
π–₯” Read Story WhatsApp: ${db.setting.readstory ? '*Active* βœ…' : '*Non Active* ❌'}
π–₯” Reaction Story: ${db.setting.reactstory ? '*Active* βœ…' : '*Non Active* ❌'}
Expand All @@ -19,7 +20,7 @@ export default (handler) => {
𖦏 Logo:
> ${db.setting.logo}
𖦏 Packname Sticker:
> ${db.setting.packname}`, { mentions: [db.setting.owner + '@s.whatsapp.net'] })
> ${db.setting.packname}`, mentions: [jid] })
}
})
}
2 changes: 1 addition & 1 deletion cmd/main/delete.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default (handler) => {
handler.reg({
cmd: ['delete', 'del'],
cmd: ['delete', 'del', 'd'],
tags: 'main',
desc: 'Delete message',
run: async (m) => {
Expand Down
6 changes: 3 additions & 3 deletions cmd/main/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default (handler) => {
}
}

const orderedTags = ['main', 'convert', 'ai', 'downloader', 'group', 'channel', 'owner', 'tools', 'anime']
const orderedTags = ['main', 'convert', 'ai', 'anime', 'downloader', 'group', 'maker', 'channel', 'owner', 'tools',]
let menu = ''
let counter = 1

Expand All @@ -72,11 +72,11 @@ export default (handler) => {
const hitAll = await fetch("https://amiruldev.serv00.net/hit.txt")
const counts = await hitAll.text()
const clang = await func.loads("amiruldev/tr.js")
const gtr = await clang(fetch, `Selamat datang di MyWA BOT
const gtr = await clang(fetch, `Selamat datang di Shiroko BOT
Bot ini masih dalam tahap beta
`, db.setting.lang)
sock.sendAdL(m.from, `Hi, *@${m.sender.split("@")[0]}* πŸ‘‹
sock.sendAdT(m.from, `Hi, *@${m.sender.split("@")[0]}* πŸ‘‹
${gtr}
Expand Down
19 changes: 19 additions & 0 deletions cmd/main/userinfo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import moment from "moment-timezone"

Check failure on line 1 in cmd/main/userinfo.js

View workflow job for this annotation

GitHub Actions / ESLint

'moment' is defined but never used

Check failure on line 1 in cmd/main/userinfo.js

View workflow job for this annotation

GitHub Actions / check-lint

'moment' is defined but never used
import { getPremiumExpired } from "../../system/db/premium.js"

Check failure on line 2 in cmd/main/userinfo.js

View workflow job for this annotation

GitHub Actions / ESLint

'getPremiumExpired' is defined but never used

Check failure on line 2 in cmd/main/userinfo.js

View workflow job for this annotation

GitHub Actions / check-lint

'getPremiumExpired' is defined but never used

export default (handler) => {
handler.reg({
cmd: ['info', 'userinfo'],
tags: 'main',
desc: 'Detail informasi user',
run: async (m, { db }) => {
const jid = m.sender
const set = db.users[jid]
m.reply({ text :`*user Information*
π–₯” Nama: @${jid.split('@')[0]}
π–₯” Premium: ${set.premium ? '*Active* βœ…' : '*Non Active* ❌'}
π–₯” Limit: ${set.limit}`, mentions: [jid] })
}
})
}

0 comments on commit d03f795

Please sign in to comment.