Skip to content

Telegram bot that uses a SQL database to return pokemon stats.

Notifications You must be signed in to change notification settings

dvdpena/nodejs-pokedex-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Pokedex Bot

This is a Telegram bot that serves as a Pokedex for the first 8 generations. The DB was taken from pokemon-json

Pre install

Before installing, create the main database, either with mysql or mariadb, depending on your system. To create the database, give executable permissions to the corresponding create_db file inside the extras folder.

chmod +x create_db.sh
./create_db.sh

.env file

Create a file called .env and add the following lines:

# .env file
PORT=8443 #Check list of Telegram allowed ports and modifý accordingly
POKEDEX_BOT_TOKEN="YOURTELEGRAMBOTTOKENGOESHERE"
NGROK_ENDPOINT="https://YOURURLGOESHERE/" #Could use ngrok to test because it expects an https address
DB = "mysql" #can be "maria" if using mariadb

About

Telegram bot that uses a SQL database to return pokemon stats.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published