Page 4 of 5

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: May 26th, 2012, 12:51 am
by Allie
Any chance Dankirk could check for messages that are in all (or mostly) caps? Then it could spit out a warning telling them to turn off caps lock and whatnot. This seems doable with regular expressions, but then again I haven't done a ton with them myself.

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: May 26th, 2012, 8:19 am
by Dankirk
Alright, there's now a "no caps" reply.
For now, it'll be triggered when 2 messages from a player are all caps and within 4min timeframe of each other. Messages must be over 2 characters long and Op+ can't trigger it for essential hypocrisy :P.

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: May 26th, 2012, 8:27 am
by Sanjar Khan
Meh, make it three

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: May 26th, 2012, 4:54 pm
by Allie
Dankirk wrote:Alright, there's now a "no caps" reply.
For now, it'll be triggered when 2 messages from a player are all caps and within 4min timeframe of each other. Messages must be over 2 characters long and Op+ can't trigger it for essential hypocrisy :P.
Awesome, that was super quick and this seems like it'll be useful. Thanks!

Just wanted to report one odd thing that happened a moment ago:

Code: Select all

<FCB2> MineCraftdonalds: 1-1-0
<Dankirk> MineCraftdonalds, Please turn off caps.

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: May 27th, 2012, 1:35 am
by LiamRayStanley
OK there are a couple bugs happening.

First:

Promotions are not recording on !promoratio's. i have a couple people that agree.

Second:

The cooldown timer for caps i believe is non-existent, I'm not sure if its supposed to but.

i was supposed to have 25 or so promo's not 14! D:<

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: May 27th, 2012, 9:45 am
by Ollieboy
Can it be so that the NO CAPS response is perhaps stopped when a player says 3 or so non-caps messages?

e.g.

HEY GUYS!
How are you all?
.
.
.
(3 minutes and 59 seconds later)
OMG!
Dankirk: player, please turn off caps.

EDIT: Also I just saw the caps message get triggered by a player talking in numbers. Saying 4829 to get the attention of the player 48291634 twice.

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: May 27th, 2012, 10:39 am
by Kevinsweijen
I think numbers are seen as uppercase against this:
OMG FUCKING HELL MY MOTHER ASKED MY SISTER 2 HAVE A RELATIONSHIP WITH A FLOWER.
If the 2 wasn't seen as uppercase, this wouldn't trigger it :3

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: May 27th, 2012, 12:27 pm
by Ollieboy
Yeah fair enough, I guess there is no practical way around it. Either way the cooldown for time AND non-capital letter sentences would be pretty cool.

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: May 27th, 2012, 1:43 pm
by StainlessBlood
Ollieboy wrote:Yeah fair enough, I guess there is no practical way around it. Either way the cooldown for time AND non-capital letter sentences would be pretty cool.
Actually, think there should be a reasonable way to do it. Just throwing in a check for messages that are all non alphabetical characters before anything else in this check for all caps case should be fairly simple. An example would be something like,

Message a = "abedkeDFJKJEIRJ0495845845;'',.;'[]-=0|";
Message b = "0495845845;'',.;'[]-=0|";

