JSPM

  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q52441F
  • License Apache-2.0

A advanced **modern** discord bot making package using it's official api.

Package Exports

  • discord.hy

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (discord.hy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

DISCORD.HY


Welcome to Discord.hy, developed by Hydrogen Studio.


Discord

Info

Documentation: Currently Unavailable As we are getting a subdomain from js.org

Discord: Support Server

Stats

34 Total websocket events
npm npm bundle size NPM

About

Discord.hy is a modern discord custom bot making library. We currently only support sending messages, but more are coming everyday!

Our goal is to reached 100% api coverage at the end of 2020.


# Table of Content - [Discord.hy](/) - [Stats](#stats) - [About](#about) - [Table of Content](#table-of-content) - [Install](#install) - [Basic Bot Example](#basic-bot-example)

Install

npm i discord.hy

Basic Bot Example

let Discord = require("discord.hy")// import library | npm i discord.hy
let client = new Discord.Client({ websocketstat: true });//set up client with options


client.on("message", function(msg){//call in the 'message' event
    if(msg.content.startsWith("!ping")){//check the message content for !ping
        client.sendMessage(msg.channel_id, "Ping!")//send response
    }
})


client.on("ready", function(data){//call in the 'ready' event
    console.log(data)//log the ready data in the console
})



let login = client.login("super secret bot token")

More

More are coming, and we aim to beat 100% coverage before 2021.