User talk:NaomiAmethyst/Archives/2007/October

Awwwww
Sorry! ;) -- lucasbfr talk (using User:Lucasbfr2) 08:07, 1 October 2007 (UTC)

heheh sorry but that, Callum Blizzard is my stupid mate =)- Johnny McGibbits —Preceding unsigned comment added by Johnny McGibbits (talk • contribs) 02:27, 4 October 2007 (UTC)

A Curious Question
Why is this page called TB2? Is there a TB1? . Also why can't cluebot use the normal page? Thanks. Phgao 11:33, 4 October 2007 (UTC)
 * ClueBot could use the normal page, but if it did, it would appear under "User reported" and not "Bot reported." /TB2 is where the bots are *supposed* to report.  I think it stands for Tawker Bot 2 or something like that.  -- Cobi(t 16:09, 4 October 2007 (UTC)

Vandal impersonating me
I wanted to let you know that this user you recently blocked, User talk:207.157.181.40, claimed in his request for an unblock that he was me using an IP address so he wouldn't get in trouble. I've been informed of this by User:Yankees10 and I wanted to let you know this is totally untrue. Should a checkuser be performed or something or will it just be ignored since it's obviously not me? I just don't wanna catch any heat for it, that's all. Thanks.► Chris Nelson Holla! 22:34, 4 October 2007 (UTC)
 * First, I didn't block the user. User:DerHexer did. I am not even an administrator yet.  If I were you, I would leave a note on his talk page near where he requested unblocking stating that the IP user is not you.  :)  -- Cobi(t 23:03, 4 October 2007 (UTC)


 * Oh I wasn't blocked, that IP was and since it wasn't mine I'm not blocked. My mistake though.► Chris Nelson Holla! 23:09, 4 October 2007 (UTC)

Source
I'm really sorry to make this question. By the way, can you send me the source of your bot packed in a .zip (or .rar or .tar.gz o what you want)? Because I've seen the source but it's not so clear if there are folders to create or strange name or other. I've sent you an email where you can find my email adress, sorry for the waste of time, [  F i l n i k  |  Talk!  | Discus ]  18:40, 6 October 2007 (UTC)

RfA
You appear to have recently revert a contriution i made to the Llhanishen high school page. The item was real and I would like to know why you deleted it. You appear to have recently revert a contriution i made to the Llhanishen high school page. The item was real and I would like to know why you deleted it.--Www999 21:06, 9 October 2007 (UTC)  ClueBot would like to nominate you to become an administrator. Please visit Requests for adminship to see what this process entails, and then contact ClueBot to accept or decline the nomination. A page has been created for your nomination at Requests for adminship/. If you accept the nomination, you must formally state and sign your acceptance and answer the questions on that page. Once you have answered the questions, you may post your nomination for discussion, or request that your nominator do so. ClueBot 04:48, 3 October 2007 (UTC)


 * Hey man, Best of luck on your RfA! Try not to wear out the F5 button! :) SQL(Query Me!) 08:11, 3 October 2007 (UTC)
 * Thanks :) -- Cobi(t 16:42, 3 October 2007 (UTC)


 * I hope you find the question I have just asked useful, especially in handling the comments opposing your RfA. Fiddle Faddle 20:12, 3 October 2007 (UTC)


 * Mine too! :) ~ Eliz 81 (C)  02:38, 5 October 2007 (UTC)


 * Hey there. Sorry I felt the need to oppose your RfA at this time; but don't feel disheartened even if it fails (it can still go either way right now)&mdash; what most people who oppose are saying isn't "no", it's just "not quite yet".  :-)  I'm not worried that you're evil, just that you need to get your feet a bit more wet first.  &mdash; Coren (talk) 14:50, 7 October 2007 (UTC)

