sleroq / nhentai-telegram-bot

Telegram bot for nhentai
59 stars 49 forks source link

Bot returns random manga. #9

Closed pseudokawaii closed 3 years ago

pseudokawaii commented 3 years ago

I've deployed the bot successfully on Heroku. It's working as expected, the only issue is when I choose a manga in the inline mode (not from a search result but from the favorites or history menu), the bot sends a bunch of random manga and at the end, it sends the requested manga.

Here's the issue recorded as a GIF - https://i.imgur.com/0l8tZXN.gif

sleroq commented 3 years ago

Ok, this happens because the bot is trying to open any numbers it sees in your message. So this problem won't occur in other chats. I will definitely fix it, but for now you can just replace username of my bot with the username of your bot on line 16 or 17 in /bot/commands/textHandler.js

sleroq commented 3 years ago

fixed in 57dbd98

pseudokawaii commented 3 years ago

fixed in 57dbd98

Are you sure? i'm still having this issue even after redeploying the bot with the new code ~ https://i.imgur.com/YlMgoZc.gif

sleroq commented 3 years ago

@pseudokawaii Have you updated the bot? if you are using heroku: https://dev.to/jessesbyers/how-to-update-a-deployed-app-on-heroku-3fde https://stackoverflow.com/questions/28737548/how-to-update-an-heroku-app-created-using-github-deploy-to-heroku-button

pseudokawaii commented 3 years ago

@iamdowner I have manually deployed the master branch of my own fork of this repo which is 'even' with your main repo using heroku dashboard, you can even see the last build info on my fork's environment ~

image

sleroq commented 3 years ago

ctx.botInfo was missing when using webhook fixed by updating "telegraf"