An unofficial wrapper for hiven
Project description
Hiven.py
Welcome to the unofficial hivenpy api wrapper. So far we only have self bots as bot account aren't made yet. This is a work in progress project made by NexInfinite, CanCodes, and Xenen.
How to use
Installation
To install Hiven.py type
pip install hivenpy
Getting your token
Make a bot account for your hiven bot. Open up the console by pressing Command+Option+J (Mac) Control+Shift+J (Windows, Linux, Chrome OS).
Type localStorage['hiven-auth']
and hit enter.
Your token is where the red lines are.
Setup
Download the code and place it in your project. You will then need to add
from Hiven.client import Bot, events
This will import the bot and events. After this you will need to type
TOKEN = "Your token from before"
bot = Bot(TOKEN)
You can also set debug=True
if you want debugs from the websocket and output=True
if you want outputs
from each websocket message.
Making your bot
Next you will need to setup the events and login to the bot. To do this please type:
@events.event
def on_message(ctx):
if ctx.author.id != bot.user.id:
# Do stuff
bot.login()
Congratulations! You now have a self bot for hiven!
Examples
You can see a list of all examples in the folder names Examples.
Please note
At the moment we don't have a pip package set up as it's not at that stage yet but you can still make
self bots with this. We now have a pip package! Download it to try everything out.
This is a work in progress project so everything is going to change soon. This is temporary so you can start making
and experimenting with new bots now.
There is also no documentation as of yet but there will be in the future. Feel free to message me on hiven
@nexinfinite (I am in the hiven testers chat) to get some support. The house will be public soon, we are
waiting for that to be released.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file hivenpy-1.25.0-py3-none-any.whl
.
File metadata
- Download URL: hivenpy-1.25.0-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.5.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b36f266267e53f81f4b1a2e3e13ff3c34839a4134ece372d2923cfcab5da2d91 |
|
MD5 | b1b987d225bd265922f37aa7c8b7592f |
|
BLAKE2b-256 | 189ac18889ccedb0207f2a26eca21bb79210df9bb691fb44b709c5a9a8aabcb5 |