LifeRPG is an open-source task management application based on gamification techniques, specifically those used in role-playing games (RPGs) works in Telegram
Your character will possess the following game attributes:
- Levels
- Hearts
- Power
- Experience points
- Coins
- Create your own
Locations
- Create your own
Quests
with rewards - Fight mobs in battles
- Enhance your real-life experiences
- Monitor the actual progress of your journey
If you want to run, edit or improve this code - just follow these steps.
Clone repository:
git clone https://github.com/LifeRPGGame/LifeRPG.git
Change catalog:
cd LifeRPG
Create .env
file in src
catalog and fill by your data:
BOT_KEY='HERE YOUR TOKEN by BotFather'
LOG_TOKEN='OPTIONAL'
MODERATOR_ID='TELEGRAM ID FOR MODERATOR'
POSTGRESQL_HOST='HERE HOST'
POSTGRESQL_PORT=HERE PORT
POSTGRESQL_USER=HERE USER
POSTGRESQL_PASSWORD=HERE PASSWORD
POSTGRESQL_DBNAME=HERE DATABASE NAME
Activate poetry environment:
poetry shell
Install dependencie:
poetry install
Run your bot:
python3 bot.py
Open your Telegram bot and enjoy :3
If you're interesting about the project - follow these steps.
Make a fork by a Fork
button.
Clone your fork to your local.
Create a new branch for changes:
git branch -m NEW_BRANCH_NAME
Switch branch:
git switch NEW_BRANCH_NAME
After your changes push these.
Create a Pull Request.