项目作者: insberr

项目描述 :
Hiven bot/self bot/api module for V (Also unofficial Hiven API / Websocket docs)
高级语言: V
项目地址: git://github.com/insberr/vhiven.git
创建时间: 2020-12-04T16:52:24Z
项目社区:https://github.com/insberr/vhiven

开源协议:GNU General Public License v3.0

下载


vhiven - Hiven bot/self bot/api module for V
Status - Getting the actual v module part to work

vhiven

Unfortunatly Hiven no longer exists, an this is no longer maintained
Hiven bot/self bot/api module for V.

This module should function now, but it is buggy.

Current Stage

Keeps a connection with the websocket now and should authenticate.
Trying to get the module part of the module to work, else it wouldn’t be a module : )

To Do

  • Keep a connection to the websocket
  • [] Add rest api functions
  • [] Parse all events

Example

This is only a reference and may not be the actual structure
For the most up to date example go to example.v
For the current structure go to test_websocket.v

  1. module main
  2. import insberr.vhiven
  3. fn main() {
  4. mut client := vhiven.new_client()
  5. client.bot = false // tells the module that this is being used for a self bot
  6. client.on('ready', fn () {
  7. println('ready!')
  8. })
  9. client.on('someevent', fn (eventargs) {
  10. // Do something
  11. println('hi')
  12. })
  13. client.login('TOKEN')
  14. }

Help

Get help and info on my Discord server or Hiven house

Maintainers

License

vhiven is released under the GPL-3.0 License. Read here for more information.