updated readme

This commit is contained in:
hydrabolt
2015-08-21 23:39:29 +01:00
parent 4498310eab
commit 23e891730e
3 changed files with 6 additions and 5 deletions

View File

@@ -5,6 +5,9 @@ The aim of this API is to make it *really* simple to start developing your bots.
New update features **big speed boosts** (everything cached and sorted with around 1 second of calling the login function) upon connection and allows editing of messages!
**[Find the website here.](discord-js.github.io)**
**[For more information, click here.](https://github.com/hydrabolt/discord.js/wiki)**
### This module is still in alpha - especially the newer versions!

View File

@@ -271,8 +271,9 @@ Commands[ "cat" ] = {
var http = require( "http" );
var request = require( 'request' );
bot.sendFile( message, request("http://thewallpaperhost.com/wp-content/uploads/2014/12/cool-hd-wallpaper.jpg"), "cat.jpg", function( err ) {
bot.reply( message, err );
bot.sendFile( message, request("http://thecatapi.com/api/images/get?type=jpg"), "cat.jpg", function( err ) {
if(err)
bot.reply( message, err );
} );
}

View File

@@ -42,10 +42,7 @@ hydrabot.on("userupdate", function(ol, ne){
var serversInvolved = hydrabot.getServers().deepFilter(["members", "id"], ol.id);
console.log(serversInvolved);
for(server of serversInvolved.contents){
console.log("gra", server);
hydrabot.sendMessage(server.getDefaultChannel(), "Just sayin', "+ol.username+" changed their name to "+ne.username+". I know. Disgraceful.", function(err){
console.log(err);
}, {