Skip Navigation

Introducing the sleepBot

Travel Forums Wiki Travel Guide Introducing the sleepBot

Page
  • 1
  • 2

Last Post

1. Posted by Peter (Admin, 5355 posts) 16 Feb '10 04:14

Our latest member is very good at adding accommodation to the guide :)

I've changed things around fairly significantly to make reasonably reliable automatic updates of the accommodation possible. I've removed the popup that lets you create an accommodation table. Instead, what you need to do to add accommodation is look for the link to "Add accommodation listings". It's right down the bottom under the edit form after the bit describing the Wiki Markup. You will ONLY see it if you have moderator rights in the wiki, since this is kind of a significant edit to make. Moderator rights in the wiki are granted to anyone with Respected Member status or higher. Clicking on the link will bring up a form to select the city that this article is about. Nothing will happen to the content at this stage, but when you click save.. magic ensues. Aside from your edit, you will see in the history another edit by our friend the sleepBot. It will add in a list of accommodation for this location neatly in the right spot all correctly formatted.

In a table in our database, we're now keeping track of the changes being made to accommodation listings in the guide. If the last person who edited a particular property was sleepBot, then sleepBot will continue to update that property if anything changes. If the last person to edit that property was another user, then sleepBot will forever leave it alone. This is to avoid changes made by you being overridden the next time sleepBot decides to update things.

And yes, sleepBot is capable of updating any article in the guide. I've only set it loose on a handful so far to ensure that I catch bugs and fix them before any potential damage is done.

On that note, please take it easy with the bot for the first few days at least. If you have linked up accommodation listings using the method described above, then please check the history and make sure it all looks right. I'll be monitoring things at the back end as well to ensure it's doing the right thing.

That's all folks. Hope it's a help!

2. Posted by Utrecht (Moderator, 5537 posts) 16 Feb '10 04:48

Most active sleeper ever!
Nice work Peter

When exactly does the automatic sleepBot comes around? i just edited Tanah Rate article, and in history it shows the sleeping table added by sleepBot as well at that same time.
I did use the option below to match it with the article, is that the reason it worked? Because the table itself didn't show up when editing, just after saving.

[ Edit: Edited on 16-Feb-2010, at 04:48 by Utrecht ]

3. Posted by Utrecht (Moderator, 5537 posts) 26 Feb '10 12:55

SleepBot does his name justice lately;)
Any plans on running it through the entire travelguide? Can't wait to see that boost;)

4. Posted by MerB (Full Member, 147 posts) 28 Feb '10 11:35

Quoting Peter

Our latest member is very good at adding accommodation to the guide :)

to the content at this stage, but when you click save.. magic ensues. Aside from your edit, you will see in the history another edit by our friend the sleepBot. It will add in a list of accommodation for this location neatly in the right spot all correctly formatted.

In a table in our database, we're now keeping track of the changes being made to accommodation listings in the guide. If the last person who edited a particular property was sleepBot, then sleepBot will continue to update that property if anything changes. If the last person to edit that property was another user, then sleepBot will forever leave it alone. This is to avoid changes made by you being overridden the next time sleepBot decides to update things.

And yes, sleepBot is capable of updating any article in the guide. I've only set it loose on a handful so far to ensure that I catch bugs and fix them before any potential damage is done.

elp!

What is this SleepBot written in?

5. Posted by Herr Bert (Moderator, 1370 posts) 4 Mar '10 03:59

Is Sleepbot, sleep walking in Kuala Lumpur?

It is updating KL many times ... some testing going on?

6. Posted by Peter (Admin, 5355 posts) 4 Mar '10 04:20

Quoting Herr Bert

Is Sleepbot, sleep walking in Kuala Lumpur?

It is updating KL many times ... some testing going on?

Yeah lol.. definitely sleep walking The problems in the KL article have to do with the fact that there is another table on that page that's confusing matters. Good test-case though and obviously something that needs to be handled properly! Sorry about clogging up the edit history

@MerB, the sleepbot is written in Coldfusion, just like the rest of the site. Calling it a sleepBot helps everyone track the changes more clearly than if we just made the changes without adding them to the history.

7. Posted by Herr Bert (Moderator, 1370 posts) 4 Mar '10 05:45

sleeping in the museum, also a nice idea.

8. Posted by Utrecht (Moderator, 5537 posts) 4 Mar '10 09:32

LOL, when checking recent changes, it gives some edits indeed, but at the stats page there now are 5,700 edits this month

9. Posted by Herr Bert (Moderator, 1370 posts) 4 Mar '10 14:32

Quoting Utrecht

LOL, when checking recent changes, it gives some edits indeed, but at the stats page there now are 5,700 edits this month

Famous museums is at version 3376

10. Posted by Peter (Admin, 5355 posts) 4 Mar '10 15:34

Yeah, that's an interesting bug. Is directly related to the timeouts that were happening while editing in the guide. It was stuck in a loop making the edit over and over and over again until it crapped itself. Fixed it last night. It was related to articles without a location specified (like the museum one)

I'll try to clean up some of those logs so it makes more sense!