Giter VIP home page Giter VIP logo

hivenpy's Introduction

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.

Please note that this is in beta and is not fully complete!

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).

Image not found
Type localStorage['hiven-auth'] and hit enter.

Image not found
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.

hivenpy's People

Contributors

cancodes avatar nexinfinite avatar xenen0 avatar xenendev avatar

Watchers

 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.