abhinavk99 / fortnite-bot

Telegram/Discord bot that gets information on Fortnite players
MIT License
25 stars 9 forks source link

List commands #1

Closed Logerfo closed 6 years ago

Logerfo commented 6 years ago

Use @botfather to set the bot commands, through the /setcommands command.

By the way, the bot is not working for me.

abhinavk99 commented 6 years ago

Hello Logerfo, thank you for your feedback, however I didn't add the bot commands to Botfather because all the commands I have take in an argument (i.e. /user putusernamehere), and Botfather only supports commands that don't take one (i.e. /example).

Also, I run the bot locally on my laptop using pm2, so it'll work during the daytime, when I have my laptop turned on. I had the bot hosted on Heroku earlier, but Heroku only provides 1000 free hours each month and my other bot, CryptoBot, takes up 750 hours each month, so I stopped remote hosting this one. I apologize for the inconvenience, but I'm thinking about buying a Raspberry Pi to host my bots on 24/7. I'm not sure if I will though.

Logerfo commented 6 years ago

You can run two bots in the same heroku instance. In python, you can call this script in your procfile:

import first_bot
import second_bot

first.start()
second.start()

I suppose you can do the same in js.

abhinavk99 commented 6 years ago

Thank you for the information, I'll look into that.