Git Product home page Git Product logo

hqbot's Introduction

HQBot Python2.7 PRs Welcome Twitter

HQTrivia

A bot for the popular mobile game HQ Trivia

Usage

Usage

Example

./bot.py -v -i test_question2.png

Test Question

Test Question

Busking (Verb) - the act of performing in public places for gratuities. In many countries the rewards are generally in the form of money.

Installation

  1. Install requirements
pip install -r requirements.txt
  1. Enable API's in Google Cloud. Go to Google Cloud. Enable Google Cloud Natural Language API, Google Cloud Custom Search API and Google Cloud Vision API.

  2. Go to Google Cloud Credentials Page and download the JSON file.

  3. Set GOOGLE_APPLICATION_CREDENTIALS in the config file to the path of where you saved the JSON file.

  4. Create a new (Custom Search Engine)[https://cse.google.com/cse/all]. Enter www.anyurl.com in the sites to search input. Click Create. Then click Modify your search engine, then go down to Sites to search and under advanced change from Search only included sites to Search the entire web but emphasize included sites.

  5. Set customsearch_id in the config file to your search engine ID found under the detials section of CSE.

  6. Set developerKey in the config file to your Developer API Key found in the Credentials Page

  7. Try it:

./bot.py -v -i test_question2.png

Dependencies

HQBot depends on the following Python 2.7 modules:

google-cloud-vision
google-cloud-language
google-api-python-client

Note

This is using a Google Custom Search to try and predict the best possible answer. Answers may not be 100% correct but know my HQBot tried its best.

LICENSE

MIT License

hqbot's People

Contributors

thehappydinoa avatar

Watchers

James Cloos avatar Bharath Kumar 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.