Telegram bot for converting in-game items and currencies (SFL/USD) with real-time rates.
- Python 3.7+
- Telegram bot token (Get from @BotFather)
- Clone repo and install dependencies:
git clone https://github.com/josevdr95new/SFLConversionBot.git
cd SFLConversionBot
pip install -r requirements.txt- Create a
.envfile in the root directory and add your Telegram bot token:
BOT_TOKEN=your_bot_token_from_BotFather
- Start the bot:
python -m sfl_bot.main- Open Telegram and search for @BotFather
- Start a chat with BotFather and send
/newbotcommand - Follow the instructions to name your bot and create a username
- BotFather will provide a token - save this for your
.envfile - Configure additional bot settings like description and commands using BotFather
The bot includes a health check endpoint to monitor its status and performance.
How to use the /ping endpoint:
- Ensure the bot is running
- Make a GET request to the
/pingendpoint using either:- Web browser:
http://localhost:8000/ping - Command line:
curl http://localhost:8000/ping
- Web browser:
Contributions welcome! Please feel free to submit a Pull Request.
