Warcraft II Forum

Warcraft II => Server.War2.ru => Topic started by: Igognito on May 26, 2017, 12:43:47 PM

Title: InGame Status Bot: Antihack status, ELO, Ladder rank/wins etc..
Post by: Igognito on May 26, 2017, 12:43:47 PM
Hello all,

I have made a status bot that returns information about players.

It is almost completely there are some minor issues to be decided so I brought this on the forum:

Bot Name: I suggest status or info (for the rest of the message I use status)
Available commands:

\m status me
Returns your ladder stats from page http://ladder.war2.ru (http://ladder.war2.ru)
Also returns your current antihack status and in what channel/game you currently are.

\m status list
This is a very slow command and I suggest to not be used often. It returns selected information from http://server.war2.ru/status/ (http://server.war2.ru/status/) page

\m status game
This is similar with the list command but instead it returns the information for the users in your current GAME or channel.
This is very useful for hosts of games to check if the players have anti hack before starting.

\m status game [gamename]
This is like the above but you can state a game name.

\m status [playername]
This will return the ladder statistics of a player. Also it will return the ah status if player is online.

\m status help
Will give a short list of the commands

All information is returned at the form of private messages.
Antihack status is refreshed if 30 seconds have passed from last query. Which might make the response a bit slow.
Also antihack info might be upto 30 seconds old.

The responses are not 100% ensured :/ because of html errors but if you do not get a response you can retry.
In general it seems to be stable.

One problem I have seen it have is that it gets often the warning message for flooding.

Things that need to happen:
Decide on a name, please vote on the poll.
Get feedback for improving stuff.
Suggest renaming of commands/new commands.
@mousEtopher, Find a permanent host for it.
Title: Re: InGame Status Bot: Antihack status, ELO, Ladder rank/wins etc..
Post by: Delete mine too on May 26, 2017, 01:55:06 PM
Good work I'll check it out. Use a amazon host for 1 dollar load a vps!
Title: Re: InGame Status Bot: Antihack status, ELO, Ladder rank/wins etc..
Post by: Igognito on May 26, 2017, 03:49:33 PM
"Status" is so lifeless and mechical. The name should have some vibrancy and personability to it.

If you want it to still be semi-robotic sounding but with a battle flavor, how about something like "Intel"?

Alternatively, to suggest a benevolent presence, a fine anthropomorphic name, short for easy typing, could be given. Like Kane or Dante or Nixon or Lazarus. :)



How about Hermes? (The messenger god) or CIB central intelligence bot?
lol

I'm sure we can get creative on the name!
Title: Re: InGame Status Bot: Antihack status, ELO, Ladder rank/wins etc..
Post by: Igognito on May 26, 2017, 05:11:39 PM
Hermes is too close to herpes. And there's already enough of that going around on the server.

And CIB is too close to CIBC (a big bank) and basically everyone hates banks and would rather keep their money under a mattress if only your employer would direct deposit it there.
lol
and
lol

for now I have called it intel as status and hermes where taken :/
tonight I will be running it from home but I hope in the weekend it will find a more permanent house :D

I'm also considering of limiting the output as (for an unknown to me reason) it takes time to send messages

Cheerios
Title: Re: InGame Status Bot: Antihack status, ELO, Ladder rank/wins etc..
Post by: Winchester on May 26, 2017, 09:31:52 PM
Hermes is too close to herpes. And there's already enough of that going around on the server.
lol
Title: Re: InGame Status Bot: Antihack status, ELO, Ladder rank/wins etc..
Post by: Delete mine too on May 26, 2017, 10:45:15 PM
I have a host if you need it. Windows or Linux?
Title: Re: InGame Status Bot: Antihack status, ELO, Ladder rank/wins etc..
Post by: shesycompany on May 26, 2017, 11:20:35 PM
how do u use your bot tupac? i just whispered him to create game.

ahh it has to be in the open,cool idk if he made but he responded.
Title: Re: InGame Status Bot: Antihack status, ELO, Ladder rank/wins etc..
Post by: Delete mine too on May 27, 2017, 08:50:19 AM
how do u use your bot tupac? i just whispered him to create game.

ahh it has to be in the open,cool idk if he made but he responded.
Sorry I might of not opened war2! I will add a command to open war2 and login.
Title: Re: InGame Status Bot: Antihack status, ELO, Ladder rank/wins etc..
Post by: mousEtopher on May 27, 2017, 09:13:40 AM
I can host it. how about /w intel [username] AH and /w intel [username] Elo to return that specific info. I know several players were interested in having in-game Elo available specifically & that might make it return a little quicker if they're checking a lot of people at once? at least it'd be 1 line only instead of 2. And likewise for AH check, hosts might be gaming w/ a few friends and want to check AH status on newcomers as they arrive, so faster to check an individual rather than the whole game at once.

overall looks & works great, you did a great job on it Igog! thanks for your hard work :D
Title: Re: InGame Status Bot: Antihack status, ELO, Ladder rank/wins etc..
Post by: I hate naggers on May 27, 2017, 09:48:33 AM
ELO
grrrrrrrr
Title: Re: InGame Status Bot: Antihack status, ELO, Ladder rank/wins etc..
Post by: mousEtopher on May 27, 2017, 10:08:29 AM
oh yeah, sorry :D everyone else does it! I get confuuuuused
Title: Re: InGame Status Bot: Antihack status, ELO, Ladder rank/wins etc..
Post by: Certified MENSA Genius Brain (smart) on May 27, 2017, 11:06:03 AM
well if you're gonna edit ELO into Elo i must insist you put in a forum wide filter for wc2 -> war2
Title: Re: InGame Status Bot: Antihack status, ELO, Ladder rank/wins etc..
Post by: I hate naggers on May 27, 2017, 12:02:05 PM
everyone else does it!
yes but i only pay attention to you, baby girl!
*unzips*
Title: Re: InGame Status Bot: Antihack status, ELO, Ladder rank/wins etc..
Post by: Igognito on May 27, 2017, 12:49:36 PM
Well it is true that Elo is the name of the person that did the ranking.

