Skip to content

Webhook that pulls question/answers from HQ Api and posts in discord server.

Notifications You must be signed in to change notification settings

Caleb-Tan/HQuipp

Repository files navigation

HQuipp

Yet another HQ trivia bot, in Python. Automatically scrapes HQ Trivia questions without OCR and answers them.

Getting Started

Requires Python 3.6+

Dependencies

Required

aiohttp
bs4
lomond
nltk
unidecode

Optional

aiodns
cchardet

Installation

git clone https://github.com/Caleb-Tan/HQuipp.git
cd HQuipp
pip install -r requirements.txt

If on Mac, run:

/Applications/"Python 3.6"/"Install Certificates.command"

In Python 3, run:

import nltk
nltk.download("all")

Enter your bearer token in the conn_settings.txt file. This value can be found by sniffing the traffic on your phone. The bearer token should be one line, without the word Bearer.

Usage

python3 hq_main.py

If RuntimeError: Connection settings invalid appears, then your bearer token is invalid.

About

Webhook that pulls question/answers from HQ Api and posts in discord server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages