The Ultimate Site of Worms Armageddon

Other Things => Off Topic => Topic started by: PyroMan on August 12, 2013, 02:48 PM

Title: RandomBot
Post by: PyroMan on August 12, 2013, 02:48 PM
commands to get random answers or random numbers:
!YesNo [question] - bot will answer on your question.
!random [number] - bot will give you a random number in equal range.

5 mins ago screenshot:
(http://i.imgur.com/ny4rBh3.jpg)
Title: Re: RandomBot
Post by: Xrayez on August 12, 2013, 02:51 PM
rofl  :D
Title: Re: RandomBot
Post by: TheKomodo on August 12, 2013, 03:18 PM
Yeah it's pretty funny, but I don't think the things Asbest says should be displayed in public, bit intense lol.
Title: Re: RandomBot
Post by: Impossible on August 12, 2013, 03:25 PM
@komo Take a screenshot of wormnet those days without asbest insulting is almost mission impossible
Title: Re: RandomBot
Post by: HHC on August 12, 2013, 06:33 PM
Those are not random answers though, they seem 100% accurate.
Title: Re: RandomBot
Post by: DarkOne on August 12, 2013, 07:40 PM
As it is now, Asbest is purely reacting to what people say to him.
So how about not giving him any more ammo? ::)
Title: Re: RandomBot
Post by: TheKomodo on August 12, 2013, 09:52 PM
I wonder how many parents have seen their kids playing this game online, seen us all talk dirty/foul/violent and thought "hell no my kid ain't playing that !"...
Title: Re: RandomBot
Post by: Mega`Adnan on August 13, 2013, 12:49 PM
I wonder how many parents have seen their kids playing this game online, seen us all talk dirty/foul/violent and thought "hell no my kid ain't playing that !"...
;D xD!!
Title: Re: RandomBot
Post by: Rogi on August 13, 2013, 02:26 PM
18:20: I209I> !YesNo is word "rogi" similar to the word "noob" ? 
18:20: RandomBot> Yes.   
18:20: I209I> haha 
18:20: I209I> !YesNo can i change it ? 
18:20: RandomBot> Nah. 
18:21: I209I> !YesNo so, should i stop play WA and others games ? 
18:21: RandomBot> Nah. 

"Every game needs to have noobs" - I understand his politics.

18:40: I2091> !YesNo wanna TEL ? 
18:40: RandomBot> Probably. 
18:40: I2091> !YesNo host up pls. 
18:41: RandomBot> Definitely! 
18:41: I2091> !YesNo ok, join me. 
18:41: RandomBot> more No than Yes. 
18:41: I2091> !YesNo, So, will we play tel or no. 
18:41: RandomBot> Nah. 
Title: Re: RandomBot
Post by: avirex on August 13, 2013, 07:02 PM
!YesNo tus anyone?
Title: Re: RandomBot
Post by: Korydex on August 29, 2013, 04:01 PM
RandomBot's Pairings module is working very well. Few things however can be improved.

1) Pairing with odd numbers. Bot should be able to let mod avoid giving certain players a freebie (You know whom). Probably marking players as "NF" (no freebie) could help.
Example: !pairings A B NF`C D E F... (I hope it's possible method)

2) X-ways feature. I can't say this one is required (many pairing tools lack this feature). I imagine it making a randomised list (like here: http://www.random.org/lists/), dividing it by set ammount of players and, you know, sending it to the channel. Example: !x3pairings (or smth :D) A B C D E F...
Title: Re: RandomBot
Post by: PyroMan on August 29, 2013, 04:58 PM
RandomBot's Pairings module is working very well. Few things however can be improved.

1) Pairing with odd numbers. Bot should be able to let mod avoid giving certain players a freebie (You know whom). Probably marking players as "NF" (no freebie) could help.
Example: !pairings A B NF`C D E F... (I hope it's possible method)
Well ofc its possible. But "NF" or anything similar is bad idea, coz some clan names or nick names can contain those letters combination. I think double start sign will work best. "**"
I can implement that.

2) X-ways feature. I can't say this one is required (many pairing tools lack this feature). I imagine it making a randomised list (like here: http://www.random.org/lists/), dividing it by set ammount of players and, you know, sending it to the channel. Example: !x3pairings (or smth :D) A B C D E F...
This one is already implemented, actually.
Bot has next features:
!pairnings [a vs b]
!3pairings [a vs b vs c]
!4pairings [a vs b vs c vs d]
!5pairings [a vs b vs c vs d vs e]
!6pairings [a vs b vs c vs d vs e vs f]
limit 6, becouse there is no chance to host games with more players in one host :)

!grouping [a_&_b]
!3grouping [a_&_b_&_c]
limit 3, becouse same reason, since 3v3 is a W:A limit

i`ve also scripted various results of pairings when there is not exact amount of players for multi-way pairings.

For example:

!4pairings a b c d e
Result: a vs b vs c vs d, e gets free round.
!4pairings a b c d e f
Result: a vs b vs c vs d , e vs f (so one pair will play 1v1 if that kind of lack of players)
!4pairings a b c d e f g
Result: a vs b vs c vs d , e vs f vs g (one host will be with three players, against make a freebie)

and so on.. for various multi-pairings.
Title: Re: RandomBot
Post by: Korydex on August 29, 2013, 05:08 PM
Quote
Quote
2) X-ways feature. I can't say this one is required (many pairing tools lack this feature). I imagine it making a randomised list (like here: http://www.random.org/lists/), dividing it by set ammount of players and, you know, sending it to the channel. Example: !x3pairings (or smth :D) A B C D E F...
This one is already implemented, actually.
Bot has next features:
!pairnings [a vs b]
!3pairings [a vs b vs c]
!4pairings [a vs b vs c vs d]
!5pairings [a vs b vs c vs d vs e]
!6pairings [a vs b vs c vs d vs e vs f]
limit 6, becouse there is no chance to host games with more players in one host :)

