Hi, im new to the forums so i dont really know where this is supposed to go so can soemone please move it if im wrong
Im developing a bot www.twitch.tv/tutorbot and theres 1 part of it i cannot work out how to do in Mirc and that is the link/caps spam. if anyone could send me the code on how to do this then that would be amazing.
Alright, for example to detect caps you would count the uppercase letters. To do that with a regular expression in mIRC:
var %uppercase = $regex($1-, /[A-Z]/g)
This would return the number of occurrences of A to Z in the message $1-.
Then you’d determine if it should be classified as caps by comparing it to the length of the whole message (percentage.)
Detecting links is a different beast, and you’ll have to learn the basics of regular expressions to understand that.