mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
Merge branch 'master' of https://github.com/hydrabolt/discord.js
This commit is contained in:
19
README.md
19
README.md
@@ -8,10 +8,10 @@
|
|||||||
|
|
||||||
[](https://travis-ci.org/hydrabolt/discord.js) [](http://discordjs.readthedocs.org/en/latest/?badge=latest)
|
[](https://travis-ci.org/hydrabolt/discord.js) [](http://discordjs.readthedocs.org/en/latest/?badge=latest)
|
||||||
|
|
||||||
|
[](https://nodei.co/npm/discord.js/)
|
||||||
|
|
||||||
discord.js is a node module used as a way of interfacing with
|
|
||||||
[Discord](https://discordapp.com/). It is a very useful module for creating
|
discord.js is a node module used as a way of interfacing with [Discord](https://discordapp.com/). It is a very useful module for creating bots.
|
||||||
bots.
|
|
||||||
|
|
||||||
**The examples in the repo are in ES6**
|
**The examples in the repo are in ES6**
|
||||||
|
|
||||||
@@ -20,17 +20,15 @@ bots.
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Example
|
### Example: ping-pong
|
||||||
```js
|
```js
|
||||||
var Discord = require("discord.js");
|
var Discord = require("discord.js");
|
||||||
|
|
||||||
var mybot = new Discord.Client();
|
var mybot = new Discord.Client();
|
||||||
|
|
||||||
mybot.on("message", function(message){
|
mybot.on("message", function(message){
|
||||||
|
|
||||||
if(message.content === "ping")
|
if(message.content === "ping")
|
||||||
mybot.reply(message, "pong");
|
mybot.reply(message, "pong");
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
mybot.login("email", "password");
|
mybot.login("email", "password");
|
||||||
@@ -51,13 +49,17 @@ Here is a list of other Discord APIs:
|
|||||||
|
|
||||||
#### Java:
|
#### Java:
|
||||||
[Discord4J](https://github.com/nerd/Discord4J)
|
[Discord4J](https://github.com/nerd/Discord4J)
|
||||||
|
|
||||||
#### .NET:
|
#### .NET:
|
||||||
[Discord.Net](https://github.com/RogueException/Discord.Net)
|
[Discord.Net](https://github.com/RogueException/Discord.Net)
|
||||||
|
|
||||||
[DiscordSharp](https://github.com/Luigifan/DiscordSharp)
|
[DiscordSharp](https://github.com/Luigifan/DiscordSharp)
|
||||||
|
|
||||||
#### NodeJS
|
#### NodeJS
|
||||||
[discord.io](https://github.com/izy521/node-discord) (similar to discord.js but lower level)
|
[discord.io](https://github.com/izy521/node-discord) (similar to discord.js but lower level)
|
||||||
|
|
||||||
|
[discordie](https://github.com/qeled/discordie)
|
||||||
|
|
||||||
#### PHP
|
#### PHP
|
||||||
[DiscordPHP](https://github.com/teamreflex/DiscordPHP)
|
[DiscordPHP](https://github.com/teamreflex/DiscordPHP)
|
||||||
|
|
||||||
@@ -78,7 +80,7 @@ Here is a list of other Discord APIs:
|
|||||||
|
|
||||||
**[Website](http://discord-js.github.io/)**
|
**[Website](http://discord-js.github.io/)**
|
||||||
|
|
||||||
**[NPM](npmjs.com/package/discord.js)**
|
**[NPM](http://npmjs.com/package/discord.js)**
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -88,4 +90,5 @@ If you have an issue or want to know if a feature exists, [read the documentatio
|
|||||||
|
|
||||||
|
|
||||||
If you would like to contact me, you can create an issue on the GitHub repo, e-mail me via the one available on my NPM profile.
|
If you would like to contact me, you can create an issue on the GitHub repo, e-mail me via the one available on my NPM profile.
|
||||||
Or you could just send a DM to **hydrabolt** in [**Discord API**](https://discord.gg/0SBTUU1wZTYd2XyW).
|
|
||||||
|
Alternatively, you could just send a DM to **hydrabolt** in [**Discord API**](https://discord.gg/0SBTUU1wZTYd2XyW).
|
||||||
|
|||||||
Reference in New Issue
Block a user