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