okay so here i have some coding for a giveaway system, it is just I am having some problems, mainly with the actual original !giveaway command
How it works is u do !giveaway DonatorNameHere Name Of the Game Here
on *:text:!giveaway *:#:{
if ($nick isop #) {
%newgacommand = $1
%newgasponsor = $2
%newgatext = $1-
%newgast1 = $remove(%newgatext,%newgacommand)
%newgast2 = $remove(%newgast1,%newgasponsor)
/write -c tempga.txt.txt
/write tempga.txt %newgast2
/write -c giveawayenters.txt
%game = $read(tempga.txt)
msg # A new giveaway has just been opened by $nick $+ , donated by %donor for a copy of $read(tempga.txt) $+ . To enter type !enter to be in with a chance of winning, you have 3 minutes to enter
timer 1 120 msg # There is one minute left of this giveaway so get your !enter's in, BIG THANKS AGAIN TO $upper(%newgasponsor)
timer 1 180 msg # $read(giveawayenters.txt) has just won this giveaway for a copy of $read(tempga.txt) $+ , big thanks to %newgasponsor for sponsoring this giveaway
}
}
on *:text:!giveawaydraw:#:{
var %winner2 $read(giveawayenters.txt)
msg # The new winner is $upper(%winner2), thank you $upper(%newgasponsor) for sponsoring this giveaway for $read(tempga.txt) $+ .
}
on *:text:!enter:#: {
if ($read(giveawayenters.txt, nw, $nick)) {
echo -a $nick is already in giveawayenters.txt
}
else {
/write giveawayenters.txt $nick
echo -a $nick is now in giveawayenters.txt
}
}
The problem is that sometimes it displays different things for the game, and it never shows the $read(giveawayenters.txt) from the line that says timer 1 180
This is an example of what it says:
[18:39] <@alphakennyv2> !giveaway alphakennyv2 The Other Other Fake Game
01[18:39] <@thealphabot> A new giveaway has just been opened by alphakennyv2, donated by for a copy of The Other Other Fake Game. To enter type !enter to be in with a chance of winning, you have 3 minutes to enter
[18:39] <@alphakennyv2> okay so the game name is now fixed
[18:39] <@alphakennyv2> !enter
[18:39] alphakennyv2 is now in giveawayenters.txt
01[18:41] <@thealphabot> There is one minute left of this giveaway so get your !enter's in, BIG THANKS AGAIN TO ALPHAKENNYV2
01[18:42] <@thealphabot> has just won this giveaway for a copy of Nothing cus this isnt a real giveaway, big thanks to alphakennyv2 for sponsoring this giveaway