@@ -22,8 +22,6 @@ | |||||
from earwigbot.commands import Command | from earwigbot.commands import Command | ||||
__all__ = ["AFCPending"] | |||||
class AFCPending(Command): | class AFCPending(Command): | ||||
"""Link the user to the pending AFC submissions page and category.""" | """Link the user to the pending AFC submissions page and category.""" | ||||
name = "pending" | name = "pending" | ||||
@@ -23,8 +23,6 @@ | |||||
from earwigbot import wiki | from earwigbot import wiki | ||||
from earwigbot.commands import Command | from earwigbot.commands import Command | ||||
__all__ = ["AFCReport"] | |||||
class AFCReport(Command): | class AFCReport(Command): | ||||
"""Get information about an AFC submission by name.""" | """Get information about an AFC submission by name.""" | ||||
name = "report" | name = "report" | ||||
@@ -24,8 +24,6 @@ import re | |||||
from earwigbot.commands import Command | from earwigbot.commands import Command | ||||
__all__ = ["AFCStatus"] | |||||
class AFCStatus(Command): | class AFCStatus(Command): | ||||
"""Get the number of pending AfC submissions, open redirect requests, and | """Get the number of pending AfC submissions, open redirect requests, and | ||||
open file upload requests.""" | open file upload requests.""" | ||||
@@ -22,8 +22,6 @@ | |||||
from earwigbot.commands import Command | from earwigbot.commands import Command | ||||
__all__ = ["AFCSubmissions"] | |||||
class AFCSubmissions(Command): | class AFCSubmissions(Command): | ||||
"""Link the user directly to some pending AFC submissions.""" | """Link the user directly to some pending AFC submissions.""" | ||||
name = "submissions" | name = "submissions" | ||||
@@ -25,8 +25,6 @@ import urllib | |||||
from earwigbot.commands import Command | from earwigbot.commands import Command | ||||
__all__ = ["Calc"] | |||||
class Calc(Command): | class Calc(Command): | ||||
"""A somewhat advanced calculator: see http://futureboy.us/fsp/frink.fsp | """A somewhat advanced calculator: see http://futureboy.us/fsp/frink.fsp | ||||
for details.""" | for details.""" | ||||
@@ -22,8 +22,6 @@ | |||||
from earwigbot.commands import Command | from earwigbot.commands import Command | ||||
__all__ = ["ChanOps"] | |||||
class ChanOps(Command): | class ChanOps(Command): | ||||
"""Voice, devoice, op, or deop users in the channel, or join or part from | """Voice, devoice, op, or deop users in the channel, or join or part from | ||||
other channels.""" | other channels.""" | ||||
@@ -26,8 +26,6 @@ from Crypto.Cipher import Blowfish | |||||
from earwigbot.commands import Command | from earwigbot.commands import Command | ||||
__all__ = ["Crypt"] | |||||
class Crypt(Command): | class Crypt(Command): | ||||
"""Provides hash functions with !hash (!hash list for supported algorithms) | """Provides hash functions with !hash (!hash list for supported algorithms) | ||||
and Blowfish encryption with !encrypt and !decrypt.""" | and Blowfish encryption with !encrypt and !decrypt.""" | ||||
@@ -26,8 +26,6 @@ import time | |||||
from earwigbot import __version__ | from earwigbot import __version__ | ||||
from earwigbot.commands import Command | from earwigbot.commands import Command | ||||
__all__ = ["CTCP"] | |||||
class CTCP(Command): | class CTCP(Command): | ||||
"""Not an actual command; this module implements responses to the CTCP | """Not an actual command; this module implements responses to the CTCP | ||||
requests PING, TIME, and VERSION.""" | requests PING, TIME, and VERSION.""" | ||||
@@ -25,8 +25,6 @@ from urllib import quote_plus | |||||
from earwigbot import exceptions | from earwigbot import exceptions | ||||
from earwigbot.commands import Command | from earwigbot.commands import Command | ||||
__all__ = ["Editcount"] | |||||
class Editcount(Command): | class Editcount(Command): | ||||
"""Return a user's edit count.""" | """Return a user's edit count.""" | ||||
name = "editcount" | name = "editcount" | ||||
@@ -25,8 +25,6 @@ import urllib2 | |||||
from earwigbot.commands import Command | from earwigbot.commands import Command | ||||
__all__ = ["Geolocate"] | |||||
class Geolocate(Command): | class Geolocate(Command): | ||||
"""Geolocate an IP address (via http://ipinfodb.com/).""" | """Geolocate an IP address (via http://ipinfodb.com/).""" | ||||
name = "geolocate" | name = "geolocate" | ||||
@@ -26,8 +26,6 @@ import git | |||||
from earwigbot.commands import Command | from earwigbot.commands import Command | ||||
__all__ = ["Git"] | |||||
class Git(Command): | class Git(Command): | ||||
"""Commands to interface with the bot's git repository; use '!git' for a | """Commands to interface with the bot's git repository; use '!git' for a | ||||
sub-command list.""" | sub-command list.""" | ||||
@@ -24,8 +24,6 @@ import re | |||||
from earwigbot.commands import Command | from earwigbot.commands import Command | ||||
__all__ = ["Help"] | |||||
class Help(Command): | class Help(Command): | ||||
"""Displays help information.""" | """Displays help information.""" | ||||
name = "help" | name = "help" | ||||
@@ -22,8 +22,6 @@ | |||||
from earwigbot.commands import Command | from earwigbot.commands import Command | ||||
__all__ = ["Langcode"] | |||||
class Langcode(Command): | class Langcode(Command): | ||||
"""Convert a language code into its name and a list of WMF sites in that | """Convert a language code into its name and a list of WMF sites in that | ||||
language.""" | language.""" | ||||
@@ -25,8 +25,6 @@ from urllib import quote | |||||
from earwigbot.commands import Command | from earwigbot.commands import Command | ||||
__all__ = ["Link"] | |||||
class Link(Command): | class Link(Command): | ||||
"""Convert a Wikipedia page name into a URL.""" | """Convert a Wikipedia page name into a URL.""" | ||||
name = "link" | name = "link" | ||||
@@ -22,8 +22,6 @@ | |||||
from earwigbot.commands import Command | from earwigbot.commands import Command | ||||
__all__ = ["Notes"] | |||||
class Notes(Command): | class Notes(Command): | ||||
"""A mini IRC-based wiki for storing notes, tips, and reminders.""" | """A mini IRC-based wiki for storing notes, tips, and reminders.""" | ||||
name = "notes" | name = "notes" | ||||
@@ -22,8 +22,6 @@ | |||||
from earwigbot.commands import Command | from earwigbot.commands import Command | ||||
__all__ = ["Praise"] | |||||
class Praise(Command): | class Praise(Command): | ||||
"""Praise people!""" | """Praise people!""" | ||||
name = "praise" | name = "praise" | ||||
@@ -22,8 +22,6 @@ | |||||
from earwigbot.commands import Command | from earwigbot.commands import Command | ||||
__all__ = ["Quit"] | |||||
class Quit(Command): | class Quit(Command): | ||||
"""Quit, restart, or reload components from the bot. Only the owners can | """Quit, restart, or reload components from the bot. Only the owners can | ||||
run this command.""" | run this command.""" | ||||
@@ -25,8 +25,6 @@ import time | |||||
from earwigbot import exceptions | from earwigbot import exceptions | ||||
from earwigbot.commands import Command | from earwigbot.commands import Command | ||||
__all__ = ["Registration"] | |||||
class Registration(Command): | class Registration(Command): | ||||
"""Return when a user registered.""" | """Return when a user registered.""" | ||||
name = "registration" | name = "registration" | ||||
@@ -25,8 +25,6 @@ import time | |||||
from earwigbot.commands import Command | from earwigbot.commands import Command | ||||
__all__ = ["Remind"] | |||||
class Remind(Command): | class Remind(Command): | ||||
"""Set a message to be repeated to you in a certain amount of time.""" | """Set a message to be repeated to you in a certain amount of time.""" | ||||
name = "remind" | name = "remind" | ||||
@@ -26,8 +26,6 @@ import oursql | |||||
from earwigbot.commands import Command | from earwigbot.commands import Command | ||||
__all__ = ["Replag"] | |||||
class Replag(Command): | class Replag(Command): | ||||
"""Return the replag for a specific database on the Toolserver.""" | """Return the replag for a specific database on the Toolserver.""" | ||||
name = "replag" | name = "replag" | ||||
@@ -23,8 +23,6 @@ | |||||
from earwigbot import exceptions | from earwigbot import exceptions | ||||
from earwigbot.commands import Command | from earwigbot.commands import Command | ||||
__all__ = ["Rights"] | |||||
class Rights(Command): | class Rights(Command): | ||||
"""Retrieve a list of rights for a given username.""" | """Retrieve a list of rights for a given username.""" | ||||
name = "rights" | name = "rights" | ||||
@@ -24,8 +24,6 @@ import random | |||||
from earwigbot.commands import Command | from earwigbot.commands import Command | ||||
__all__ = ["Test"] | |||||
class Test(Command): | class Test(Command): | ||||
"""Test the bot!""" | """Test the bot!""" | ||||
name = "test" | name = "test" | ||||
@@ -25,8 +25,6 @@ import re | |||||
from earwigbot.commands import Command | from earwigbot.commands import Command | ||||
__all__ = ["Threads"] | |||||
class Threads(Command): | class Threads(Command): | ||||
"""Manage wiki tasks from IRC, and check on thread status.""" | """Manage wiki tasks from IRC, and check on thread status.""" | ||||
name = "threads" | name = "threads" | ||||
@@ -31,8 +31,6 @@ except ImportError: | |||||
from earwigbot.commands import Command | from earwigbot.commands import Command | ||||
__all__ = ["Time"] | |||||
class Time(Command): | class Time(Command): | ||||
"""Report the current time in any timezone (UTC default), or in beats.""" | """Report the current time in any timezone (UTC default), or in beats.""" | ||||
name = "time" | name = "time" | ||||
@@ -24,8 +24,6 @@ from unicodedata import normalize | |||||
from earwigbot.commands import Command | from earwigbot.commands import Command | ||||
__all__ = ["Trout"] | |||||
class Trout(Command): | class Trout(Command): | ||||
"""Slap someone with a trout, or related fish.""" | """Slap someone with a trout, or related fish.""" | ||||
name = "trout" | name = "trout" | ||||
@@ -22,8 +22,6 @@ | |||||
from earwigbot.tasks import Task | from earwigbot.tasks import Task | ||||
__all__ = ["AFCCatDelink"] | |||||
class AFCCatDelink(Task): | class AFCCatDelink(Task): | ||||
"""A task to delink mainspace categories in declined [[WP:AFC]] | """A task to delink mainspace categories in declined [[WP:AFC]] | ||||
submissions.""" | submissions.""" | ||||
@@ -28,8 +28,6 @@ import oursql | |||||
from earwigbot.tasks import Task | from earwigbot.tasks import Task | ||||
__all__ = ["AFCCopyvios"] | |||||
class AFCCopyvios(Task): | class AFCCopyvios(Task): | ||||
"""A task to check newly-edited [[WP:AFC]] submissions for copyright | """A task to check newly-edited [[WP:AFC]] submissions for copyright | ||||
violations.""" | violations.""" | ||||
@@ -22,8 +22,6 @@ | |||||
from earwigbot.tasks import Task | from earwigbot.tasks import Task | ||||
__all__ = ["AFCDailyCats"] | |||||
class AFCDailyCats(Task): | class AFCDailyCats(Task): | ||||
""" A task to create daily categories for [[WP:AFC]].""" | """ A task to create daily categories for [[WP:AFC]].""" | ||||
name = "afc_dailycats" | name = "afc_dailycats" | ||||
@@ -34,8 +34,6 @@ import oursql | |||||
from earwigbot import wiki | from earwigbot import wiki | ||||
from earwigbot.tasks import Task | from earwigbot.tasks import Task | ||||
__all__ = ["AFCHistory"] | |||||
class AFCHistory(Task): | class AFCHistory(Task): | ||||
"""A task to generate charts about AfC submissions over time. | """A task to generate charts about AfC submissions over time. | ||||
@@ -32,8 +32,6 @@ from earwigbot import exceptions | |||||
from earwigbot import wiki | from earwigbot import wiki | ||||
from earwigbot.tasks import Task | from earwigbot.tasks import Task | ||||
__all__ = ["AFCStatistics"] | |||||
class AFCStatistics(Task): | class AFCStatistics(Task): | ||||
"""A task to generate statistics for WikiProject Articles for Creation. | """A task to generate statistics for WikiProject Articles for Creation. | ||||
@@ -22,8 +22,6 @@ | |||||
from earwigbot.tasks import Task | from earwigbot.tasks import Task | ||||
__all__ = ["AFCUndated"] | |||||
class AFCUndated(Task): | class AFCUndated(Task): | ||||
"""A task to clear [[Category:Undated AfC submissions]].""" | """A task to clear [[Category:Undated AfC submissions]].""" | ||||
name = "afc_undated" | name = "afc_undated" | ||||
@@ -22,8 +22,6 @@ | |||||
from earwigbot.tasks import Task | from earwigbot.tasks import Task | ||||
__all__ = ["BLPTag"] | |||||
class BLPTag(Task): | class BLPTag(Task): | ||||
"""A task to add |blp=yes to ``{{WPB}}`` or ``{{WPBS}}`` when it is used | """A task to add |blp=yes to ``{{WPB}}`` or ``{{WPBS}}`` when it is used | ||||
along with ``{{WP Biography}}``.""" | along with ``{{WP Biography}}``.""" | ||||
@@ -22,8 +22,6 @@ | |||||
from earwigbot.tasks import Task | from earwigbot.tasks import Task | ||||
__all__ = ["ImageDisplayResize"] | |||||
class ImageDisplayResize(Task): | class ImageDisplayResize(Task): | ||||
"""A task to resize upscaled portraits in infoboxes.""" | """A task to resize upscaled portraits in infoboxes.""" | ||||
name = "image_display_resize" | name = "image_display_resize" | ||||
@@ -22,8 +22,6 @@ | |||||
from earwigbot.tasks import Task | from earwigbot.tasks import Task | ||||
__all__ = ["WikiProjectTagger"] | |||||
class WikiProjectTagger(Task): | class WikiProjectTagger(Task): | ||||
"""A task to tag talk pages with WikiProject Banners.""" | """A task to tag talk pages with WikiProject Banners.""" | ||||
name = "wikiproject_tagger" | name = "wikiproject_tagger" | ||||
@@ -22,8 +22,6 @@ | |||||
from earwigbot.tasks import Task | from earwigbot.tasks import Task | ||||
__all__ = ["WrongMIME"] | |||||
class WrongMIME(Task): | class WrongMIME(Task): | ||||
"""A task to tag files whose extensions do not agree with their MIME | """A task to tag files whose extensions do not agree with their MIME | ||||
type.""" | type.""" | ||||