This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Exception in template helper: TypeError: Cannot read property 'username' of undefined | |
at Object.Template.channelAdmin.helpers.getPresence (http://localhost:3000/client/views/admin/channeladmin.js?aef471f597f26bf916efd90550274c636b5b58fa:35:36) | |
at http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:2727:16 | |
at http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:1606:16 | |
at Spacebars.call (http://localhost:3000/packages/spacebars.js?3c496d2950151d744a8574297b46d2763a123bdf:169:18) | |
at Spacebars.mustacheImpl (http://localhost:3000/packages/spacebars.js?3c496d2950151d744a8574297b46d2763a123bdf:106:25) | |
at Object.Spacebars.mustache (http://localhost:3000/packages/spacebars.js?3c496d2950151d744a8574297b46d2763a123bdf:110:39) | |
at null._render (http://localhost:3000/client/views/admin/template.channeladmin.js?766493195fc81924b5f22da4b243977be47768ca:12:22) | |
at doRender (http://localhost:3000/packages/blaze.js?efa68f65e67544b5a0550980 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Event Handlers | |
Template.channelAdmin.events({ | |
'click #join': function() { | |
channel = "#" + Meteor.user().username; | |
Meteor.call("joinchannel", channel, function(err, res) { | |
if (err) { | |
throw new Meteor.Error("join-error", "Unable to join channel."); | |
} else { | |
console.log("Join Channel Called? (" + channel + ")") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Router.configure({ | |
layoutTemplate: 'appLayout' | |
}); | |
// | |
Router.route('/', function() { | |
this.render('home'); | |
}, { | |
name: 'home' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Global hook for requiring login, except front page and about. | |
Router.onBeforeAction -> | |
# If not logged in, tell the person they must be, otherwise continue. | |
if (!Meteor.userId()) { | |
this.render('loginRequired'); | |
} else { | |
this.next(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class WASDbot | |
# Bot object constructor | |
constructor: (params) -> | |
@params = params | |
@doc = null | |
@client = new IRC params | |
# Connect to a network | |
connect: -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### BOT CLASS ### | |
class WASDbot | |
# Bot object constructor | |
constructor: (params) -> | |
@params = params | |
@doc = null | |
@client = new IRC params | |
# Connect to a network |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1c1 | |
< var net = Npm.require('net'); | |
--- | |
> net = Npm.require("net"); | |
4,7c4,7 | |
< * IRC Constructor | |
< * | |
< * Creates the IRC instance | |
< * @param params optional preferences for the connection | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I20150116-14:27:02.984(-5)? [ misutowolf: { params: | |
I20150116-14:27:02.984(-5)? { server: 'irc.twitch.tv', | |
I20150116-14:27:02.984(-5)? port: 6667, | |
I20150116-14:27:02.985(-5)? nick: 'wasdboss', | |
I20150116-14:27:02.985(-5)? realname: 'wasdboss', | |
I20150116-14:27:02.985(-5)? username: 'wasdboss', | |
I20150116-14:27:02.985(-5)? servpass: 'PASS HERE', | |
I20150116-14:27:02.985(-5)? channels: [Object] }, | |
I20150116-14:27:02.985(-5)? doc: null, | |
I20150116-14:27:02.985(-5)? client: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Template.groupsNew.events({ | |
// Submit the form | |
'click #submit': function(event) { | |
// Prevent default submission behavior | |
event.preventDefault(); | |
// Fetch values from form | |
var theName = $("#name").val().trim(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"user" : "EP9CNsMSxe3BZHBar", | |
"rank" : 1 | |
}, | |
{ | |
"user" : "EP9CNsMSxe3BZHBar", | |
"rank" : 2 | |
}, | |
{ |
OlderNewer