This 🤖 is made in python with the help of the Wiki library.
While exploring bots, I discovered that there were no bot(s) that could do more than display the definition of a term. However, Wikipedia can do much more than simply display a definition. As a result, this bot was created solely to demonstrate what Wiki can do.
To test this bot. You can follow these steps:
- Setup a Bot with BotFather.
- Put your Token in
TOKEN = ""
- Setup RTDB in Firebase.
- Download your key file, place it next to your bot file
cred = credentials.Certificate("xxxYOURKEYFILExxx.json")
- Paste your RTDB url in
firebase_admin.initialize_app(
cred, {"databaseURL": "https://yourappname-user-default-rtdb.firebaseio.com/"}
)
- Setup a project in Heroku.
- Paste your Project url in
bot.set_webhook(url="https://yourappname.herokuapp.com/" + TOKEN)
- Files you need for Heroku
xxxYOURKEYFILExxx.json #firebase key
Procfile
bot.py
requirements.txt
- To resolve bugs
Heroku --logs