Skip to content

Commit

Permalink
add owner on notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kry9toN committed Jan 21, 2021
1 parent 4593f22 commit f0aa790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
description: 'Untuk menyimpan note atau catatan di group\nPenggunaan: !notes <save/remove> <key> <value>',
async execute (client, chat, pesan, args) {
if (!client.isGroup) return client.reply(pesan.error.group)
if (!client.isGmium) return client.reply(pesan.error.premium)
if (!client.isGmium && !client.isOwner) return client.reply(pesan.error.premium)
if (!client.isGroupAdmins) return client.reply(pesan.hanya.admin)
if (!client.isBotGroupAdmins) return client.reply(pesan.hanya.botAdmin)
const key = args[1]
Expand Down

0 comments on commit f0aa790

Please sign in to comment.