Jump to content

User talk:JamesR/TalkArchive/2014/September

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia


Orphaned non-free image File:CalamvaleCC Logo.jpg

⚠

Thanks for uploading File:CalamvaleCC Logo.jpg. The image description page currently specifies that the image is non-free and may only be used on Wikipedia under a claim of fair use. However, the image is currently not used in any articles on Wikipedia. If the image was previously in an article, please go to the article and see why it was removed. You may add it back if you think that that will be useful. However, please note that images for which a replacement could be created are not acceptable for use on Wikipedia (see our policy for non-free media).

Note that any non-free images not used in any articles will be deleted after seven days, as described in the criteria for speedy deletion. Thank you. Stefan2 (talk) 21:20, 3 September 2014 (UTC)

HBC AIV helperbot SSL problems

Hello. I was just reading Wikipedia:Bots/Requests_for_approval/HBC_AIV_helperbot12 and I was wondering if you knew where I could see the current version of the source code. I may be able to solve the login issue and generally fix it up. I wrote it originally but I think others have changed it since. Chillum 07:35, 9 September 2014 (UTC)

Hey mate, I've dropped the current source I'm running here so you can take a look. Basically, we can't keep the bot instance running for a few hours otherwise it stops editing, therefore I currently have a cronjob to stop and restart the process every half hour. I tried (with my minor perl knowledge) to fix it up however nothing ever seemed to work. Not sure if we needed to adjust MediaWiki.pm again either. Nice to see you around, drop us a line if you need anything :) — JamesR (talk) 11:39, 9 September 2014 (UTC)

When it losses its session does it stop editing or does it edit logged out? I am pretty sure it is because the mediawiki module predates the API, I will likely do a rewrite to use the API. Chillum 18:53, 9 September 2014 (UTC)

The bot will cease to edit altogether. — JamesR (talk) 19:04, 9 September 2014 (UTC)

I will turn this ED-209 into a functional Robocop. Chillum 19:09, 9 September 2014 (UTC)

Merci. Good luck :) — JamesR (talk) 19:11, 9 September 2014 (UTC)

I found the API has an assert=bot parameter that allows me to tell the server to reject an edit if I am not logged in as a bot. I am detecting the error it gives and logging in again. I want to re-test all of the features first because I have updated a lot of the code to get rid of the need for the old MediaWiki module. But once I am confident in it I will try running it for a few days straight to see if the login issue is solved.

If all goes well we can all upgrade. Chillum 18:00, 10 September 2014 (UTC)

@Chillum: Great stuff mate, I've just noticed my instance wasn't running for a few days due to a file permission issue - that's fixed now. Also, I have noticed the bot may no longer need to watch Wikipedia:Usernames for administrator attention/Bot as it seems another bot is managing removal of blocked users. I'm not sure when that came into effect, however the bot is now reporting:
Could not find parameter string, not doing anything: Wikipedia:Usernames for administrator attention/Bot
What do you think? — JamesR (talk) 10:43, 14 September 2014 (UTC)

I noticed that too. I am not sure if the other bot was put there to handle features HBCbot does not or if it was just put there during an outage. I am just leaving the page commented out for now. I suppose the talk page could clarify.

The good news is I think I have solved the log out problem. Now if it attempts to edit while logged out it fails due the the assert=bot flag on the write request. If it fails it should show something like:

Got 'assertbotfailed', not logged in. Logging back in, result: 1

At which point it will repeat the write logged back in. I want to do a final round of code cleanup and testing before I release the new code and recommend upgrades but that should just be a few days.

Afterwards I want to add some new features such as removing reports of users who do not exist. Chillum Need help? Type {{ping|Chillum}} 15:36, 14 September 2014 (UTC)

Sounds great. Thanks for all of your hard work! — JamesR (talk) 21:42, 14 September 2014 (UTC)