the harsh chill of time / creep into the air of youth / calling a new day
3
   
Award
Favorite
Favorited
Unfavorite
Download
" this.user.chat.on('friendMessageEcho', (msg) => (
this.log_chat(msg.steamid_friend, "^^", msg.message),
friend_message_echo_handlers.forEach((item) =>
item(msg.steamid_friend, msg.message, this))));
this.user.chat.on('friendMessage', (msg) => (
this.log_chat(msg.steamid_friend, "<<", msg.message),
(steamid_chat_blacklist.indexOf(msg.steamid_friend.toString()) == -1) &&
friend_message_handlers.forEach((item) =>
item(msg.steamid_friend, msg.message, this))));
// log and announce chat messages then execute handlers
this.user.on('friendMessageEcho', (steamid, msg) => (
this.log_chat(steamid, "^^", msg),
friend_message_echo_handlers.forEach((item) =>
item(steamid, msg, this))));
this.user.on('friendMessage', (steamid, msg) => (
this.log_chat(steamid, "<<", msg),
(steamid_chat_blacklist.indexOf(steamid.toString()) == -1) &&
friend_message_handlers.forEach((item) =>
item(steamid, msg, this))));


////////////////////////////////////////////////////////////////////////////////
async function wasd() {
await TwitchChatClient.forTwitchClient(twitchClient);
await twitchChatClient.connect();
await twitchChatClient.waitForRegistration();
await twitchChatClient.join('byteframe');
twitchChatClient.say('byteframe', 'node-twitch-api');
};
wasd();

//##############################################################################

I can make something in jquery easily enough but what content can I generate? ugg nothing really.
CBroadcastChat.prototype.ChatSubmit = function()
{
var strMessage = $J.trim( $J('#chatmessage').val() );
if ( strMessage.length == 0 )
return;
$J('#chatmessage').val('');
$J('#chatmessage').focus();
var rgParams = {
chat_id: this.m_ulChatID,
message: strMessage,
instance_id: this.m_unInstanceID
};
var _chat = this;
this.m_webapi.ExecJSONP( 'IBroadcastService', 'PostChatMessage', rgParams, true, null, 15 )
.done( function( response )
{
response = response.response;
if ( response.result && response.result != 1 )
{
var strError = "";
if ( response.result == 17 )
strError = 'You have been muted and can not post messages to this chat';
else if( response.result == 84 )
strError = 'You are sending messages too fast, try again in %s seconds.'.replace( /%s/, response.cooldown_time_seconds );
else if( response.result == 40 ) // Note: The UI should block you from this point, but it is a safety net incase something changes during the broadcast
strError = 'Only game owners are allowed to send chat messages during this broadcast.';
else
strError = 'Failed to send chat message: %s'.replace( /%s/, strMessage );
_chat.DisplayChatError( strError );
return;
}
//_chat.DisplayChatMessage(response.persona_name, response.in_game, _chat.m_steamID, strMessage, true);
// Report to the iframe that a chat message was sent. This is to help understand whether a user engaged with a stream.
var bContainEmotes = _chat.m_regexUserEmoticons && _chat.m_regexUserEmoticons.test( strMessage );
_chat.PostMessageToIFrameParent( "OnSendChatMessage", { bContainEmoticon: bContainEmotes } );
})
.fail( function( response )
{
_chat.DisplayChatError( 'Failed to send chat message: %s'.replace( /%s/, strMessage ) );
});
};"