Dankirk the Autoreply Bot (info & suggestions)

Want to provide feedback or have a question? Post away!
User avatar
Allie
Offline
Posts: 329
Joined: May 24th, 2011, 1:37 am
Location: Sealand

Re: Dankirk the Autoreply Bot (info & suggestions)

Post 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.
<CMB> KingCrab72: Some mixture and contrast would be nice tbh Ollie
<Ollieboy> Some mixture and contrast of your face on my penis would also be nice

User avatar
Dankirk
SupOP
Offline
Posts: 49
Joined: May 24th, 2011, 1:38 am
Contact:

Re: Dankirk the Autoreply Bot (info & suggestions)

Post 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.
<+FBB2_> Thimerit: There is actually a real dankirk? lol

<+FBB2_> dan9201: Does anyone else think Dankirk may possibly be....
<+FBB2_> dan9201: GOD?

User avatar
Sanjar Khan
Trustee
Offline
Posts: 1766
Joined: May 24th, 2011, 1:40 pm
Location: Leiden, Zuid Holland

Re: Dankirk the Autoreply Bot (info & suggestions)

Post by Sanjar Khan »

Meh, make it three
Ferrisbuler2: i will stay but i might not post cus of ollieboy

User avatar
Allie
Offline
Posts: 329
Joined: May 24th, 2011, 1:37 am
Location: Sealand

Re: Dankirk the Autoreply Bot (info & suggestions)

Post 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.
<CMB> KingCrab72: Some mixture and contrast would be nice tbh Ollie
<Ollieboy> Some mixture and contrast of your face on my penis would also be nice

User avatar
LiamRayStanley
OP
Offline
Posts: 151
Joined: February 9th, 2012, 2:09 pm
Contact:

Re: Dankirk the Autoreply Bot (info & suggestions)

Post 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:<
<+FCB>Arvarna: i think your banhammer needs a downgrade

User avatar
Ollieboy
Trustee
Offline
Posts: 2343
Joined: May 23rd, 2011, 3:13 am
Location: Australia

Re: Dankirk the Autoreply Bot (info & suggestions)

Post 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.
<TKB> Hit_Girl: zombies don't hurt
<TKB> Hit_Girl: weird.
<TKB> Hit_Girl was slain by Zombie

User avatar
Kevinsweijen
SupOP
Offline
Posts: 365
Joined: November 4th, 2011, 6:08 pm
Location: Amsterdam, The Netherlands

Re: Dankirk the Autoreply Bot (info & suggestions)

Post 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
3 stages of sex life in a person's lifetime: Tri-weekly, try weekly, try weakly

<PyroPyro> afk touching my self while looking at the monies

User avatar
Ollieboy
Trustee
Offline
Posts: 2343
Joined: May 23rd, 2011, 3:13 am
Location: Australia

Re: Dankirk the Autoreply Bot (info & suggestions)

Post 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.
<TKB> Hit_Girl: zombies don't hurt
<TKB> Hit_Girl: weird.
<TKB> Hit_Girl was slain by Zombie

User avatar
StainlessBlood
Trustee
Offline
Posts: 54
Joined: October 31st, 2011, 1:36 am
Location: US

Re: Dankirk the Autoreply Bot (info & suggestions)

Post 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.

User avatar
Dankirk
SupOP
Offline
Posts: 49
Joined: May 24th, 2011, 1:38 am
Contact:

Re: Dankirk the Autoreply Bot (info & suggestions)

Post 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.
<+FBB2_> Thimerit: There is actually a real dankirk? lol

<+FBB2_> dan9201: Does anyone else think Dankirk may possibly be....
<+FBB2_> dan9201: GOD?

User avatar
LiamRayStanley
OP
Offline
Posts: 151
Joined: February 9th, 2012, 2:09 pm
Contact:

Re: Dankirk the Autoreply Bot (info & suggestions)

Post by LiamRayStanley »

Dankirk wrote:For the lost stats I can unfortunately do nothing.
Thats ok! thanks!
<+FCB>Arvarna: i think your banhammer needs a downgrade

User avatar
Ollieboy
Trustee
Offline
Posts: 2343
Joined: May 23rd, 2011, 3:13 am
Location: Australia

Re: Dankirk the Autoreply Bot (info & suggestions)

Post by Ollieboy »

Dankirk wrote:had drinking party yesterday.
The best kind of party!
<TKB> Hit_Girl: zombies don't hurt
<TKB> Hit_Girl: weird.
<TKB> Hit_Girl was slain by Zombie

User avatar
Dankirk
SupOP
Offline
Posts: 49
Joined: May 24th, 2011, 1:38 am
Contact:

Re: Dankirk the Autoreply Bot (info & suggestions)

Post by Dankirk »

There's now some exceptions for NO CAPS, like "help" and "griefer".

!english now supports partial player names.
<+FBB2_> Thimerit: There is actually a real dankirk? lol

<+FBB2_> dan9201: Does anyone else think Dankirk may possibly be....
<+FBB2_> dan9201: GOD?

Jonty800
Offline
Posts: 280
Joined: August 21st, 2011, 6:31 am
Location: United Kingdom
Contact:

Re: Dankirk the Autoreply Bot (info & suggestions)

Post 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?
You cannot use certain BBCodes: [img].

User avatar
Xesdra
Offline
Posts: 237
Joined: May 24th, 2011, 6:31 am
Location: Australia

