Deleted examples, beginning to write in EC6.

Examples and Hydrabot will soon live in a separate repo which is better
suited to learning - this is so the main package isn't bloated.
This commit is contained in:
hydrabolt
2015-08-23 16:55:23 +01:00
parent 16b007c635
commit 35b61312b9
40 changed files with 1830 additions and 2486 deletions

View File

@@ -1,6 +1,8 @@
"use strict";
var User = require("./user.js").User;
exports.Invite = function(json){
exports.Invite = function (json) {
this.max_age = json.max_age;
this.code = json.code;
@@ -13,9 +15,9 @@ exports.Invite = function(json){
this.inviter = new User(json.inviter);
this.xkcdpass = json.xkcdpass;
this.channel = json.channel;
}
};
exports.Invite.prototype.generateInviteURL = function(xkcd){
var code = (xkcd ? this.xkcdpass : this.code);
return "https://discord.gg/"+code;
}
exports.Invite.prototype.generateInviteURL = function (xkcd) {
var code = xkcd ? this.xkcdpass : this.code;
return "https://discord.gg/" + code;
};