Hey guys, i have set up a giveaway system for my channel where it picks a random user and they win using this:
on *:text:!giveaway:#:{
if ($nick isop #) {
msg # $upper($nick(#,$rand(1,$nick(#,0)))) Just won the giveaway, we'll send you a message with details on how to obtain. }
else { msg # Dear $nick , You do not have permission to use this command! }
}
I was wondering if there was a way to get the name that it randomly picks, as i have a points system set up and what it to display the amount of points that the winner has
This is the coding that i would normally use to make it read a number of points that the user has:
$readini(Points.ini,$+(#,.,$nick),Points)
How would i make it so that when the bot picks a random user, that i can put it into the $readini coding instaed of where the $nick lies, so it would say:
BLAHBLAH ( Has 124 Points) Just won the giveaway, we'll send you a message with details on how to obtain.