From bbe3ae52386cb4d05be0509ded19a82cc31b7f60 Mon Sep 17 00:00:00 2001 From: abalabahaha Date: Sat, 21 Nov 2015 09:09:22 -0800 Subject: [PATCH] Update README.md --- README.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index bdc88f9b7..36591b594 100644 --- a/README.md +++ b/README.md @@ -7,11 +7,11 @@ # Did v5.0.0 break your code? [Look here.](http://discordjs.readthedocs.org/en/rewrite-docs/migrating.html) [![Build Status](https://travis-ci.org/hydrabolt/discord.js.svg)](https://travis-ci.org/hydrabolt/discord.js) [![Documentation Status](https://readthedocs.org/projects/discordjs/badge/?version=latest)](http://discordjs.readthedocs.org/en/latest/?badge=latest) + +[![NPM](https://nodei.co/npm/discord.js.png?downloads=true&stars=true)](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 -bots. +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. **The examples in the repo are in ES6** @@ -20,17 +20,15 @@ bots. --- -### Example +### Example: ping-pong ```js var Discord = require("discord.js"); var mybot = new Discord.Client(); mybot.on("message", function(message){ - if(message.content === "ping") mybot.reply(message, "pong"); - }); mybot.login("email", "password"); @@ -51,13 +49,17 @@ Here is a list of other Discord APIs: #### Java: [Discord4J](https://github.com/nerd/Discord4J) + #### .NET: [Discord.Net](https://github.com/RogueException/Discord.Net) [DiscordSharp](https://github.com/Luigifan/DiscordSharp) + #### NodeJS [discord.io](https://github.com/izy521/node-discord) (similar to discord.js but lower level) +[discordie](https://github.com/qeled/discordie) + #### PHP [DiscordPHP](https://github.com/teamreflex/DiscordPHP) @@ -78,7 +80,7 @@ Here is a list of other Discord APIs: **[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. -Or you could just send a DM to **hydrabolt** in [**Discord API**](https://discord.gg/0SBTUU1wZTYd2XyW). \ No newline at end of file + +Alternatively, you could just send a DM to **hydrabolt** in [**Discord API**](https://discord.gg/0SBTUU1wZTYd2XyW).