Skip to content

Commit

Permalink
,m
Browse files Browse the repository at this point in the history
  • Loading branch information
FadliDarmawan authored Sep 19, 2021
1 parent 90739fb commit 935be1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/vote-start.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ let handler = async (m, { conn, text, usedPrefix }) => {
conn.vote = conn.vote ? conn.vote : {}
let id = m.chat
if (id in conn.vote) {
await conn.sendButton(m.chat, '_Masih ada vote di chat ini!_', '© stikerin', 'HAPUS VOTE', `${usedPrefix}hapusvote`)
await conn.sendButton(m.chat, '_Masih ada vote di chat ini!_', '© stikerin', 'HAPUS VOTE', `${usedPrefix}hapusvote`, m)
throw false
}
await conn.send2Button(m.chat, `Vote dimulai!
*${usedPrefix}upvote* - untuk ya
*${usedPrefix}devote* - untuk tidak
*${usedPrefix}cekvote* - untuk mengecek vote
*${usedPrefix}hapusvote* - untuk menghapus vote`, '© stikerin', 'UPVOTE', `${usedPrefix}upvote`, 'DEVOTE', `${usedPrefix}devote`)
*${usedPrefix}hapusvote* - untuk menghapus vote`, '© stikerin', 'UPVOTE', `${usedPrefix}upvote`, 'DEVOTE', `${usedPrefix}devote`, m)
conn.vote[id] = [
text,
[],
Expand All @@ -23,4 +23,4 @@ handler.command = /^(start|mulai)vote$/i
handler.limit = true
handler.group = true
handler.admin = true
module.exports = handler
module.exports = handler

0 comments on commit 935be1c

Please sign in to comment.