Skip to content

A 🤖 which provides features from Wikipedia like summary, title searches, location API etc.

License

Notifications You must be signed in to change notification settings

themagicalmammal/wikibot

Repository files navigation

DeepSource DeepSource


Language grade: Python
This 🤖 is made in python with the help of the Wiki library.

Intro

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.

Test

To test this bot. You can follow these steps:

  1. Setup a Bot with BotFather.
  2. Put your Token in
TOKEN = ""
  1. Setup RTDB in Firebase.
  2. Download your key file, place it next to your bot file
cred = credentials.Certificate("xxxYOURKEYFILExxx.json")
  1. Paste your RTDB url in
firebase_admin.initialize_app(
    cred, {"databaseURL": "https://yourappname-user-default-rtdb.firebaseio.com/"}
)
  1. Setup a project in Heroku.
  2. Paste your Project url in
bot.set_webhook(url="https://yourappname.herokuapp.com/" + TOKEN)
  1. Files you need for Heroku
xxxYOURKEYFILExxx.json #firebase key
Procfile
bot.py
requirements.txt
  1. To resolve bugs
Heroku --logs

Contributors

kurkurzz - Introducing the keyboard & some optimized commands.