Possibly get some help with this (Voat automod)?

9    04 Feb 2016 10:25 by u/Solo1

/u/mikex5 wrote an automod for Voat a few months ago- pretty basic but it can do the job well enough to catch obvious spam. However, it seems to have quit working (more specifically, it no longer catches new comments, or any comments at all, and doesn't seem to check for banned strings) in the months since and I haven't a clue why.

It is written in Java, which I don't know. With Mike MIA, I don't have any way of fixing it except for asking here. If anyone here could take a look at it, it would be much appreciated!

https://github.com/mikex5/VoatAutoMod

8 comments

2

A lot of the html elements are hard coded strings it looks like. Are we sure those are all unchanged?

It also looks like it's using .contains to check the lists which is going to call .equals and not .equalsIgnoreCase for strings, so banned strings are likely case sensitive

0

A lot of the html elements are hard coded strings it looks like. Are we sure those are all unchanged?

I was thinking it could be something that had changed in Voat. Mainly because it still half works (as in it runs), and nothing has changed on my end since I last used it. I don't know if they have changed though.

so banned strings are likely case sensitive

String instructions say:

// also, words should be lowercase since strings are converted to lowercase

Possible issue?

2

Yeah I was reading the github file on my phone so I might have missed some comments. Seems like mike knows they are case sensitive or selenium is converting all of voat's strings to lower case.

You could look in the developer window of the page in Firefox or Chrome to see if the html elements are still the same

-1

Programming language so complicated!