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

@@ -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);
}, {