Skip to content

Commit

Permalink
Merge pull request #134 from VideFrelan/master
Browse files Browse the repository at this point in the history
Fix catch
  • Loading branch information
SlavyanDesu authored Dec 31, 2020
2 parents 2cfb247 + de9f3d5 commit 872fdb6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions message/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2044,10 +2044,13 @@ module.exports = msgHandler = async (bocchi = new Client(), message) => {
const emoji = emojiUnicode(q)
console.log('Creating code emoji =>', emoji)
await bocchi.sendStickerfromUrl(from, `https://api.vhtear.com/emojitopng?code=${emoji}&apikey=${config.vhtear}`)
.catch ((err) => {
.then(async () => {
console.log('Success sending Emoji!')
})
.catch(async (err) => {
console.log(err)
bocchi.reply(from, 'Not supported!', id)
})
bocchi.reply(from, 'Emoji not supported!', id)
})
break

// NSFW
Expand Down

0 comments on commit 872fdb6

Please sign in to comment.