Created
January 16, 2015 19:12
-
-
Save misutowolf/3bbb36da877f72892daf to your computer and use it in GitHub Desktop.
bot client stuff
This file contains hidden or 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
| # Generate client objects from list of users at time of startup. | |
| theNames.forEach (doc) -> | |
| CLIENTS[doc.profile.name] = new WASDbot | |
| server: 'irc.twitch.tv' | |
| port: 6667 | |
| nick: "wasdboss" | |
| realname: "wasdboss" | |
| username: "wasdboss" | |
| servpass: "oauth:cd3sm3q4klbgl7dt3c6gwbu5x08gj5" | |
| channels: ["#" + doc.profile.name] | |
| console.log "Created client for " + doc.profile.name | |
| # Iterate over created objects | |
| _.each CLIENTS, (client) -> | |
| console.log "test" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment