Discuss anything regarding MineRealm Classic here.
  • User avatar
  • User avatar
  • User avatar
By Eetrab
#166681
Before I go all out and make some impossible suggestion, I want to know from those more experienced with coding if this (description below) can be done.

Is it possible to create some script that allows HelpBot to identify when other servers are advertised?
User avatar
By dlgn
#166682
I don't have much coding experience, but I imagine you could do two things:

1. Compile a list of servers and censor them, or
2. Add code to let Helpy detect a series of numbers that constitutes an IP address.

~dlgn
By Exekiel
#166685
Anything is possible, I'm sure you could use a regex for it, but I'm not sure if it would be worth the bother. They usually get banned for spam anyway, or if they're persistant they'll get screenied and banned. You have to keep in mind, someone that goes advertising servers is unlikely to hang around for long (as they've either got to get back the advertised server... or more likely.. spend so much time server hopping and spamming their IP that no-one, not even themselves spend any time on their server)
User avatar
By Yeavon
#166686
add to the trigger event system in helpbot to look for anything that may consist of a IP i made one back when i was a admin on another server whenever someone averted it didn't show up to anyone but staff and they could ban em
User avatar
By Life_is_a_party
#166700
Eetrab wrote:Before I go all out and make some impossible suggestion, I want to know from those more experienced with coding if this (description below) can be done.

Is it possible to create some script that allows HelpBot to identify when other servers are advertised?
Unless you specify legal/ban specific URL's, know the name of the servers before-hand, or add "Join this server: " to the filter, HelpBot wouldn't be able to pick up on it, I'd think.
The last one might be plausible, but would have quiet a few flaws. Perhaps a warning system when the words (and/or variables of) "Join this server: " are seen.

But the problem with coding it to filter servers specifically would be specifying exactly what you'd want removed. The detection system would be pretty easy, I'd think, but picking out what you want removed without catching random URL's would be more a pain than it's worth. To make a list of all the URL's and IPS address would make a list that would be very, very long, making it easy to not only make a mistake, but also have it be avoided by simply adding a space or two.
As it's been said, it's easier just to let the spam filter take them out, it doesn't happen often, and yes, it's annoying, but if you have shadowcraft /ignore will cure the problem. If not, /chat will.
There isn't much need for a new script like that unless Intelli decides he wants to give it a shot to see if he can.
The only other reasonable thing other than /chat is making a request to make a new command to ignore certain players like shadowcraft already does and see if it goes through.
I really doubt that will happen, as I'm sure I've seen something similar be shut down with "There's already a command that does that, called /chat." Or something.

Still, doesn't hurt to give it a shot, make a suggestion for either adding "Join this server: " to the filter or for a new command.
You'd probably have better luck with the first one, that one seems the easiest, though as the easiest, may have a few flaws.
I still think /chat or /ignore is all one should need. If they really bother you, and don't get caught, make a ban request.
By cgfirecoral
#166716
My non-related suggestion would be to have the swear filter remove all duplicate letters, then compare the results to the known list. It wouldn't stop deliberate misspellings, but it would catch the people who try to get around the filter by doubling a letter.

I supposed another method would be to apply the Soundex algorithm to words in chat and ban a specific set of them. This would nail a larger range of words and permutations, but might lead to a higher level of false positives, which are no fun for anyone.
By gallinka
#166769
I suppose you could have it check to see if the URL (it would have to check if a chat post was a host name/IP address first) has a minecraft server on the address posted. This would be impractical as it would first need to find host names (and thus ping or at least do a DNS lookup) in every chat message.
By Exekiel
#166775
I've not studied them yet but it seems it would be super simple to check for IP's with a regex

http://answers.oreilly.com/topic/318-ho ... pressions/

You could modify it to check for text.text.text You would have to add parameters to eliminate legitimate websites ( ie. contains text.text.text && does not contain :,/)

(but I doubt most advertisers would go the effort of setting up a dynDNS)

(forgive my super sloppy pseudo)
By mitchie151
#166782
Could just set up a script to look for integers in a given order... Like a standard IP to connect to a server is xxx.xxx.xxx.xxx so you could just see if every one of those X's returned a number and censor it...

It is a bit of work, and I'm not a pro coder, so I wouldn't know how difficult this would actually be to create.
By Eetrab
#166783
Anyone think it is worth creating a suggestion for this?
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]