Memory Alpha
Memory Alpha
m (formatting, + link(s))
(bot not approved yet)
(29 intermediate revisions by 9 users not shown)
Line 1: Line 1:
  +
{{shortcut|MA:BOT}}
 
{{ma nav|Policies and guidelines}}
 
{{ma nav|Policies and guidelines}}
 
{{policy}}
 
{{policy}}
In Memory Alpha, '''bots''' are used from time to time, to solve minor tasks that can be done in automation by others than real users. To the outside, a bot looks like a normal user, but they have a special bot flag so they can become invisible when looking at the [[Help:recent changes|recent changes]].
+
On Memory Alpha, '''bots''' are used from time to time to do minor tasks via automation. To the outside, a bot looks like a normal user, but they have a special bot flag so they can become invisible when looking at the [[Help:recent changes|recent changes]].
   
 
== Bot policy ==
 
== Bot policy ==
 
* Every bot needs a user page
 
* Every bot needs a user page
* On the page the bot's tasks must be explained
+
* On this user page the bot's tasks must be explained
 
* The page must contain a link to the controller
 
* The page must contain a link to the controller
 
* Bots shall not be used just because the controller doesn't want to do the edits
 
* Bots shall not be used just because the controller doesn't want to do the edits
Line 14: Line 15:
   
 
=== Taking care of broken XML export ===
 
=== Taking care of broken XML export ===
Bots using [[Special: Export]] to grab the wikicode of an article '''must''' check for and remove a "credit line" added to the end of the code by Wikia. Currently, the text of this credit line is:
+
Bots using [[Special:Export]] to grab the wikicode of an article '''must''' check for and remove a "credit line" added to the end of the code by Wikia. Currently, the text of this credit line is:
   
 
:<nowiki><div id="wikia-credits"><br /><br /><small>From [http://memory-alpha.org Memory Alpha], a [http://www.wikia.com Wikia] wiki.</small></div></nowiki>
 
:<nowiki><div id="wikia-credits"><br /><br /><small>From [http://memory-alpha.org Memory Alpha], a [http://www.wikia.com Wikia] wiki.</small></div></nowiki>
Line 20: Line 21:
 
For the Python Wikipediabot, a possible fix would be to change the file '''wikipedia.py''' as detailed below:
 
For the Python Wikipediabot, a possible fix would be to change the file '''wikipedia.py''' as detailed below:
   
#The method this fix needs to be added to is '''put''', which can be identified by searching for this line:<br/>''def put(self, newtext, comment=None, watchArticle = None, minorEdit = True):''
+
#The method this fix needs to be added to is '''put''', which can be identified by searching for this line:<br />''def put(self, newtext, comment=None, watchArticle = None, minorEdit = True):''
#Find the end of this method by scrolling down to the line which reads:<br/>''return self.putPage(newtext, comment, watchArticle, minorEdit, newPage, self.site().getToken(sysop = sysop), sysop = sysop)''
+
#Find the end of this method by scrolling down to the line which reads:<br />''return self.putPage(newtext, comment, watchArticle, minorEdit, newPage, self.site().getToken(sysop = sysop), sysop = sysop)''
 
#Directly before that line, insert the following block of code (''Attention'': Make sure each line has the same indentation as the one starting with "''return''"):
 
#Directly before that line, insert the following block of code (''Attention'': Make sure each line has the same indentation as the one starting with "''return''"):
   
Line 27: Line 28:
 
# This is a fix to make the bot work properly with the behavior of Wikia's [[Special:Export]]
 
# This is a fix to make the bot work properly with the behavior of Wikia's [[Special:Export]]
 
# which adds a "credit line" to the XML dump:
 
# which adds a "credit line" to the XML dump:
  +
#
# <div id="wikia-credits">SOME CREDITS HERE</div>
 
 
# ATT: This assumes that this id is NOT used in the article text itself!
 
# ATT: This assumes that this id is NOT used in the article text itself!
 
newtext = re.sub(r'\<div id=\"wikia-credits\"\>.*\<\/div\>','',newtext)
 
newtext = re.sub(r'\<div id=\"wikia-credits\"\>.*\<\/div\>','',newtext)
Line 33: Line 34:
 
</pre>
 
</pre>
   
== Bots currently active on Memory Alpha ==
+
== Bots on Memory Alpha ==
 
===Active===
* [[User:Morn|Morn]] was the first bot used in Memory Alpha and is controlled by [[User:Kobi|Kobi]]. Morn's main task is setting interwiki links between the episode pages. It is based on the [http://sourceforge.net/projects/pywikipediabot/ Python Wikipediabot framework].
 
  +
==== SulfBot ====
* [[User:DataMA|DataMA]] started as a development bot and now assists Morn in detecting interwiki links. In MA/de it is now used as a categorization bot. Errors may be reported to [[User talk:Florian K|Florian]].
 
  +
*User page: [[User:SulfBot|SulfBot]]
* [[User:HighwindBot|HighwindBot]] is primarily used for various cleanup tasks, but is also used to support the other bots if requested. Is controlled by [[User:Cid Highwind|Cid Highwind]].
 
  +
*Controlled by: [[User:Sulfur|sulfur]]
* [[User:DelBeccio-bot|DelBeccio-bot]] is primarily used for various cleanup tasks, such as correcting redirects and (re)categorizing pages. Is controlled by [[User:gvsualan|Alan Del Beccio]].
 
  +
*Status: Active
* [[User:DYKBot|DYKBot]] was a proposed method of maintaining the "Did You Know" section of the main page. Now, it does various seemingly unrelated things, which are, in reality, part of a complicated master plan. It is controlled by [[User:Bp|Bp]], except in Soviet Russia where it is the other way around.
 
  +
*[[Special:Contributions/SulfBot|Contributions]]: link cleanup, random odd tasks here and there
* [[User:MantiBot|MantiBot]] is controlled by [[User:Manticore|Manticore]] and is used to fix double redirects on various Wikia wikis. It uses Pywikipedia.
 
  +
*Notes: Pywikipedia based, used for cleanup tasks primarily.
   
  +
===Inactive===
==Recent bot edits==
 
  +
==== DataMA ====
:''Note: The "last changes" list shows recent edits by each bot, omitting pages that have subsequently been revised by another user.''
 
=== DataMA ===
 
 
*User page: [[User:DataMA|DataMA]]
 
*User page: [[User:DataMA|DataMA]]
 
*Controlled by: [[User:Florian K|Florian K]]
 
*Controlled by: [[User:Florian K|Florian K]]
  +
*Status: Inactive on MA/en
*Task: Development system
 
  +
*[[Special:Contributions/DataMA|Contributions]]: Development system
*Last changes by this bot:<dpl>
 
 
*Notes: Started as a development bot and now assists Morn in detecting interwiki links. In MA/de it is now used as a categorization bot.
lastmodifiedby=DataMA
 
 
==== DelBeccio-bot ====
count=5
 
ordermethod=lastedit
 
order=descending
 
addeditdate=true
 
mode=ordered
 
</dpl>
 
 
=== DelBeccio-bot ===
 
 
*User page: [[User:DelBeccio-bot|DelBeccio-bot]]
 
*User page: [[User:DelBeccio-bot|DelBeccio-bot]]
 
*Controlled by: [[User:gvsualan|Alan Del Beccio]]
 
*Controlled by: [[User:gvsualan|Alan Del Beccio]]
  +
*Status: Inactive
*Task: Maintenance/cleanup
 
  +
*[[Special:Contributions/DelBeccio-bot|Contributions]]: Maintenance/cleanup
*Last changes by this bot:<dpl>
 
 
*Notes: Primarily used for various cleanup tasks, such as correcting redirects and (re)categorizing pages.
lastmodifiedby=DelBeccio-bot
 
count=5
 
ordermethod=lastedit
 
order=descending
 
addeditdate=true
 
mode=ordered
 
</dpl>
 
   
=== DYKBot ===
+
==== DYKBot ====
 
*User page: [[User:DYKBot|DYKBot]]
 
*User page: [[User:DYKBot|DYKBot]]
 
*Controlled by: [[User:Bp|Bp]]
 
*Controlled by: [[User:Bp|Bp]]
  +
*Status: Inactive
*Task: Maintenance, [[Memory Alpha:Episode data project|episode data]], [[Template:PicOfTheDay|picure of the day synchronization]], [[MA:IRC|IRC]], various other evil schemes
+
*[[Special:Contributions/DYKBot|Contributions]]: Maintenance, [[Memory Alpha:Episode data project|episode data]], [[Template:PicOfTheDay|picture of the day synchronization]], [[MA:IRC|IRC]], various other evil schemes
*Last changes by this bot:<dpl>
 
 
*Notes: Was a proposed method of maintaining the "Did You Know" section of the main page. Now, it does various seemingly unrelated things, which are, in reality, part of a complicated master plan. It is controlled by [[User:Bp|Bp]], except in Soviet Russia where it is the other way around.
lastmodifiedby=DYKBot
 
count=5
 
ordermethod=lastedit
 
order=descending
 
addeditdate=true
 
mode=ordered
 
</dpl>
 
   
=== HighwindBot ===
+
==== HighwindBot ====
 
*User page: [[User:HighwindBot|HighwindBot]]
 
*User page: [[User:HighwindBot|HighwindBot]]
 
*Controlled by: [[User:Cid Highwind|Cid Highwind]]
 
*Controlled by: [[User:Cid Highwind|Cid Highwind]]
  +
*Status: Inactive
*Task: Maintenance/cleanup
 
  +
*[[Special:Contributions/HighwindBot|Contributions]]: Maintenance/cleanup
*Last changes by this bot:<dpl>
 
 
*Notes: Primarily used for various cleanup tasks, but is also used to support the other bots if requested.
lastmodifiedby=HighwindBot
 
count=5
 
ordermethod=lastedit
 
order=descending
 
addeditdate=true
 
mode=ordered
 
</dpl>
 
   
=== Morn ===
+
==== MantiBot ====
  +
*User page: [[User:MantiBot|MantiBot]]
  +
*Controlled by: [[User:Manticore|Manticore]]
  +
*Status: Inactive
  +
*[[Special:Contributions/MantiBot|Contributions]]: Used to fix double redirects on various Wikia wikis.
  +
*Notes: It uses Pywikipedia.
  +
  +
==== Morn ====
 
*User page: [[User:Morn|Morn]]
 
*User page: [[User:Morn|Morn]]
 
*Controlled by: [[User:Kobi|Kobi]]
 
*Controlled by: [[User:Kobi|Kobi]]
  +
*Status: Inactive
*Task: Interwiki links
 
  +
*[[Special:Contributions/Morn|Contributions]]: [[Help:Interwiki|Interwiki links]]
*Last changes by this bot:<dpl>
 
 
*Notes: The first bot used on Memory Alpha. It is based on the [http://sourceforge.net/projects/pywikipediabot/ Python Wikipediabot framework].
lastmodifiedby=Morn
 
  +
count=5
 
  +
==== PlasmarelaisBot ====
ordermethod=lastedit
 
  +
*User page: [[User:PlasmarelaisBot|PlasmarelaisBot]]
order=descending
 
  +
*Controlled by: [[User:Plasmarelais|Plasmarelais]]
addeditdate=true
 
  +
*Status: Inactive
mode=ordered
 
  +
*[[Special:Contributions/PlasmarelaisBot|Contributions]]: [[Help:Interwiki|Interwiki links]]
</dpl>
 
  +
*Notes: It uses Pywikipedia framework.
   
 
==External links==
 
==External links==
 
* {{Wikipedia|Bots}}
 
* {{Wikipedia|Bots}}
* [[m:Using the python wikipediabot|Using the python wikipediabot]] at [[m:|Meta]]
+
* [[m:Pywikipediabot|Using the python wikipediabot]] at [[m:|Meta]]
 
* [http://sourceforge.net/projects/pywikipediabot/ PyWikipediaBot] at [http://www.sourceforge.net SourceForge.net]
 
* [http://sourceforge.net/projects/pywikipediabot/ PyWikipediaBot] at [http://www.sourceforge.net SourceForge.net]
   

Revision as of 16:48, 9 August 2014

Shortcut:
MA:BOT
Memory Alpha
This page describes one of Memory Alpha's policies and guidelines.
Please read through the policy below to familiarize yourself with our common practices and rules.
If you have any questions, suggestions, or complaints, please post them on the talk page.

On Memory Alpha, bots are used from time to time to do minor tasks via automation. To the outside, a bot looks like a normal user, but they have a special bot flag so they can become invisible when looking at the recent changes.

Bot policy

  • Every bot needs a user page
  • On this user page the bot's tasks must be explained
  • The page must contain a link to the controller
  • Bots shall not be used just because the controller doesn't want to do the edits
  • At first the bot shall only be used in a limited way, so the controller and other users get used to its behavior
  • All bots must be listed on this page and their activity can be questioned by other users

Leave messages for bots on the bot requests page.

Taking care of broken XML export

Bots using Special:Export to grab the wikicode of an article must check for and remove a "credit line" added to the end of the code by Wikia. Currently, the text of this credit line is:

<div id="wikia-credits"><br /><br /><small>From [http://memory-alpha.org Memory Alpha], a [http://www.wikia.com Wikia] wiki.</small></div>

For the Python Wikipediabot, a possible fix would be to change the file wikipedia.py as detailed below:

  1. The method this fix needs to be added to is put, which can be identified by searching for this line:
    def put(self, newtext, comment=None, watchArticle = None, minorEdit = True):
  2. Find the end of this method by scrolling down to the line which reads:
    return self.putPage(newtext, comment, watchArticle, minorEdit, newPage, self.site().getToken(sysop = sysop), sysop = sysop)
  3. Directly before that line, insert the following block of code (Attention: Make sure each line has the same indentation as the one starting with "return"):
 # This is a fix to make the bot work properly with the behavior 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!!'

Bots on Memory Alpha

Active

SulfBot

  • User page: SulfBot
  • Controlled by: sulfur
  • Status: Active
  • Contributions: link cleanup, random odd tasks here and there
  • Notes: Pywikipedia based, used for cleanup tasks primarily.

Inactive

DataMA

  • User page: DataMA
  • Controlled by: Florian K
  • Status: Inactive on MA/en
  • Contributions: Development system
  • Notes: Started as a development bot and now assists Morn in detecting interwiki links. In MA/de it is now used as a categorization bot.

DelBeccio-bot

  • User page: DelBeccio-bot
  • Controlled by: Alan Del Beccio
  • Status: Inactive
  • Contributions: Maintenance/cleanup
  • Notes: Primarily used for various cleanup tasks, such as correcting redirects and (re)categorizing pages.

DYKBot

  • User page: DYKBot
  • Controlled by: Bp
  • Status: Inactive
  • Contributions: Maintenance, episode data, picture of the day synchronization, IRC, various other evil schemes
  • Notes: Was a proposed method of maintaining the "Did You Know" section of the main page. Now, it does various seemingly unrelated things, which are, in reality, part of a complicated master plan. It is controlled by Bp, except in Soviet Russia where it is the other way around.

HighwindBot

  • User page: HighwindBot
  • Controlled by: Cid Highwind
  • Status: Inactive
  • Contributions: Maintenance/cleanup
  • Notes: Primarily used for various cleanup tasks, but is also used to support the other bots if requested.

MantiBot

  • User page: MantiBot
  • Controlled by: Manticore
  • Status: Inactive
  • Contributions: Used to fix double redirects on various Wikia wikis.
  • Notes: It uses Pywikipedia.

Morn

PlasmarelaisBot

External links