Haxicord 0.2.0

Interface with Discord using Haxe

Released 2018-01-09.

To install, run:

haxelib install Haxicord 0.2.0

See using Haxelib in Haxelib documentation for more information.

MaintainerRaidAndFade
Websitehttps://github.com/RaidAndFade/Haxicord
Current version0.2.0
StatisticsInstalled 11 times
LicenseMIT
Tags

README.md

Haxicord

Haxicord

Haxicord is a Discord API wrapper for Haxe.

Installation

To install the library in your project, use the haxelib package manager:

haxelib install haxicord

Usage

Normal humans can click here for a proper example of some base features

Those of a lower level of dedication can use the example below: (Takes advantage of the new command api)

class Main extends CommandBot {

    static function main() {
        new Main("<token>",Main,"-"); //Create an instance of Commandbot with the prefix `-`
    }

    @Command
    function ping(message:Message){
        message.react("✅"); //React to the message with "✅"
        message.reply({content:"Pong!"}); //Send "Pong!" in the same channel
    }
}

Documentation

You can find the documentation here