Re: Dankirk the Autoreply Bot (info & suggestions)

Post 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!
This post makes my post count increase by one!

User avatar
Dankirk
SupOP
Offline
Posts: 49
Joined: May 24th, 2011, 1:38 am
Contact:

Re: Dankirk the Autoreply Bot (info & suggestions)

Post 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.
<+FBB2_> Thimerit: There is actually a real dankirk? lol

<+FBB2_> dan9201: Does anyone else think Dankirk may possibly be....
<+FBB2_> dan9201: GOD?

User avatar
Wundsalz
Trustee
Offline
Posts: 290
Joined: July 26th, 2011, 11:34 pm

Re: Dankirk the Autoreply Bot (info & suggestions)

Post by Wundsalz »

<+Dankirk> Masons and higher can get their own maps.
That's incorrect. Afaik the only way to get personal worlds is donating.
The man in black fled across the desert, and the gunslinger followed.

User avatar
Dankirk
SupOP
Offline
Posts: 49
Joined: May 24th, 2011, 1:38 am
Contact:

Re: Dankirk the Autoreply Bot (info & suggestions)

Post 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
<+FBB2_> Thimerit: There is actually a real dankirk? lol

<+FBB2_> dan9201: Does anyone else think Dankirk may possibly be....
<+FBB2_> dan9201: GOD?

Mc_MrCat
OP
Offline
Posts: 9
Joined: May 25th, 2011, 1:03 am

Re: Dankirk the Autoreply Bot (info & suggestions)

Post 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.

User avatar
Dankirk
SupOP
Offline
Posts: 49
Joined: May 24th, 2011, 1:38 am
Contact:

Re: Dankirk the Autoreply Bot (info & suggestions)

Post 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.
<+FBB2_> Thimerit: There is actually a real dankirk? lol

<+FBB2_> dan9201: Does anyone else think Dankirk may possibly be....
<+FBB2_> dan9201: GOD?

User avatar
Intertoothh
Trustee
Offline
Posts: 1149
Joined: May 24th, 2011, 5:51 am

Re: Dankirk the Autoreply Bot (info & suggestions)

Post 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.
McLaughlinKid wrote:You put roar on everything don't you?

User avatar
Xesdra
Offline
Posts: 237
Joined: May 24th, 2011, 6:31 am
Location: Australia

Re: Dankirk the Autoreply Bot (info & suggestions)

Post 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 :/
This post makes my post count increase by one!

User avatar
Intertoothh
Trustee
Offline
Posts: 1149
Joined: May 24th, 2011, 5:51 am

Re: Dankirk the Autoreply Bot (info & suggestions)

Post 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!
McLaughlinKid wrote:You put roar on everything don't you?

User avatar
Dankirk
SupOP
Offline
Posts: 49
Joined: May 24th, 2011, 1:38 am
Contact:

Re: Dankirk the Autoreply Bot (info & suggestions)

Post 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
<+FBB2_> Thimerit: There is actually a real dankirk? lol

<+FBB2_> dan9201: Does anyone else think Dankirk may possibly be....
<+FBB2_> dan9201: GOD?

WaterGod469
Offline
Posts: 1
Joined: April 18th, 2012, 7:11 pm

Re: Dankirk the Autoreply Bot (info & suggestions)

Post by WaterGod469 »

You should add: How do I teleport to someone?

User avatar
Wundsalz
Trustee
Offline
Posts: 290
Joined: July 26th, 2011, 11:34 pm

Re: Dankirk the Autoreply Bot (info & suggestions)

Post by Wundsalz »

guests aren't able to teleport.
Thus an autoresponse to that question would probably cause more confusion than it guards against.
The man in black fled across the desert, and the gunslinger followed.

User avatar
PolakWithABlock
SupOP
Offline
Posts: 294
Joined: May 24th, 2011, 3:44 am

Re: Dankirk the Autoreply Bot (info & suggestions)

Post by PolakWithABlock »

Can we get the pokemon theme in like MLP?
I enjoy it very much.
Aleries: What OS is your server running on?
FierceReacter: 5

User avatar
Dankirk
SupOP
Offline
Posts: 49
Joined: May 24th, 2011, 1:38 am
Contact:

Re: Dankirk the Autoreply Bot (info & suggestions)

Post 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)
<+FBB2_> Thimerit: There is actually a real dankirk? lol

<+FBB2_> dan9201: Does anyone else think Dankirk may possibly be....
<+FBB2_> dan9201: GOD?

Jonty800
Offline
Posts: 280
Joined: August 21st, 2011, 6:31 am
Location: United Kingdom
Contact:

Re: Dankirk the Autoreply Bot (info & suggestions)

Post by Jonty800 »

Bug: Players are online, but not counted.

<Dankirk> 4 players online: alexmagdo dorycoral mantisman464 Rebelliousdesu ( 1 visible moderators )
<ServerBot> wabeukers: and me
You cannot use certain BBCodes: [img].

User avatar
Dankirk
SupOP
Offline
Posts: 49
Joined: May 24th, 2011, 1:38 am
Contact:

Re: Dankirk the Autoreply Bot (info & suggestions)

Post by Dankirk »

- Players are properly re-added to online list if they speak after the 1,5h of silence.
<+FBB2_> Thimerit: There is actually a real dankirk? lol

<+FBB2_> dan9201: Does anyone else think Dankirk may possibly be....
<+FBB2_> dan9201: GOD?

Post Reply