From 23e891730e1e5c34428de5f49a13ab97140ee59d Mon Sep 17 00:00:00 2001 From: hydrabolt Date: Fri, 21 Aug 2015 23:39:29 +0100 Subject: [PATCH] updated readme --- README.md | 3 +++ hydrabot/commands.js | 5 +++-- hydrabot/hydrabot.js | 3 --- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c4ebf1922..1b7474f26 100644 --- a/README.md +++ b/README.md @@ -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! diff --git a/hydrabot/commands.js b/hydrabot/commands.js index b369bc131..b499d9dce 100644 --- a/hydrabot/commands.js +++ b/hydrabot/commands.js @@ -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 ); } ); } diff --git a/hydrabot/hydrabot.js b/hydrabot/hydrabot.js index 4732de3e8..4e3f287f8 100644 --- a/hydrabot/hydrabot.js +++ b/hydrabot/hydrabot.js @@ -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); }, {