|
|
@ -152,6 +152,9 @@ function Currency(irc, db, commands, options) { |
|
|
|
// commands add/rem settings
|
|
|
|
__self.command_add_string = options.add_command || 'addcmd'; |
|
|
|
__self.command_remove_string = options.remove_command || 'removecmd'; |
|
|
|
|
|
|
|
// message to new subscribers
|
|
|
|
__self.sub_ty_msg = options.sub_ty_msg || ''; |
|
|
|
} |
|
|
|
|
|
|
|
//-------- Methods ---------
|
|
|
@ -906,6 +909,12 @@ Currency.prototype.handout_coins = function () { |
|
|
|
__self.viewer_list.push(viewer); |
|
|
|
console.log("[*ADD NAME*] "+viewer+" from CHAT"); |
|
|
|
} |
|
|
|
|
|
|
|
// is this a new subscription notice?
|
|
|
|
if(viewer == 'twitchnotify') { |
|
|
|
var subscriber = data_split[5].slice(1); |
|
|
|
__self.irc.emit('message', {message:'> SUBHYPE: Thank you ' + subscriber + '. ' + __self.sub_ty_msg}); |
|
|
|
} |
|
|
|
|
|
|
|
// log chat if enabled
|
|
|
|
if (__self.irc.store_chat && __self.config.ignorelist.indexOf(viewer) < 0) { |
|
|
|