Madshrimps Forum Madness

Madshrimps Forum Madness (https://www.madshrimps.be/vbulletin/)
-   Hardware/Software Problems, Bugs (https://www.madshrimps.be/vbulletin/f14/)
-   -   hwbot - the forum contest bot (https://www.madshrimps.be/vbulletin/f14/hwbot-forum-contest-bot-4711/)

RichBa5tard 27th April 2004 09:38

mbot - the forum contest bot
 
I've got to hand in a little "internet programmation" task in a week or 6, and i've come up with a neat idea.

Those "show me your highest 3Dmark/Pifast/....' threads are very popular on forums, but it's a b*tch to maintain them manually.

How about a bot, that maintains the first post? It skims the pages for expressions like [ mbot ]<nickname> - <time/score> - system specs - ...[ /mbot ], and updates the first post manually.

If someone wants to start a contest he should fill in a form on the madmark website containing the url of the first post, the type of contest and the team name, from then on the mbot updates the thread hourly.

Pretty easy to do, any comments/suggestions?

jmke 27th April 2004 09:59

a verification system would be very usefull, otherwise some jokers will do

[mbot]the best - 999999999999999 - P8 9ghz [/mbot]

RichBa5tard 27th April 2004 10:08

Such entries should be removed manually. It's not an anonymous entry, you'll still have to be registred at the forum where the contest takes place.

jmke 27th April 2004 10:22

won't removing entrees manually f*ck up the bot?

how will the bot the able to update the 1st post btw?

RichBa5tard 27th April 2004 10:32

Editing the first entry is just an HTTP Post request. However, you'll need to give your password and login if the mbot isn't the owner of the first post.

You've got a point about messing up the bot with manually removing the entry. I could blacklist the user who posted it.

jmke 27th April 2004 10:37

that's quite a security risk, maybe always let the bot make the 1st post?

RichBa5tard 27th April 2004 10:41

That would simplify things. : )

jmke 27th April 2004 10:51

or maybe 1st post by the user with explication and details
and then you go to the bot, specify the thread and hit go, the bot will then reply with a first basic list and rules you gave the bot.

the only reference you need for updating from then on is the unique post id

RichBa5tard 27th April 2004 11:12

Good idea, i'll get to the coding asap. : )

AngeluS 27th April 2004 12:09

Nice idea!
Janssens will like you so much. :-)

jmke 27th April 2004 12:10

Janssens always does :)

RichBa5tard 27th April 2004 14:45

hehe : )

Received a : sun.net.www.protocol.http.HttpURLConnection
Getting an input stream...
# matches: 1
Found match:[mbot]the best -
User: the best
score: 9.9999999E14
system: P8 9ghz
-----------------------------------

RichBa5tard 27th April 2004 14:46

testje

[mbot]richba5tard - 17935 - Athlon XP 2Ghz R9700 Pro[/mbot]

RichBa5tard 27th April 2004 15:04

Retrieving webpage...
# matches: 1
User: the best
score: 9.9999999E14
system: P8 9ghz
-----------------------------------
User: the best
score: 9.9999999E14
system: P8 9ghz
-----------------------------------
User: richba5tard
score: 17935.0
system: Athlon XP 2Ghz R9700 Pro
-----------------------------------

jmke 27th April 2004 15:06

does the bot monitor the thread with all the replies? how does it cope with multiple pages? does it know what updates it has already one? :)

[mbot]jmke - 17936 - Athlon XP 2.05Ghz R9700 Pro[/mbot]

RichBa5tard 27th April 2004 15:11

Retrieving webpage...
# matches: 1
Found match:the best - 999999999999999 - P8 9ghz
Found match:richba5tard - 17935 - Athlon XP 2Ghz R9700 Pro
Found match:jmke - 17936 - Athlon XP 2.05Ghz R9700 Pro

User: the best
score: 9.9999999E14
system: P8 9ghz
-----------------------------------
User: richba5tard
score: 17935.0
system: Athlon XP 2Ghz R9700 Pro
-----------------------------------
User: jmke
score: 17936.0
system: Athlon XP 2.05Ghz R9700 Pro
-----------------------------------

RichBa5tard 27th April 2004 15:16

No, it rebuilds the whole page each time it checks. It's faster than checking whether the entry already exists in the database.

multiple pages should be no problem, but it isn't implemented yet.

RichBa5tard 27th April 2004 17:54

mbot beta at work in this thread.

Basic stuff seems to work. : ) It can parse the results and edit the first thread automaticly.

RichBa5tard 2nd May 2004 00:42

Ok, the bot has matured enough to put it to work. : )

mbot v0.9:
--------------
features:
* automaticly updates first post at given interval (default: 6 hours)
* filters highest score from user
* supports unlimitted subcats
* includes image attachment for proof (vbb only atm)
* includes futuremark url

flexibility:
* forum specific stuff (how to edit post, how to make sth bold are *not* hardcode, hence other forumsoftware engines are easy to support.
* very easy to add support for 3Dmark, aquamark, etc

bugs:
* none known

todo:
* add support for other contest types than superpi
* add support for other forumsoftware
* add webpage so other users can launch the bot

RichBa5tard 2nd May 2004 13:02

mbot v0.91:
--------------
added features:
*possibility for reverse sorting (lower = better)

bugfixes:
* '>', '<' and '&' are allowed
* subcategory fix

todo:
* add support for other contest types than superpi
* add support for other forumsoftware
* add webpage so other users can launch the bot

jakkerd 2nd May 2004 13:18

i was just thinking
after a while such a thread well be dozens off pages
does he always scan all of'm?
cause, that could slow him down, no?

RichBa5tard 2nd May 2004 13:27

It checks whether there are multiple pages, and has no problem scanning them all.

It takes about 1 sec per page, so it would become a problem if it had multiple threads to maintain, and the update interval would be small (eg 10 minutes). That's why the default update intervak is 6 hours... that's still way more frequent than if it were done manually. ;)

Keep in mind this is a server oriented app. The current version may also run as a clien app (on any pc with an internet connection), but v1.0 will be run from a webserver, so it doesn't hog my bandwith.

RichBa5tard 2nd May 2004 15:59

mbot v0.92:
--------------
added features:
*supports identification by cookies

bugfixes:
* none

todo:
* add support for 3Dmark contest

piotke 2nd May 2004 18:05

maybe slight error overhere:

http://shrimpcity.spelletjesgarnaal....threadid=60212

Koensa has a futuremakr url in his signature, and it seems that the bot searches these to.

Blade 8th May 2004 21:33

You'd better put in some fancy colors for janssens ;)

RichBa5tard 9th May 2004 22:46

mbot v0.93:
--------------
added features:
* linux / win dedection
* caches unaltered webpages. 100+ pages long thread doesn't consume more bandwith than a single page one.
* added 3dmark 01 and 03 formatter

bugfixes:
* subcategory dedection is no longer case sensitive

todo:
* add funky colors
* code rewrite

jmke 9th May 2004 23:01

Bug:

my score was not updated here: http://shrimpcity.spelletjesgarnaal....threadid=60220

my system specs are wrong, it says P4 2.4@4 , while it is only 2.4@3

I added a reply at the bottom:

[mbot]JMke - 20795.0 marks - P4 2.4 "C" @ 3 Ghz + R9800 Pro default[/mbot]

one mark higher then the score listed, in the hope the bot would update.. but it didn't ?

"Last edited by mbot on 09-05-2004 at 17:37"

could the "name" field be case sensitive?
if yes, aha. but then it should have added a JMke entree anyway?

RichBa5tard 9th May 2004 23:05

todo:
* debug import code :)

RichBa5tard 21st May 2004 13:12

Development of the mbot website is going well. I estimate it will be up and running by the end of this weekend.

It will feature the new & improved mbot, the ability for end users to configure and launch their own mbot, an interforumcontest page and the source code of the whole project.

Are there any immediate request except an interforum contest page per benchmarkprog, and the ability to control your own mbot?

RichBa5tard 22nd May 2004 19:38

sneak peak :)

jmke 22nd May 2004 23:37

sexy :)

RichBa5tard 27th May 2004 02:31

working beta version: http://madmark.madoka.be/

looks like pure crap in ie, I recommend firefox / mozilla / opera.

jmke 28th May 2004 13:09

uhm.. hm.. everybody has full access?

I was unable to create a bot.. but I accidently hit delete on the "madshrimps 3dmark03" bot entree.. and poof.. it was gone.. wtf?

RichBa5tard 28th May 2004 13:45

user identification and a more user friendly way of creating bots is nearly finished.

aboroth 28th May 2004 15:03

just some html-comments..

css:
- try changing all bordersettings (td.botlist, ...) 'thin' to '1px'..
- hr -> height 1px
(will all look the same in mozilla, improvement in IE)

htm add-bot:
removal of the width="350" setting for right table + usage of empty tr for spacing (or top or bottom margins \ other class|style)

RichBa5tard 28th May 2004 15:16

:ws:

Thanks aboroth, IE looks much better this way.

RichBa5tard 29th May 2004 04:14

Mbot.org 1.0 rc1 is online and has replaced the old bot.

To see the bots at work, visit http://madmark.madoka.be/

jmke 29th May 2004 11:49

looking great :)
although I'd remove that test account, just in case somebody tests on how to delete a ranking :/

piotke 29th May 2004 12:22

in the Mbot table.

Is it possible to create links to the threads ?

Shrimp Superpi 337 Sloefke (795.0) 42 view

Sloefke leader ? :)

RichBa5tard 29th May 2004 14:17

Reverse superpi will be fixed in the next release.

A link to the actual forumpost is possible, but that feature doesn't have high priority.

@jmke: it will be removed eventually

-edit- hmmm, hosting seems to be awfull slow atm.


All times are GMT +1. The time now is 16:38.

Powered by vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO