Hi Karlien, recopy the entire alias section.
It's now working as it should. My apologies once again, I uploaded this copy without testing, but tested now and it's all fine.
To only allow Ops too start it, add this:
if ($nick isop $chan) {
Under the 1st line of each text event
and add a: }
just before the last }
Hope that makes sense.
Works great, see if I can post some examples of what I did with it.
Other things in the room add to the lotto pot. Like abusing the bot, he'll take credits from you and put some in the lotto pot for the next time its active. You can also do !mylotto to see how many times you've entered and how much in total you've won per month.
!lotinfo
The Room Name Lottery: 50 credits to enter. 25 credits goes in the pot. The more entrants, the bigger the pot! To enter simply type !lotto when a lottery is active.
The winner will get: Pot credits, 1 carrot, 1 lockpick and 1 midget token.
[14:13] !lotcheck
[14:13] Last Winner: (nick here) Pot Won: 150 credits. Plus 1 carrot, 1 lockpick and 1 midget token.
[14:13] The lottery is active! Entrants: 5 Current Pot: 285 credits. The draw will take place in: 3hrs 46mins 35secs. To enter type !lotto
[14:15] !lotto
Bot takes your 50 credits, puts 25 in the pot and puts your name in the crusty hat. Check the lotto status with !lotcheck.
Hello? Mcflies? I am now randomly selecting the lottery winner.
Bot reaches into the crusty hat, pulls out a name...
and the winner is...
(winner nick here) out of (number of people here) entrants. Congratulations!
You have won: (pot credits) credits, 1 carrot, 1 lockpick, 1 midget token and a smile :)
I figured it out :)
In the "alias -l toplotto"
%toplotto needs to be %topwhat
Works like a charm now!