Coder Social home page Coder Social logo

reejit / wikibot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from themagicalmammal/wikibot

0.0 0.0 0.0 47.3 MB

Wikibot, a bot :robot with lot of features like definitions, titles & lot more!

Home Page: https://telegram.me/pro_wikibot

License: MIT License

Python 100.00%

wikibot's Introduction




Wikibot, a bot which uses the Wiki-library & provides you with features like definitions, titles & other cool stuff!

Table of Contents

Bio

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.

Bot Commands

1. Def

Short form of definition. Fetches wiki definition for your word.

/def

2. Title

Shows a list of possible titles that you can search from a word.

/title

3. URL

Provides you with the URL of the wiki page for a word.

/url

4. Lang

Change to your local language which will be used for every wiki output.

/lang
/prefix

5. Map

Provides you with the location of your input place with Wiki-API.

/map

6. Nearby

With the help of coordinates provides you with nearby locations under 1km.

/nearby

7. Random

Sends you a random wiki link.

/random

8. Others

Some other set of commands that wikibot provides.

/help
/extra
/spot
/suggest
/dev
/source
/issues

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

Contribute

Thank you for considering contributing to Wikibot. Please add useful comments with your PR's.

To contact me go here.

Credits

kurkurzz - Introducing the keyboard & some optimized commands.

References

1. Webhook - To learn how to add a webhook to your bot.

2. Telebot - Bot examples for texts & commands.

3. Firebase - Easy way to learn about firebase.

4. Wiki-libs - Simple docs to learn about its functions.

wikibot's People

Contributors

themagicalmammal avatar imgbotapp avatar renovate-bot avatar dependabot-preview[bot] avatar kurkurzz avatar mend-bolt-for-github[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.