But at least in Greece we always used capitalized ELO for the tables. I personally think it is a detail. But if people want me to make ELO->Elo that is very simple :-D

Thank you for your nice comments. I will improve the bot as I collected some feedback :-)
And hopefully soon Mousey can launch it for it to be constantly available.

Cheers
Title: Re: InGame Status Bot: Antihack status, ELO, Ladder rank/wins etc..
Post by: Igognito on May 27, 2017, 04:41:57 PM
Many improvements have been made.
I now send 1 message for the ladder stats. Because that message is long though it seems that the ah info which I was sending after is stopped by the flooding policy (Quota) before the bot was "magically" delaying and obeying the quota.

Furthermore, I disabled the command list (as it takes too long) and limited the command game to 8 players (in case it is used at a channel)
Yes 8 names take sometime to come. But the command is useful as you do not want ingame to type a nickname. You just want to see what is the status of the ah for the people you play with.

If people think that having also the ladder stats for the people at the same game makes sense. I can implement it. I do not suggest it though because of the flooding policy.
Furthermore, I made a change that will make the bot a bit slower but will ensure more correct results for the ah.

In general I think it is almost ready. Thus mousey when you are ready if you want to host it I can send it to you.

Cheers
Title: Re: InGame Status Bot: Antihack status, ELO, Ladder rank/wins etc..
Post by: O4L on May 28, 2017, 02:33:31 PM
I wouldnt care much to see ladder stats,  but seeing ladder rank would be nice to know how far up you could move by playing someone in a 1vs1 match.
Title: Re: InGame Status Bot: Antihack status, ELO, Ladder rank/wins etc..
Post by: Igognito on May 28, 2017, 02:55:29 PM
Hi all, currently I have set up intel to send messages like what you can see on the ss.

It is 1 line so flooding is less of a problem right now.

Also it is faster. You do get the rank the wins/lose/high rank and elo
Also you get antihack info when available...

Antihack info not always work.
Generally you might query intel and get or not get the answer. Depending the http requests.
But you can always try again!

Cheers
Added a ss
Title: Re: InGame Status Bot: Antihack status, ELO, Ladder rank/wins etc..
Post by: Igognito on May 28, 2017, 03:41:58 PM
I was thinking that by using the bot we can warn people that they do not have the anti hack active!
Also in the rare case that the bot finds hacking it could auto ban? (Assuming that the bot would have the rights)

Somewhere I have read that the idea for the anti hack was to be mandatory. By using the bot we can slowly go that way.

I'm suggesting the following policy:
When the bot detects none or unknown ah state it sends a warning to the user and records the day.
If the bot sees the user with out antihack more than 3 different days. Then it kicks him out.
If the bot sees the state hacking then it auto bans the player.

Obviously, all that with the appropriate messages.

Possible problem: Some users do not know/care to run the anti-hack especially new users.
For that reason, I suggest that if a user is kicked out a message goes to the admins.
The admins should be able to reset the bot record allowing the user to rejoin.
Also the bot could auto reset after kicking someone out the next day!

So coming without anti-hack 3 days "bans" you for 1 day. (That is the next day you join the server)

Generally I think all these are ideas for the admin's to think and decide.
I would be glad to implement any of the stuff said.

I remind that the bot is not bullet proof and several times has old information.
I have enforced it to use a full refresh which I think it helped but it still some times gets old data.

Cheers
Title: Re: InGame Status Bot: Antihack status, ELO, Ladder rank/wins etc..
Post by: mousEtopher on June 01, 2017, 12:24:22 PM
well if you're gonna edit ELO into Elo i must insist you put in a forum wide filter for wc2 -> war2
noo, wc2 is definitely a valid alternative abbreviation

send it any time Igog!
Title: Re: InGame Status Bot: Antihack status, ELO, Ladder rank/wins etc..
Post by: Igognito on June 02, 2017, 11:22:30 AM
@mousEtopher I have emailed it to you!

Oh feel free to reset the password of the intel account or make a ladder account for the bot.

Thank you
Title: Re: InGame Status Bot: Antihack status, ELO, Ladder rank/wins etc..
Post by: mousEtopher on August 11, 2017, 12:44:39 PM
Intel bot is back after an absence! it was having an issue & igog never replied to my mail about it so it was down for a while, I just started it up again and it appears to be workingish for now.
Title: Re: InGame Status Bot: Antihack status, ELO, Ladder rank/wins etc..
Post by: Igognito on September 24, 2017, 06:42:31 PM
Hey mousey, I'm on the move for some time now and have been off...

I'm trying to return one of these days 😊

Miss you guys
Title: Re: InGame Status Bot: Antihack status, ELO, Ladder rank/wins etc..
Post by: LiveFreeorDie on September 24, 2017, 08:27:19 PM
Hey Igog!

Long time no see! Welcome back! :)

Title: Re: InGame Status Bot: Antihack status, ELO, Ladder rank/wins etc..
Post by: mousEtopher on September 26, 2017, 04:52:42 PM
Hey mousey, I'm on the move for some time now and have been off...

I'm trying to return one of these days 😊

Miss you guys
ok thanks for letting us know! miss you too hope you're back soon <3