Stapler
Do you have my stapler? I cannot find it, and I would love if you could recover it. —Preceding unsigned comment added by Wheresdamoneycharlie? (talk • contribs) 11:54, 9 October 2007 (UTC)
 * I think I found it. Is this it?  :)  -- Cobi(t 18:13, 9 October 2007 (UTC)

Erm?
Overwriting reverts. The bot beat me to the revert, but using TW I warned before the bot (dumb server lag). Don't know if this is a problem...  Carbon Monoxide   02:22, 10 October 2007 (UTC)
 * Yeah, this happens when the bot grabs the user's talk page, then while it parses it (<1 second), or while it is trying to post (<3 seconds) you add your warning. The bot doesn't see your edit so it essentially edit conflicts.  But the user needn't be warned twice for the same vandalism, so this is not really a problem.  -- Cobi(t 02:26, 10 October 2007 (UTC)

Happy adminship!!
I thought I'd be the first to congratulate you on adminship!! you might want to read Administrators' how-to guide, Administrators' reading list and Advice for new administrators-- Phoenix 15 17:34, 10 October 2007 (UTC)
 * While I would be happy for Cobi if the RfA did pass, I believe this is still being discussed here. Sorry they are keeping you waiting - I think you deserve a quick decision one way or the other. Ronnotel 20:24, 10 October 2007 (UTC)

Comments + Barnstar
Hi Cobi, you don't know me but I just wanted to stop by and express my disappointment on the result of your RfA. It is a true pity that you got opposed with standard arguments such as lack of experience, edit count, article writing etc. etc. It saddens me that people did not appreciate the fact that you wrote these automated ClueBots which have tens of thousands of edits and which require not only a basic understanding of policy and rules, but a precise understanding so as to be able to put them down in computer code. I am sure that in the time you wrote these bots you could have made thousands of manual edits and vandalism reverts that would make your edit counts and statistics look good but instead you preferred to build tools to benefit the community. It is not much but please accept my humble barnstar below for my appreciation of your hard work. Best regards, Kudret abi  Talk 05:39, 11 October 2007 (UTC)


 * Thanks! You have made my day. :)  -- Cobi(t 05:47, 11 October 2007 (UTC)

You know, it seemed to me that a consensus had been reached. I have never before heard of "A consensus of neutrals", and I am amazed by it. I did think that a consensus might, in an RfA actually be a vote, but it seems not. I decided long ago that I was wholly uninterested in adminship for myself - it just looks like a load of hard work with no reward - and I can't quite see why anyone would want to go through what you have just gone through.

For me the act of administering something is absolutely nothing to do with contributing to the text. The two are separate skills. Let me know if you really do choose to apply again. I'll be happy to support you if that's what you really want, but do think hard about the hassle and emotional stress that this "non election" style election will cause you. Fiddle Faddle 07:25, 11 October 2007 (UTC)

You cannot be a good administrator without understanding how this community works and how the encyclopedia is built, and you cannot understand those things without actively participating in the building of article content. If you haven't engaged in it enough to know what it's really about, you can't be trusted with any power over it. Everyking 08:38, 11 October 2007 (UTC)


 * Not sure if that was addressed to me or to Cobi. I disagree fundamentally with this statement "you cannot understand those things without actively participating in the building of article content" because it is simply a mantra, and is illogical.  It is perfectly possible to understand those things whether one has the skill to write articles (or edit them) or not.  Henry Ford's famous law suit shows that very well indeed.  It is sufficient to know where to go to get the answers one needs, or one abstains from an admin action.  Fiddle Faddle 09:05, 11 October 2007 (UTC)

Your RfA
Hi Cobi, I'm sorry to inform you that your RfA did not reach consensus. The opposers as well as the bulk of the neutrals would like to see you gain some seasoning and show more of a track record. I see little ill will expressed and feel confident that you have been shown the path to succeeding next time. Cheers, Cecropia 05:08, 11 October 2007 (UTC)
 * To Cecropia:
 * Thank you for biting the bullet and closing my RfA, albeit a day late. I am sorry you felt it had to be closed in such a manner, but I respect your decision.  I guess I need more mainspace edits, and will attempt to better my self in that area.
 * To those who supported my RfA:
 * I will be going for another RfA in two month's time, if any of you wish to nominate me, please wait until then to do so.
 * To the next admin who sees this:
 * This request was made on IRC and denied with the reason "Won't you be able to do so yourself in 2 days?". Can someone please full-protect User:ClueBot, User talk:ClueBot, User:ClueBot II, User talk:ClueBot II, User:ClueBot III, User talk:ClueBot III, User:ClueBot IV, User talk:ClueBot IV, User:ClueBot V, and User talk:ClueBot V &mdash; are just redirects or simple transcludes of pages from ClueBot Commons.  Also, move-protect User talk:ClueBot Commons and User talk:Cobi, these should never need to be moved.  -- Cobi(t 05:38, 11 October 2007 (UTC)
 * Pictogram voting keep.svg Done - sorry the RfA didn't go through this time, mate, hopefully in 2 months we'll be good to go :) Take care, ~ Riana ⁂ 11:50, 11 October 2007 (UTC)

Response to your comments on my talkpage
Hi Cobi, just wanted to address some of what you raised on my talkpage. I'm sorry you thought my comments harsh - it was certainly not my intention to be so. I watched your RfA for 7 days - I was sufficiently reluctant to oppose you that I did not even do so before the earliest time it could have been closed. But ultimately when it became obvious the crats were having difficulty establishing the consensus, I decided to venture an opinion. I do think though that my opinion that you lacked experiences across all admin areas was accurate however - indeed I would have supported had that not been the case. To start with your personal vandal fighting experience - you had reported 6 users to WP:AIV at the time of your RfA. That isn't the only element and I recognise that vandals do stop before a report is necessary or are reported by others. But, as a point of reference, vandal fighting is something I don't that do much of (I mainly just watchlist the FA of the day) and I had made 90 such reports over 4 months at the time of my RfA - those who ask for adminship on the basis of their vandal fighting experience alone usually have a good 200/300 such reports. Your Bot reports many users to AIV, but it wasn't the Bot you were proposing should be an admin. It a great piece of programming and the amount of support you received from the community as a result of it should show you how well thought of it is. Had I been able to find something more to reassure me of you wider knowledge of how to apply Wikipedia policy, I too would have supported.

The absense of participation in XfDs was disappointing - indeed seeing full participation in a dozen or so would probably have gone a long way to address my concerns. I did review your deleted edits before making my comment - you have in fact successfully tagged 5 mainspaces articles for speedy deletion (Dharmesh Shah, Tabie neylon, Bradie Joe Steele, Jake mcguiness and Mryiah), the rest of your speedy requests have been in your own userspace. As to the WP:OP work, there are a number of good members of that project who aren't admins - if you posted up a list of proxies you had identified, there would be plenty of people willing to block them. I agree that it represents a use you could make of the tools, but it doesn't help me judge your wider policy knowledge. Your mainspace work was something that could have compensated for the light experience of other areas (I don't think it should be required of all candidates), especially if it had involved you in discussion of content policies on talkpages, unfortunately it had not. I don't think admin candidates should have to have vast experience in all these areas, but I do expect significant experience in at least one. As I said at the RfA, this is something you can easily address in the next month or two and in circumstances, I think how close your RfA ended up is a credit to you. I understand that you are no doubt feeling rather disappointed and I'm sorry for the part I played in that. I hope to be able to support you next time. Yours, WjBscribe 14:46, 11 October 2007 (UTC)

You're welcome
I also had an RfA last August, which also did not succeed, also because of experience concerns. NHRHS2010 Talk  01:40, 12 October 2007 (UTC)

Re:RfA
Don't worry, I'm sure you'll be a very successful administrator before long. I'm sorry if you were left feeling down by what I voted, I really am. Just address the issues that were left on your RfA by the participants and you will be successful. Happy editing.  Lra drama 17:16, 11 October 2007 (UTC)
 * (copied from reply on my talk page) Hey Cobi! I'm really sorry the RfA wasn't successful, truly I am. I remained neutral simply because I spent a very, very long time learning things, and every day, I'm still amazed by the depth of Wikipedia's infrastructure, and I find new areas still after two+ years. Please know that I was not at all opposed, I just didn't feel I could support it 100%. I honestly have no doubt that you'd be super-awesome at AIV, but I was concerned that you needed to get a little more one-on-one time with editors, conflict resolution, that kind of thing, because once you're handing out blocks, I have a feeling you'll have a lot more conflict lol. I truly think you're a great editor, and a huge asset to the project, and I have no doubts whatsoever that in a month or two, I'll be supporting you instead of remaining neutral. And if you've ever got a question, or need an opinion on anything, and can't find anyone else online, check me, I'm on a lot! lol. Ariel  ♥  Gold  18:25, 11 October 2007 (UTC)
 * Thanks :) -- Cobi(t 18:27, 11 October 2007 (UTC)
 * Hi Cobi, I am sorry, too, that I could not support your RfA this time. I am instinctively an inclusionist.  I am learning all sorts of new things, even after 10 months and 6,600-plus edits.  I've learned that "the mop" is really not that big a deal (except for that block button, of course) and can be stressful.  Please email me, or contact me on my user page.  I sometimes take off for the weekend, when I magically appear as my sockpuppet.  In any case, make some more edits and try again in 60 days. Bearian 20:06, 11 October 2007 (UTC)

I don't like it when a candidate only vandal fights. I revert vandals occasionally as well, I just haven't been very active lately on here.  T Rex  | talk  20:07, 11 October 2007 (UTC)


 * I'll second that - c'mon let's see some article writing - what you into? There'll be something you really like that you can work to GA or (better) FA. Time is no issue to me and I dont' care about waiting X months, but I'll be there to ask or help out if you wanna (a) write something or (b) go to RfA having done so.cheers, Casliber (talk · contribs) 20:41, 11 October 2007 (UTC)


 * One way of achieving a reputation for good mainspace contributions and interaction with other editors is to find an article in a contentious area, ideally one that is heavily contested and criticised, whether you like the topic or not, and to work actively to both reduce contention and improve the article. It is not an easy road, though!  But as an academic exercise in article improvement and dispute resolution, it will showcase those skills.  Any article related to conspiracy theories is a good(!) one to work with.  Fiddle Faddle 21:08, 11 October 2007 (UTC)


 * I concur with Casliber. With some additional article-writing experience your next RfA will pass. Helping to get an article or two to GA or beyond will show the community you've got what it takes. Best of luck and thanks for the note you left on my talk page. Majoreditor 01:54, 12 October 2007 (UTC)


 * You're welcome for the support. :) Acalamari 02:57, 12 October 2007 (UTC)
 * Commiserations mate, but you know I'll be supporting again next time. Dihydrogen Monoxide (H2O) 00:37, 13 October 2007 (UTC)

User:Cobi/CBAutoedit.js
What is so special about Grand Rapids, Minnesota? – Gurch 02:14, 14 October 2007 (UTC)
 * I don't know, ask User:Kmccoy. He added that entry.  -- Cobi(t 02:52, 14 October 2007 (UTC)

This is pretty urgent
Hello, I am a Wikipedia user who was making a constructive edit to the page International Academy. I am a student at the school and was adding a list of the school's various extracurricular activities. I am wondering why I was reverted by ClueBot as I can't see how my edit was deemed as inappropriate or a form of vandalism. I would like an immediate reply as to why this is so - my username is BeggarsBanquet even though I am currently not logged in. 24.192.248.238 06:04, 14 October 2007 (UTC)
 * The error has been corrected, however, this is not the correct page to use. User:ClueBot/FalsePositives is the correct place for these kind of reports.  -- Cobi(t 06:15, 14 October 2007 (UTC)

Your RfA
Don't get disappointed. Put in just a little bit of time in the wiki namespace, such as WP:XFD, and I'll be happy to support you next time around&mdash;feel free to canvass me if I forget to vote. I've also put in protection requests for your bots' pages in the right venue here. ''' east . 718 ' at 07:19, 10/11/2007''
 * Thanks :) -- Cobi(t 07:23, 11 October 2007 (UTC)
 * Actually, VoA's RFPP archival bot seems to be on the fritz, you'll have to get in touch with an admin yourself. :(  east . 718  at 07:28, 10/11/2007
 * Ok, I figure that many administrators will read this page regarding my recent RfA and one will see it. If not, I will bug one on IRC tomorrow.  :)  -- Cobi(t 07:31, 11 October 2007 (UTC)
 * Sorry this didn't succeed Cobi. You are a truly great bot-op. Hopefully things will go the other way next time. Regards, -- Anonymous Dissident  Talk 07:56, 11 October 2007 (UTC)
 * Thanks for your support. :) -- Cobi(t 07:58, 11 October 2007 (UTC)
 * No worries :) -- Anonymous Dissident  Talk 08:06, 11 October 2007 (UTC)
 * Get some more mainspace experience, and I'm sure you'll succeed next time ;). And again, thanks for your bots! -- lucasbfr talk 10:16, 11 October 2007 (UTC)
 * I support this view, and thank you for your great work with the bot, too. Use the two months well, it isn't a long time. Imho it would be best if you would participate in a controversial article, in order to show some skills at discussion and problem solving. Then the next nom will be no problem! Good luck! Gray62 10:11, 13 October 2007 (UTC)

Sorry it didn't work out, Cobi, but get just a bit more experience with the other admin processes and I'll support next time 'round. I'm not worried about mainspace experience myself (that's my weakest area as well). &mdash; Coren (talk) 12:20, 11 October 2007 (UTC)

Your Bot
Your bot ClueBot is very nice. Do you think you could help me make one? What do I make one for? Is PHP hard to learn?  Mono bi   21:12, 14 October 2007 (UTC)
 * ClueBot Rocks man! Always beats me to the best reverts! Why is he (it) called "ClueBot? Cheers, Dfrg.msc 05:53, 15 October 2007 (UTC)
 * To Monobi:
 * Thanks! However, making a Wikipedia bot is not a simple task.  If you are asking these questions, you need to learn more and get more experience with programming languages in general before attempting to create a Wikipedia bot.  If you know more about programming than you have let on, you can get a list of requests for tasks done by bots here.  PHP is relatively easy to learn if you already know how to program, but for beginners, it will take some time.  PHP also has the most extensive documentation of almost any other programming language which can be found here.
 * To Dfrg.msc:
 * Thanks! It is called ClueBot because, as is also mentioned on its user page, it is run on the ClueNet servers  :)  -- Cobi(t 05:59, 15 October 2007 (UTC)


 * I found something I can do on WP:BOTREQ. Now how do I make the bot account?  Mono bi   00:19, 16 October 2007 (UTC)

Deleting page
Why did you revert my edits to Reggie Alexander surely it should be deleted? It is a biased view and cites no sources. Harland1 12:26, 16 October 2007 (UTC)

Thanks. -- Cobi(t 16:20, 16 October 2007 (UTC)
 * Blanking the article is not the proper way to delete an article. To delete an article, either:
 * 1) List it as a candidate for speedy deletion using templates like delete and db-nonsense (see the whole list of such templates here),
 * 2) Propose it for deletion with a template like prod, or
 * 3) List it at Articles for Deletion.
 * }

Wikibot Class :)
Hi there!

I've been messing around with a modified version of Cluebot's wikibot class (which, incidentally, is very cool) as a learning exercise, but I've run into an annoying problem, as seen here and I was wondering if you could help me, because I'm stumped :).

If you're too busy (or whatever) it's not really a big deal.

Thanks! A le_Jrb talk 18:36, 16 October 2007 (UTC)
 * I am glad you like it! I haven't really tried logging in any other way, but you can grab the post response the same way you get the data from a GET ... echoing the return of the post function.  -- Cobi(t 18:48, 16 October 2007 (UTC)
 * Ooh. I'll have a look. Thanks :). A le_Jrb talk  18:50, 16 October 2007 (UTC)
 * I'm getting an 'Invalid name' error, using the same name I use with the API, lol. Erk. At least I know now - cheers! A le_Jrb talk  18:55, 16 October 2007 (UTC)
 * It turns out that I was using the 'id' tag of the form boxes instead of the 'name' tag, and that was causing the problem. I've now crashed into the Captcha >.<. Anyway, thanks loads - you just made debugging much easier :). I'll stop spamming your talk page now... A le_Jrb talk  19:01, 16 October 2007 (UTC)
 * Heh - I was going to mention the CAPTCHA, but I hadn't ever remembered running into it (not that I had tried to log in in ages). So, I went to the login page with another client and looked at the page and didn't see a CAPTCHA so I thought maybe they removed it.  I guess the best thing you can do with a CAPTCHA is have the bot download the image, stop and ask you what the image says.  -- Cobi(t 19:04, 16 October 2007 (UTC)
 * It probably wasn't the client - it might well have been all the failed logins while I was trying to fix it. I dunno, I'll try again later. As for your idea, it wouldn't be too hard to implement I don't think, I'll have to play around with it. A le_Jrb <sup style="color:blue;">talk  19:09, 16 October 2007 (UTC)

RfA
I look forward to seeing your next nomination! I'm sorry to hear that your first nom failed, but I'm glad to see you don't seem to be taking it roughly. RfA can be a grueling process, and a lot of us don't make it until the second go (myself included). You're doing awesome work with the bot and that's something I can really respect. Best wishes from one bot op to another, and I'll be watching for round two! <b style="color:#0000FF;">ɑʀк</b><b style="color:#6060BF;">ʏɑɴ</b> 03:33, 12 October 2007 (UTC)


 * Me too. I check RfAr weekly, and I look forward to seeing your name again. Cool Hand Luke 04:59, 12 October 2007 (UTC)


 * I'll definitely be watching as well -- I was very disappointed to see that the 'crats didn't find consensus in your RfA, because there are few editors that would have as much potential as you do to make a positive difference if made an admin. When the next RfA rolls around, expect my unfettered, nigh-shameless support.  Best wishes! Ashdog137 00:34, 13 October 2007 (UTC)
 * I too am dissapointed that your RfA failed but the concerns of the opposers were correct, even though I supported you. But your bots are fantasitc! And I believe studies have shown persistent vandalism has decreased due to bots like yours (vandalism that goes unnoticed). Look forward to next RfA! 01:21, 13 October 2007 (UTC) —Preceding unsigned comment added by Phgao (talk • contribs)
 * I failed my first one too! It'll come 'round mate, if you need anything, you know where to find me. Cheers! Dfrg.msc 10:20, 13 October 2007 (UTC)
 * This essay might be helpful: User:Keegan/On administrators. Bearian 15:06, 15 October 2007 (UTC)
 * Addressing the concerns of the opposing editors is your best bet. VoL†ro/\/Force 14:11, 18 October 2007 (UTC)

Godlight javascript
I'm having problems with it rolling back. It gives me this error: Chow mein Please wait, reverting edits by Talk... Getting article history (/w/index.php?title=Chow_mein&action=history&limit=50)... Error: Last editor is 81.1.78.185, not Talk!

Any ideas? <span style="font-family:Verdana,Arial,Helvetica"> C O   16:51, 20 October 2007 (UTC)
 * Erm, it is not my javascript. I don't know why that is happening.  -- Cobi(t 19:46, 20 October 2007 (UTC)

So-called newbie
He was not a newbie, he was a VANDAL who kept altering an article wishing someone was dead. Was that not reason to complain?

I deeply resent both your intromission in this subject and your patronizing attitude in my page. Who are you to tell me what to do in that tone? Lenineleal 10:23, 22 October 2007 (UTC)
 * If he was indeed a vandal, he should have been warned with one of the uw-vandalism templates. -- Cobi(t 18:10, 22 October 2007 (UTC)

Programming question
Hey, Cobi; I've seen that fine machine you've put together and figured that you'd be the person to ask a small question to regarding Python programming. I'm designing a bot using the Pywiki framework that adds generic fair use rationales to images tagged with non-free templates, and then notifies the original author of the page. This is what I've come up with so far, and any tips would be appreciated (hopefully you can read my version of an elegant programming language =D). FURbot.py __version__ = '$Id: basic.py 3998 2007-08-07 20:28:27Z wikipedian $' import wikipedia import pagegenerators import sys import os,glob

docuReplacements = { '&params;': pagegenerators.parameterHelp } class FURbot: mysite = wikipedia.getSite if mysite.loggedInAs: wikipedia.output(u"You are logged in on %s as %s." % (repr(mysite), mysite.loggedInAs)) else: wikipedia.output(u"You are not logged in on %s." % repr(mysite)) # Edit summary message that should be used. # NOTE: Put a good description here, and add translations, if possible! msg = { 'en': u'Adding generic fair use rationale to image (BOT)', }   def __init__(self, generator, debug): """       Constructor. Parameters:            * generator - The page generator that determines on which pages                          to work on.            * debug     - If True, doesn't do any real changes, but only shows                          what would have been changed.        """ self.generator = generator self.debug = debug
 * 1) This is required for the text that is shown when you run this script
 * 2) with the parameter -help.

def run(self): # Set the edit summary message wikipedia.setAction(wikipedia.translate(wikipedia.getSite, self.msg)) for page in self.generator: self.treat(page)

def imgsize (self, page): a=glob.glob('c:\\*')[0] if a >= '25000 bytes': lres= Yes else: lres= No   def treat (self, page): """       Loads the given page, does some changes, and saves it.        """ try: # Load the page text = page.get except wikipedia.NoPage: wikipedia.output(u"Page %s does not exist; skipping." % page.aslink) return except wikipedia.IsRedirectPage: wikipedia.output(u"Page %s is a redirect; skipping." % page.aslink) return except wikipedia.LockedPage: wikipedia.output(u"Page %s is locked; skipping." % page.aslink) return # If you find out that you do not want to edit this page, just return. # Adds generic rationale to image page text = ''

# only save if something was changed if text != page.get: # Show the title of the page we're working on. # Highlight the title in purple. wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % page.title) # show what was changed wikipedia.showDiff(page.get, text) if not self.debug: choice = wikipedia.inputChoice(u'Do you want to accept these changes?', ['Yes', 'No'], ['y', 'N'], 'N') if choice == 'y': try: # Save the page page.put(text) except wikipedia.EditConflict: wikipedia.output(u'Skipping %s because of edit conflict' % (page.title)) except wikipedia.SpamfilterError, error: wikipedia.output(u'Cannot change %s because of spam blacklist entry %s' % (page.title, error.url)) def notify (self, page): """       Notifies user on their user talk page about the addition        of a fair use rationale to one of their images.        """ try: text= text + "page.get('Revision history of %s')" except wikipedia.LockedPage: wikipedia.output(u"Page %s is locked; skipping." % page.aslink) return msg= u'Notifying user about addition of partial fair use rationale added to their image (BOT)' text = '' # only save if something was changed if text != page.get: # Show the title of the page we're working on. # Highlight the title in purple. wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % page.title) # show what was changed wikipedia.showDiff(page.get, text) if not self.debug: choice = wikipedia.inputChoice(u'Do you want to accept these changes?', ['Yes', 'No'], ['y', 'N'], 'N') if choice == 'y': try: # Save the page page.put(text) except wikipedia.EditConflict: wikipedia.output(u'Skipping %s because of edit conflict' % (page.title)) except wikipedia.SpamfilterError, error: wikipedia.output(u'Cannot change %s because of spam blacklist entry %s' % (page.title, error.url)) def main: # This factory is responsible for processing command line arguments # that are also used by other scripts and that determine on which pages # to work on. genFactory = pagegenerators.GeneratorFactory # The generator gives the pages that should be worked upon. gen = "linkedpages('Template:Non-free logo')" # This temporary array is used to read the page title if one single # page to work on is specified by the arguments. pageTitleParts = [] # If debug is True, doesn't do any real changes, but only show # what would have been changed. debug = False

# Parse command line arguments for arg in wikipedia.handleArgs: if arg.startswith("-debug"): debug = True else: # check if a standard argument like # -start:XYZ or -ref:Asdf was given. generator = genFactory.handleArg(arg) if generator: gen = generator else: pageTitleParts.append(arg) if arg.startswith("-pt"): pt= 15 if arg.startswith("-transcludes"): page='Image: %s' if pageTitleParts != []: # We will only work on a single page. pageTitle = ' '.join(pageTitleParts) page = wikipedia.Page(wikipedia.getSite, pageTitle) gen = iter([page])

if gen: # The preloading generator is responsible for downloading multiple # pages from the wiki simultaneously. gen = pagegenerators.PreloadingGenerator(gen) bot = FURbot(gen, debug) bot.run else: wikipedia.showHelp

if __name__ == "__main__": try: main finally: wikipedia.stopme Cheers, ( ar  ky  ) 22:52, 22 October 2007 (UTC)

Cluebot Source
Hi, Would you mind if you borrowed the source for cluebot to work on creating my own bot? I am a PHP developer but I don't have a clue about how bots for wikipedia work. I will of course credit you when I am done. Thanks Doyley <strong style="color:#fff;background:#000;padding:0 4px">Talk  20:40, 25 October 2007 (UTC)
 * Yes, you may. The part you will find most useful, however, is the wikibot.classes.php.  It contains a class for interacting with Wikipedia.  Everything else uses that class.  The source is here.  -- Cobi(t 20:42, 25 October 2007 (UTC)
 * Excellent, thank you very much. Is the structure for the database knocking about anywhere?  Doyley <strong style="color:#fff;background:#000;padding:0 4px">Talk  20:53, 25 October 2007 (UTC)
 * It isn't. I could give it to you, but it has nothing to do with the classes, just logging for ClueBot.  And it should be easy enough to derive which fields are in it from reading the SQL statements.  -- Cobi(t 21:01, 25 October 2007 (UTC)
 * Yeah I was just being lazy lol. Thanks Cobi!!!  Doyley <strong style="color:#fff;background:#000;padding:0 4px">Talk  21:29, 25 October 2007 (UTC)

Programming question

 * Revived from archives

Hey, Cobi; I've seen that fine machine you've put together and figured that you'd be the person to ask a small question to regarding Python programming. I'm designing a bot using the Pywiki framework that adds generic fair use rationales to images tagged with non-free templates, and then notifies the original author of the page. This is what I've come up with so far, and any tips would be appreciated (hopefully you can read my version of an elegant programming language =D). FURbot.py __version__ = '$Id: basic.py 3998 2007-08-07 20:28:27Z wikipedian $' import wikipedia import pagegenerators import sys import os,glob

docuReplacements = { '&params;': pagegenerators.parameterHelp } class FURbot: mysite = wikipedia.getSite if mysite.loggedInAs: wikipedia.output(u"You are logged in on %s as %s." % (repr(mysite), mysite.loggedInAs)) else: wikipedia.output(u"You are not logged in on %s." % repr(mysite)) # Edit summary message that should be used. # NOTE: Put a good description here, and add translations, if possible! msg = { 'en': u'Adding generic fair use rationale to image (BOT)', }   def __init__(self, generator, debug): """       Constructor. Parameters:            * generator - The page generator that determines on which pages                          to work on.            * debug     - If True, doesn't do any real changes, but only shows                          what would have been changed.        """ self.generator = generator self.debug = debug
 * 1) This is required for the text that is shown when you run this script
 * 2) with the parameter -help.

def run(self): # Set the edit summary message wikipedia.setAction(wikipedia.translate(wikipedia.getSite, self.msg)) for page in self.generator: self.treat(page)

def imgsize (self, page): a=glob.glob('c:\\*')[0] if a >= '25000 bytes': lres= Yes else: lres= No   def treat (self, page): """       Loads the given page, does some changes, and saves it.        """ try: # Load the page text = page.get except wikipedia.NoPage: wikipedia.output(u"Page %s does not exist; skipping." % page.aslink) return except wikipedia.IsRedirectPage: wikipedia.output(u"Page %s is a redirect; skipping." % page.aslink) return except wikipedia.LockedPage: wikipedia.output(u"Page %s is locked; skipping." % page.aslink) return # If you find out that you do not want to edit this page, just return. # Adds generic rationale to image page text = ''

# only save if something was changed if text != page.get: # Show the title of the page we're working on. # Highlight the title in purple. wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % page.title) # show what was changed wikipedia.showDiff(page.get, text) if not self.debug: choice = wikipedia.inputChoice(u'Do you want to accept these changes?', ['Yes', 'No'], ['y', 'N'], 'N') if choice == 'y': try: # Save the page page.put(text) except wikipedia.EditConflict: wikipedia.output(u'Skipping %s because of edit conflict' % (page.title)) except wikipedia.SpamfilterError, error: wikipedia.output(u'Cannot change %s because of spam blacklist entry %s' % (page.title, error.url)) def notify (self, page): """       Notifies user on their user talk page about the addition        of a fair use rationale to one of their images.        """ try: text= text + "page.get('Revision history of %s')" except wikipedia.LockedPage: wikipedia.output(u"Page %s is locked; skipping." % page.aslink) return msg= u'Notifying user about addition of partial fair use rationale added to their image (BOT)' text = '' # only save if something was changed if text != page.get: # Show the title of the page we're working on. # Highlight the title in purple. wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % page.title) # show what was changed wikipedia.showDiff(page.get, text) if not self.debug: choice = wikipedia.inputChoice(u'Do you want to accept these changes?', ['Yes', 'No'], ['y', 'N'], 'N') if choice == 'y': try: # Save the page page.put(text) except wikipedia.EditConflict: wikipedia.output(u'Skipping %s because of edit conflict' % (page.title)) except wikipedia.SpamfilterError, error: wikipedia.output(u'Cannot change %s because of spam blacklist entry %s' % (page.title, error.url)) def main: # This factory is responsible for processing command line arguments # that are also used by other scripts and that determine on which pages # to work on. genFactory = pagegenerators.GeneratorFactory # The generator gives the pages that should be worked upon. gen = "linkedpages('Template:Non-free logo')" # This temporary array is used to read the page title if one single # page to work on is specified by the arguments. pageTitleParts = [] # If debug is True, doesn't do any real changes, but only show # what would have been changed. debug = False

# Parse command line arguments for arg in wikipedia.handleArgs: if arg.startswith("-debug"): debug = True else: # check if a standard argument like # -start:XYZ or -ref:Asdf was given. generator = genFactory.handleArg(arg) if generator: gen = generator else: pageTitleParts.append(arg) if arg.startswith("-pt"): pt= 15 if arg.startswith("-transcludes"): page='Image: %s' if pageTitleParts != []: # We will only work on a single page. pageTitle = ' '.join(pageTitleParts) page = wikipedia.Page(wikipedia.getSite, pageTitle) gen = iter([page])

if gen: # The preloading generator is responsible for downloading multiple # pages from the wiki simultaneously. gen = pagegenerators.PreloadingGenerator(gen) bot = FURbot(gen, debug) bot.run else: wikipedia.showHelp

if __name__ == "__main__": try: main finally: wikipedia.stopme Cheers, ( ar  ky  ) 00:50, 26 October 2007 (UTC)
 * Sorry I meant to reply sooner, I had a reply typed out, but hit preview and never actually saved it. I don't know much about Python, but what I do know, it seems to be good.  Sorry I can't help you more.  -- Cobi(t 01:46, 26 October 2007 (UTC)
 * [[Image:Face-grin.svg|25px]] No problem. Thanks anyway, Cobi! Happy editing, ( ar  ky  ) 02:14, 26 October 2007 (UTC)

Nice Userpage!
I especially like the rfa bit! --  Chris   G  10:08, 26 October 2007 (UTC)
 * Thanks :) -- Cobi(t 17:54, 26 October 2007 (UTC)

Thanks
Thanks for reverting the vandalism to my page. --Nlu (talk) 17:30, 27 October 2007 (UTC)