make it better
This commit is contained in:
parent
84f8470321
commit
e85c436401
|
@ -1,8 +1,7 @@
|
|||
class EyeofgodTask {
|
||||
checkLeak = async ({ db, i18n, extra, message, session, replyWithHTML }) => {
|
||||
let id = (session.eyeof = message.text.trim())
|
||||
try {
|
||||
let id = (session.eyeof = message.text.trim())
|
||||
|
||||
if (id.includes('/eye')) {
|
||||
id = Number(id.split(' ')[1])
|
||||
}
|
||||
|
@ -33,9 +32,7 @@ class EyeofgodTask {
|
|||
)
|
||||
} catch (e) {
|
||||
// console.log(e.message)
|
||||
return replyWithHTML(
|
||||
`🙅♂️ No in Database 🆔 <code>${session?.eyeof}</code>`
|
||||
)
|
||||
return replyWithHTML(`🙅♂️ No in Database 🆔 <code>${id}</code>`)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue