Wikia

Harry Potter Wiki

DarkJedi613 bot

8,847 Edits since joining this wiki
October 8, 2007
(Difference between revisions) | User talk:DarkJedi613 bot
m (harrypotter_family.py: Fix mistake)
 
Line 1: Line 1:
 
{| style="float: right;" id="userboxes"
 
{| style="float: right;" id="userboxes"
|-
 
 
| {{User bot|DarkJedi613}}
 
| {{User bot|DarkJedi613}}
 
|-
 
|-
Line 24: Line 23:
 
{{quote|Think of it as a House-elf that can clean up all the little things (or even big things) in the wiki.|[[User:Cavalier One|Cavalier One]]}}
 
{{quote|Think of it as a House-elf that can clean up all the little things (or even big things) in the wiki.|[[User:Cavalier One|Cavalier One]]}}
   
'''[[User:DarkJedi613 bot]]''' is a [[wikipedia:Wikipedia:Bot|Bot]] (read: automated user) controlled (hopefully) by [[User:DarkJedi613|DarkJedi613]] to perform mundane tasks on [[Harry Potter Wiki]]. He does automated tasks such as moving a categories to a new name, or changing all references to the Sorcerer's Stone to Philosopher's Stone, or other maintenance tasks across the wiki. He is powered by the [[wikipedia:User:Sikon/Pywikipedia|Pywikipedia bot framework]]. Please use [[User talk:DarkJedi613 bot|this talk page]] if you have an questions/comments/requests. Thanks!
+
'''[[User:DarkJedi613 bot]]''' is a [[wikipedia:Wikipedia:Bot|Bot]] (read: automated user) controlled (hopefully) by [[User:DarkJedi613|DarkJedi613]] to perform mundane tasks on [[Harry Potter Wiki:About|Harry Potter Wiki]]. He does automated tasks such as moving a categories to a new name, or changing all references to the Sorcerer's Stone to Philosopher's Stone, or other maintenance tasks across the wiki. He is powered by the [[wikipedia:User:Sikon/Pywikipedia|Pywikipedia bot framework]]. Please use [[User talk:DarkJedi613 bot|this talk page]] if you have an questions/comments/requests. Thanks!
   
 
See his [[Special:Contributions/DarkJedi613 bot|recent edits]].
 
See his [[Special:Contributions/DarkJedi613 bot|recent edits]].

Latest revision as of 16:25, March 2, 2010

bot This user is a Bot controlled by DarkJedi613
on Current Status
"Think of it as a House-elf that can clean up all the little things (or even big things) in the wiki."
Cavalier One

User:DarkJedi613 bot is a Bot (read: automated user) controlled (hopefully) by DarkJedi613 to perform mundane tasks on Harry Potter Wiki. He does automated tasks such as moving a categories to a new name, or changing all references to the Sorcerer's Stone to Philosopher's Stone, or other maintenance tasks across the wiki. He is powered by the Pywikipedia bot framework. Please use this talk page if you have an questions/comments/requests. Thanks!

See his recent edits.

TasksEdit

CurrentEdit

  • Misspellings
    • née --> neé
      • replace.py -start:! -always neé née
    • British spellings
      • replace.py -start:! -always "Sibyll Trelawney" "Sybill Trelawney"
      • replace.py -start:! -always -excepttitle:"Minister for Magic" "Minister of Magic" "Minister for Magic"
      • replace.py -start:! -always "Defense Against the Dark Arts" "Defence Against the Dark Arts"
      • replace.py -start:! -always -excepttitle:"Harry Potter and the Philosopher's Stone" -excepttitle:"Harry Potter and the Philosopher's Stone (video game)" -excepttitle:"Harry Potter and the Philosopher's Stone (film)" -excepttitle:"J. K. Rowling" -excepttitle:"Mary GrandPré" -excepttitle:"Scholastic" -excepttitle:1998 -excepttitle:"Harry Potter books" -excepttitle:"Harry Potter series" -excepttitle:"Philosopher's Stone" -excepttitle:"Ripper" "Sorcerer's Stone" "Philosopher's Stone"
  • Enforce policy
    • Layout
      • replace.py -start:! -always -nocase -regex "== ?(In the real world|Trivia|Behind the Scenes) ?==" "==Behind the scenes=="
      • replace.py -start:! -always -regex "(={1,7}) +(.+) +\1" "\1\2\1"
      • replace.py -start:! -always -regex "([\s\S]*){{(FA|fa)}}([\s\S]*)" "{{FA}}\n\1\3"
      • replace.py -start:! -always -regex "(<small>)?<references ?/>(</small>)?" "{{reflist}}"
    • replace.py -start:! -always -nocase -regex "=+ *References *=+" "==Notes and references=="
    • replace.py -start:! -always -nocase -regex "== ?History ?==" "==Biography=="

FutureEdit

  • "Correct" American spellings
    • Bertie Bott's Every Flavour Beans
  • Second Battle of Hogwarts --> Battle of Hogwarts

OldEdit

Bot SettingsEdit

First off make sure the bot's account preferences are set to use MonoBook as a skin.

user-config.pyEdit

Place in pywikipedia

#pywikipedia bot settings
import os, re
family = 'harrypotter'
mylang = 'en'
usernames['harrypotter']['en'] = u'DarkJedi613 bot'
minthrottle = 1
maxthrottle = 4
put_throttle = 4
noisysleep = 2.0

#General Settings
#Do not ring bell on expected input
ring_bell = False

wikipedia.pyEdit

Should already be placed in pywikipedia (Originally seen at Memory Alpha Bots)

  1. Find:
return self._putPage(newtext, comment, watchArticle, minorEdit,
  1. Directly above that line insert the following (make sure the indention is the same as the return line you found):
        # This is a fix to make the bot work properly with the behaviour of Wikia's [[Special:Export]]
        # which adds a "credit line" to the XML dump:
        # 
        # ATT: This assumes that this id is NOT used in the article text itself!
        newtext = re.sub(r'\<div id=\"wikia-credits\"\>.*\<\/div\>','',newtext)
        comment = comment+' !!wikia-credits fix!!'

harrypotter_family.pyEdit

Placed in pywikipedia/families

# -*- coding: utf-8  -*-
import family
	
class Family(family.Family):
	def __init__(self):
		family.Family.__init__(self)
		self.name = 'harrypotter' #Set the family name; this should be the same as in the filename.
	
		self.langs = {  # All available languages are listed here.
			'en': None, # Because the hostname is the same for all languages,
						# we don't specify it here, but below in the hostname()
						# function.
			}
	
		# Most namespaces are inherited from family.Family.
		self.namespaces[4] = {
			'_default': u'Harry Potter Wiki',
		}
		self.namespaces[5] = {
			'_default': u'Harry Potter Wiki talk',
		}
		self.namespaces[110] = {
			'_default': u'Forum',
		}
		self.namespaces[111] = {
			'_default': u'Forum talk',
		}
		self.namespaces[400] = {
			'_default': u'Video',
		}
		self.namespaces[401] = {
			'_default': u'Video talk',
		}
		self.namespaces[500] = {
			'_default': u'User blog',
		}
		self.namespaces[501] = {
			'_default': u'User blog comment',
		}
		self.namespaces[502] = {
			'_default': u'Blog',
		}
		self.namespaces[503] = {
			'_default': u'Blog talk',
		}

		# A few selected big languages for things that we do not want to loop over
		# all languages. This is only needed by the titletranslate.py module, so
		# if you carefully avoid the options, you could get away without these
		# for another wiki family.
		#self.languages_by_size = ['en'] # Not very important
		self.biglangs = ['en'] # Not very important

	def hostname(self,code):
		return 'harrypotter.wikia.com' # The same for all languages

	def scriptpath(self, code):
		return '/'
			#The relative path of index.php, api.php : look at your wiki address. 
			# This line may need to be changed to /wiki or /w, 
			# depending on the folder where your mediawiki program is located.

	def version(self, code):
		return "1.14.1"

AwardsEdit

Merlin Bronze Order of Merlin (Third Class)
The Order of Merlin is awarded to you by Freakatone for having over one-thousand edits on the Harry Potter Wiki.

Around Wikia's network

Random Wiki