Using regular expressions check for alphabetic characters
a = replaceAll(("[^A-Za-z]", "");
b = replaceAll("[^A-Za-z]", "");

Then just check the length of them next
a.length();
b.length();

(At least above is how I would consider doing it in Java, because the above is just Java code snippets. Well at least for the mist part.)

"a" would return a result of 15 but "b" would return a result of 0, therefore a 0 returned result means that the message only contains non-alphabetic characters and could be easily tested for and thrown out accordingly. I'm sure Dankirk will be able to throw something together no problem :D

And a cooldown does sound like a pretty sweet idea. Also great work with the bot Dankirk.

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: May 27th, 2012, 3:10 pm
by Dankirk
Alright, sry for slow response and fix, had drinking party yesterday.

NO CAPS changes:
- the sentence must be atleast 3 characters
- the sentence must contain an alphabet character A-Z
- timer reset when player sends non caps message OR 3 "no caps" messages is sent by bot
- timer starts with 150sec and resets to 120sec when bot says a "no caps" message


The promo thingy:
This was fixed sometime earlier. It also affected all other stats (kicks,bans,demotes) for Ops. Should work now. This happened due to experimental (now working) support for playernames with spaces. (which can be done with command /setinfo).

For the lost stats I can unfortunately do nothing.

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: May 27th, 2012, 6:01 pm
by LiamRayStanley
Dankirk wrote:For the lost stats I can unfortunately do nothing.
Thats ok! thanks!

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: May 28th, 2012, 1:09 am
by Ollieboy
Dankirk wrote:had drinking party yesterday.
The best kind of party!

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: May 30th, 2012, 8:19 pm
by Dankirk
There's now some exceptions for NO CAPS, like "help" and "griefer".

!english now supports partial player names.

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: June 8th, 2012, 8:32 am
by Jonty800
Can Dankirk check who is online?
Player connects -> add to list
Player quits -> remove from list

That way, if someone gets promoted and they're offline, Dankirk won't say congrats to them?

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: June 8th, 2012, 8:42 am
by Xesdra
Jonty800 wrote:Can Dankirk check who is online?
Player connects -> add to list
Player quits -> remove from list

That way, if someone gets promoted and they're offline, Dankirk won't say congrats to them?
And then .players for freebuild!

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: June 9th, 2012, 11:30 am
by Dankirk
Xesdra wrote:
Jonty800 wrote:Can Dankirk check who is online?
Player connects -> add to list
Player quits -> remove from list

That way, if someone gets promoted and they're offline, Dankirk won't say congrats to them?
And then .players for freebuild!
Done.
This feature has been requested earlier, but was problematic to implement since there was no quit message when player used /hide. Works alright now though.
The .players (or !players) is available for voiced and opped people on irc. It tells the player names too if theres 7 or fewer players online. Hidden people aren't shown or counted.

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: June 11th, 2012, 8:23 pm
by Wundsalz
<+Dankirk> Masons and higher can get their own maps.
That's incorrect. Afaik the only way to get personal worlds is donating.

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: June 15th, 2012, 8:28 am
by Dankirk
Fixed,
also made color names match the in game (or fCraft) colors instead of IRC ones.
light grey -> silver
orange -> olive
pink -> magenta
light green -> lime
light cyan -> aqua
dark red -> maroon

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: June 15th, 2012, 7:38 pm
by Mc_MrCat
!players is giving us wrong numbers, right now its 10 more than it actually is. So I thought, would hiding silently mess the counting up? If there is 30 players, and you /hide silent, and then /unhide, will it show 31?

Maybe make it so if it sees the same name again it will remove one? I'm guessing that this is the reason that we are getting wrong numbers, maybe it is something else though. 30 players, Mc_MrCat uses /hide silent, and then /unhide, and since Mc_MrCat is already on the list once, it doesn't add another one.

Just a guess, idk the coding that it uses.

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: June 16th, 2012, 8:11 am
by Dankirk
Name can only have 1 instance on the online list.

What seems to mess up is that if you /hide silent, and then leave the server, the nickname will remain on the list until you come back, unhide, and then leave or /hide normally.

I might need to disable !players again.

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: June 18th, 2012, 7:04 am
by Intertoothh
Or, make it so that if you havent seen a player for 15+ mins, it will not register you. Until you do any action again.

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: June 18th, 2012, 8:06 am
by Xesdra
Intertoothh wrote:Or, make it so that if you havent seen a player for 15+ mins, it will not register you. Until you do any action again.
But then people who don't talk will get knocked off the list :/

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: June 18th, 2012, 12:41 pm
by Intertoothh
Xesdra wrote:
Intertoothh wrote:Or, make it so that if you havent seen a player for 15+ mins, it will not register you. Until you do any action again.
But then people who don't talk will get knocked off the list :/
Only vet & op+
Others cant hide, so you dont need a timer for them.

Its better then no list at all, i dont mind if its not 100% acurate, i just wanna know the guest/mod ratio :)
Moderators that arent active moderating get nocked off then, perfect!

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: June 20th, 2012, 10:45 pm
by Dankirk
I'll get to the !players problem after midsummer. Coming back next monday.

- Added !mute to the config website (in case all else fails = No IRC ops and rank settings fucked)
- Lowered general spam protection to 1 second. (was 2 earlier)
- Added support for /BanX (a command on 800craft servers), it's now properly recognized just like normal /ban (this was also part of !players problem).
- !players list is now reset when serverbot(s) join/part the channel

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: June 21st, 2012, 9:28 pm
by WaterGod469
You should add: How do I teleport to someone?

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: June 21st, 2012, 11:25 pm
by Wundsalz
guests aren't able to teleport.
Thus an autoresponse to that question would probably cause more confusion than it guards against.

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: June 24th, 2012, 8:41 pm
by PolakWithABlock
Can we get the pokemon theme in like MLP?
I enjoy it very much.

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: June 27th, 2012, 8:45 pm
by Dankirk
- Added Pokemon theme
* "MLP theme" setting on website changed to "Sing-along Themes (MLP, Pokemon)"
* This change makes it easier to add more themesongs in the future. Possibly even via the website
- Added some 40+ jokes
- Fixed !allow
- Added !bans alias for "any bans needed". It kinda has !command characteristics, so there.
- Minor message changes for Fun Facts when "player joined/left" messages are disabled from fCraft settings.

EDIT:
- Rewrote !players
* Now tells the number of visible operators in addition to players on the server
* Players that can /hide silent get removed from the list after 1,5h of silence. (The actual rank can be configured via website)

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: July 7th, 2012, 9:23 am
by Jonty800
Bug: Players are online, but not counted.

<Dankirk> 4 players online: alexmagdo dorycoral mantisman464 Rebelliousdesu ( 1 visible moderators )
<ServerBot> wabeukers: and me

Re: Dankirk the Autoreply Bot (info & suggestions)

Posted: July 11th, 2012, 3:13 am
by Dankirk
- Players are properly re-added to online list if they speak after the 1,5h of silence.