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, the most modern discord bot making library, developed by Hydrogen Studio.
Table of Content
Discord.hy
Info
About
Table of Content
Install
Basic Bot Example
Info
Requires node.js version 12.0.0 or above
Documentation: https://discordhy.js.org
Discord: support server
Stats
About
Discord.hy is a modern discord custom bot making library. We currently only support sending messages, but more are coming everyday!
We have reached 100% coverage!
Plugins
What is unique about discord.hy is that it allows plugins to be installed. Down below is a list of current available plugins. Plugin Setup will be included in the installation.
Dsn.js api - post your bot's status to discordservices.net - install using
discord install dsnexpress - host your own website using this plugin - install using
discord install express
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
let Embed = new Discord.RichEmbed()
.setTitle("Ping Command Response")
.addField("Ping", "Pong", true)
.addField("Ping", "Pong")//inline default to false
.setTimestamp()
.setColor("RANDOM");
msg.channel.send(Embed)//send Embed response
}
})
client.on("ready", function(){//call in the 'ready' event
console.log("Bot online!")//log the ready data in the console
})
let login = client.login("super secret bot token")WE HAVE BEATEN 100% api coverage! We created this package like discord.js so that discord.js developers can migrate their bot from discord.js to discord.hy faster, with only a few thing to change.
Documentation Still in Progress.
