mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
updated readme
This commit is contained in:
@@ -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 );
|
||||
} );
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user