!grouping [a_&_b]
!3grouping [a_&_b_&_c]
limit 3, becouse same reason, since 3v3 is a W:A limit

i`ve also scripted various results of pairings when there is not exact amount of players for multi-way pairings.

For example:

!4pairings a b c d e
Result: a vs b vs c vs d, e gets free round.
!4pairings a b c d e f
Result: a vs b vs c vs d , e vs f (so one pair will play 1v1 if that kind of lack of players)
!4pairings a b c d e f g
Result: a vs b vs c vs d , e vs f vs g (one host will be with three players, against make a freebie)

and so on.. for various multi-pairings.
Awesome.

Quote
Quote
1) Pairing with odd numbers. Bot should be able to let mod avoid giving certain players a freebie (You know whom). Probably marking players as "NF" (no freebie) could help.
Example: !pairings A B NF`C D E F... (I hope it's possible method)
Well ofc its possible. But "NF" or anything similar is bad idea, coz some clan names or nick names can contain those letters combination. I think double start sign will work best. "**"
I can implement that.
Oh, please, do! (I had to use pairing tool by Enty to avoid confusing situation of me being choosen as freebie winner today :-[ (Although, I think WO rules can exclude that freebie and LL rules if mod is using RandomBot)

Also it would be good to have a official man for the bot posted somewhere, as there are so many commands.
Title: Re: RandomBot
Post by: Korydex on August 29, 2013, 05:25 PM
And maybe next WO time MODs can finally stop getting their medal points reduced (I don't mind doubling it for some work ;D), as well as that freebie and LL rules, yeah. :-*
Title: Re: RandomBot
Post by: PyroMan on August 29, 2013, 06:34 PM
Alright, freebie ignoring implemented now and works if player in list has ** in any part of his name.
This works only for one player (for one string actually). As long as there is only one freebie possible.

!pairings a** b c
a** will never be freebie in this case. So mods can specify themself with those double star sign to avoid that situation.


And yeah.. i should write manual, as long as bot is improving. But basic commands bot will write to anyone, if he PM to bot with any message.
Title: Re: RandomBot
Post by: Korydex on August 30, 2013, 04:54 AM
Quote
This works only for one player (for one string actually). As long as there is only one freebie possible.
Though, the players who already did have freebie can't get it again. :-X Maybe add smth like %% and ^^ too? xd
Title: Re: RandomBot
Post by: Dmitry on August 30, 2013, 05:13 AM
If the next WO / WWO RandomBot will be used by all MOD, MOD then, too, can and must be ll have 100% points for a medal if he wins.

But, I think LL must have half points for medal.
Title: Re: RandomBot
Post by: PyroMan on August 30, 2013, 07:08 AM
Quote
This works only for one player (for one string actually). As long as there is only one freebie possible.
Though, the players who already did have freebie can't get it again. :-X Maybe add smth like %% and ^^ too? xd

yes it is implemented with global variable. bot remeber who was freebie previously and will not give it to same name twice in a row. I did not delete that function, it still works.
About star sign: It works for one player only with ** sign, i mean. if you set two players with ** - there is still will be a chance that ** will be replaced from freebie with another ** name. I would fix that easy in loop, by adding additional loop checking for players without ** sign. But the problem is that RandomBot script works not like that. I`ve scripted RandomBot on NEXT day since i first launched mIRC in my life. I was lazy to learn how mIRC arrays works, to use them in loops, so i used "by hand" scripting technique. It`s ok for simple tasks. But for detailed checking and exceptions its pretty tough task. Thats why it will work for only one player with ** sign. Yet.

I will try to learn how mIRC arrays works and maybe rewrite script. So more complicated exceptions will be possible to do.
Title: Re: RandomBot
Post by: PyroMan on August 30, 2013, 08:58 PM
Okay guys. I figured out how arrays works in mIRC. Its actually pseudo-arrays. Abyway they work and im already started rewriting pairings with it. Im making PM tests in special commands, so its not affecting current commands at all. Only when i`ll be sure that everything is perfect - i will replace the script.
Results of those will post here when its done.
Title: Re: RandomBot
Post by: PyroMan on August 31, 2013, 12:29 PM
RandomBot is now totally rewritten:
Pairing tool is now 270 lines (compare to 4190 lines of previous version :D)
implemented commas deleting (!pairings a, b, c, d, e will give now a vs b , c vs d etc)
implemented commas deleting for LuckyLooser aswell.
Max players (for pairings/grouping/LL) extended to 100 (was 32 max). But now this limit is formal. It can handle thousands of players.

Excluded function of "avoid same player give freebie again". Becouse it couses situations that are not fits to WO rules. Becouse same player could not get Freebie in next tourney. Bot would not allow to do that.
Agaisnt it, i`ve implemented ** - marking technique. Those players who marked as ** - will not get freebie. Its usefull to mark MOD (coz WO rules says that mods can`t get freebie) + players who already got freebie - could be marked like that if another freebie selection will be in same tourney.
This implemented for as multiple selections. Mod can mark as many players to dont get Freebie, as much he need. (this option is not hidden tho, so everyone can see what MOD is doing.)

Functions for !3pairings !4pairings !5pairings !6pairings, !grouping !3grouping are also implemented.
For grouping (creation of random groups) written next things:

!grouping a b c  ->  will give u result a/b , c is alone.
!3grouping a b c d  -> will give you result a/b/c , d is alone.
!3grouping a b c d e  -> will give you result  a/b/c , d/e/(need_partner)
etc.
Title: Re: RandomBot
Post by: Casso on August 31, 2013, 01:29 PM
Very nice work Pyro. Keep it up ;)