Grimnir commented on a Page, Simple Shoutcast Bot  -  Jun 13, 2017

I needed users to be able to check what was on at random times so I added a little on text trigger:

on *:text:!nowplaying:#: {
tokenize 44 $regsubex($regsubex($1-,/<.+?>/g,),/&#;/g,$chr(\1))
%nowplaying = $md5($7)
}

I'm not sure I need the tokenize line in there line in there, but it doesn't seem to hurt anything.
I do need to figure out how to convert certain characters to be regular text and I suck at regex.
For example an apostrophe shows in the channel as ampersand pos semi-colon

Cool script though,
Thanks

biase  -  Nov 01, 2017

very wrong

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.