Wikibot, a bot which uses the Wiki-library & provides you with features like definitions, titles & other cool stuff!
When I made this bot there existed no bot which did more than outputting the definition of a word. Wikipedia has a lot more set of functions that were not provided by any of the existing bots. So, this bot was made with the sole purpose of showing other functions that Wiki can provide.
Short form of definition. Fetches wiki definition for your word.
/def
Shows a list of possible titles that you can search from a word.
/title
Provides you with the URL of the wiki page for a word.
/url
Change to your local language which will be used for every wiki output.
/lang
/prefix
Provides you with the location of your input place with Wiki-API.
/map
With the help of coordinates provides you with nearby locations under 1km.
/nearby
Sends you a random wiki link.
/random
Some other set of commands that wikibot provides.
/help
/extra
/spot
/suggest
/dev
/source
/issues
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
Thank you for considering contributing to Wikibot. Please add useful comments with your PR's.
To contact me go here.