Skip to content

Commit

Permalink
Merge pull request #925 from qisyana/patch-13
Browse files Browse the repository at this point in the history
Update unregister.js
  • Loading branch information
Bintang73 authored Nov 25, 2021
2 parents 3bb8e4e + 4376034 commit e8c39ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/unregister.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { createHash } = require('crypto')
let handler = async function (m, { args }) {
if (!args[0]) throw 'Serial Number kosong'
let handler = async function (m, { args, usedPrefix }) {
if (!args[0]) throw `Serial Number kosong\nHarap Check Serial Number Mu..\nKetik:\n${usedPrefix}ceksn`
let user = global.db.data.users[m.sender]
let sn = createHash('md5').update(m.sender).digest('hex')
if (args[0] !== sn) throw 'Serial Number salah'
Expand Down

0 comments on commit e8c39ea

Please sign in to comment.