GithubHelp home page GithubHelp logo

unb-api-go's Introduction

UnbelievaBoat API Wrapper


Unb

A Go library for the UnbelievaBoat Discord bot API.
By Bailey and Contributors

Website | Discord

Table of Contents

Introduction

PRs Welcome Discord

The UnbelievaBoat API library is an importable package to make using the UnbelievaBoat API easier to use within Go. Although updates may be few and far, all new features are added as they are released. As I talk to the developer of the bot, I am made aware of upcoming changes. PRs, bug reports and feature requests are welcome!

Version 1 (/v1) uses version 1 of the UnbelievaBoat API and should be imported as github.com/BaileyJM02/unb-api-go/v1, more on the install process here. This is allows for the second version of the api to be installed as github.com/BaileyJM02/unb-api-go/v2 etc. upon release.

This may change as Go Module support will soon be implemented.

Features

A few of the things you can do with unb-api-go:

  • Connect to the UnbelievaBoat API
  • See user balance
  • See guild leaderboard
  • Set custom http.Client
  • And more...

Feedback

Feel free to send me feedback on Twitter or, preferably, file an issue. Feature requests are always welcome. If you wish to contribute, please take a quick look at the guidelines!

If there's anything you'd like to chat about, please feel free to join our Discord Server and mention me: @Bailey#0004!

Install Process

I'm guessing you already have an environment setup.

  1. Install the project.
    • $ go get github.com/BaileyJM02/unb-api-go/v1 to install the wrapper using version one.
  2. Create a new instance to use the library.
    • ( token is your token found here)
import(
	"github.com/BaileyJM02/unb-api-go/v1"
)

function main() {
	// assign and create a new instance to api.
	api := v1.New(token);
}
  1. Use functions like so: api.GetBalance(guildID, userID) . Where guildID and userID are representatives of their Discord values.

Acknowledgments

Thank you to all of the contributors who have added and improved the project!

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.