An open API service indexing awesome lists of open source software.

https://github.com/geffrerson7/pvp-telegram-bot

Telegram bot for sending Pokemon coordinates from PVP.
https://github.com/geffrerson7/pvp-telegram-bot

fastapi gunicorn json pokeapi python python-dotenv python-telegram-bot railway requests uvicorn

Last synced: 4 months ago
JSON representation

Telegram bot for sending Pokemon coordinates from PVP.

Awesome Lists containing this project

README

          

# PVP-POKEMON-COORDINATES-TELEGRAM-BOT

## Local Installation

To run this project, you'll need to add the following environment variables to your `.env` file:

`TOKEN`

`DEVELOPER_CHAT_ID`

`BOTHOST`

`DEBUG`

`ADMIN`

`SUPPORT`

`CHAT_ID`

`PERIOD`

`USER_1`

`USER_2`

`USER_3`

`MESSAGE_THREAD_ID`

Clone the project

```bash
$ git clone https://github.com/Geffrerson7/pvp-telegram-bot.git
```

Navigate to the project directory

```bash
$ cd pokemon-coordinates-telegram-bot
```

Create a virtual environment

```sh
$ virtualenv venv
```

Activate the virtual environment

```
# windows
$ source venv/Scripts/activate
# Linux
$ source venv/bin/activate
```

Then install the required libraries:

```sh
(venv)$ pip install -r requirements.txt
```

Once all of that is done, proceed to start the app

```bash
(venv)$ python main.py
```

## Telegram bot's menu

Start sending Great League PVP coordinates:

```bash
/pvp
```

Start sending Great League PVP coordinates:

```bash
/pvp1500
```

Start sending Ultra League PVP coordinates:
```bash
/pvp2500
```

Start sending Master League PVP coordinates:
```bash
/pvp_master
```
Stop sending coordinates:
```bash
/stop
```

## Demo

[![](https://markdown-videos-api.jorgenkh.no/youtube/0StbpCOGDZU)](https://youtu.be/0StbpCOGDZU "PVP Telegram Bot Demo Video")