使用 JavaScript能使本网站更好的工作。
首页
帮助
登录
ben
/
earwigbot
镜像自地址
https://github.com/earwig/earwigbot
关注
1
点赞
1
派生
0
代码
版本发布
4
动态
浏览代码
Remove useless __all__ from commands and tasks.
tags/v0.1^2
Ben Kurtovic
12 年前
父节点
e9be04de37
当前提交
844e3a5f8e
共有
35 个文件被更改
,包括
0 次插入
和
70 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+0
-2
earwigbot/commands/afc_pending.py
+0
-2
earwigbot/commands/afc_report.py
+0
-2
earwigbot/commands/afc_status.py
+0
-2
earwigbot/commands/afc_submissions.py
+0
-2
earwigbot/commands/calc.py
+0
-2
earwigbot/commands/chanops.py
+0
-2
earwigbot/commands/crypt.py
+0
-2
earwigbot/commands/ctcp.py
+0
-2
earwigbot/commands/editcount.py
+0
-2
earwigbot/commands/geolocate.py
+0
-2
earwigbot/commands/git.py
+0
-2
earwigbot/commands/help.py
+0
-2
earwigbot/commands/langcode.py
+0
-2
earwigbot/commands/link.py
+0
-2
earwigbot/commands/notes.py
+0
-2
earwigbot/commands/praise.py
+0
-2
earwigbot/commands/quit.py
+0
-2
earwigbot/commands/registration.py
+0
-2
earwigbot/commands/remind.py
+0
-2
earwigbot/commands/replag.py
+0
-2
earwigbot/commands/rights.py
+0
-2
earwigbot/commands/test.py
+0
-2
earwigbot/commands/threads.py
+0
-2
earwigbot/commands/time.py
+0
-2
earwigbot/commands/trout.py
+0
-2
earwigbot/tasks/afc_catdelink.py
+0
-2
earwigbot/tasks/afc_copyvios.py
+0
-2
earwigbot/tasks/afc_dailycats.py
+0
-2
earwigbot/tasks/afc_history.py
+0
-2
earwigbot/tasks/afc_statistics.py
+0
-2
earwigbot/tasks/afc_undated.py
+0
-2
earwigbot/tasks/blp_tag.py
+0
-2
earwigbot/tasks/image_display_resize.py
+0
-2
earwigbot/tasks/wikiproject_tagger.py
+0
-2
earwigbot/tasks/wrong_mime.py
+ 0
- 2
earwigbot/commands/afc_pending.py
查看文件
@@ -22,8 +22,6 @@
from earwigbot.commands import Command
__all__ = ["AFCPending"]
class AFCPending(Command):
"""Link the user to the pending AFC submissions page and category."""
name = "pending"
+ 0
- 2
earwigbot/commands/afc_report.py
查看文件
@@ -23,8 +23,6 @@
from earwigbot import wiki
from earwigbot.commands import Command
__all__ = ["AFCReport"]
class AFCReport(Command):
"""Get information about an AFC submission by name."""
name = "report"
+ 0
- 2
earwigbot/commands/afc_status.py
查看文件
@@ -24,8 +24,6 @@ import re
from earwigbot.commands import Command
__all__ = ["AFCStatus"]
class AFCStatus(Command):
"""Get the number of pending AfC submissions, open redirect requests, and
open file upload requests."""
+ 0
- 2
earwigbot/commands/afc_submissions.py
查看文件
@@ -22,8 +22,6 @@
from earwigbot.commands import Command
__all__ = ["AFCSubmissions"]
class AFCSubmissions(Command):
"""Link the user directly to some pending AFC submissions."""
name = "submissions"
+ 0
- 2
earwigbot/commands/calc.py
查看文件
@@ -25,8 +25,6 @@ import urllib
from earwigbot.commands import Command
__all__ = ["Calc"]
class Calc(Command):
"""A somewhat advanced calculator: see http://futureboy.us/fsp/frink.fsp
for details."""
+ 0
- 2
earwigbot/commands/chanops.py
查看文件
@@ -22,8 +22,6 @@
from earwigbot.commands import Command
__all__ = ["ChanOps"]
class ChanOps(Command):
"""Voice, devoice, op, or deop users in the channel, or join or part from
other channels."""
+ 0
- 2
earwigbot/commands/crypt.py
查看文件
@@ -26,8 +26,6 @@ from Crypto.Cipher import Blowfish
from earwigbot.commands import Command
__all__ = ["Crypt"]
class Crypt(Command):
"""Provides hash functions with !hash (!hash list for supported algorithms)
and Blowfish encryption with !encrypt and !decrypt."""
+ 0
- 2
earwigbot/commands/ctcp.py
查看文件
@@ -26,8 +26,6 @@ import time
from earwigbot import __version__
from earwigbot.commands import Command
__all__ = ["CTCP"]
class CTCP(Command):
"""Not an actual command; this module implements responses to the CTCP
requests PING, TIME, and VERSION."""
+ 0
- 2
earwigbot/commands/editcount.py
查看文件
@@ -25,8 +25,6 @@ from urllib import quote_plus
from earwigbot import exceptions
from earwigbot.commands import Command
__all__ = ["Editcount"]
class Editcount(Command):
"""Return a user's edit count."""
name = "editcount"
+ 0
- 2
earwigbot/commands/geolocate.py
查看文件
@@ -25,8 +25,6 @@ import urllib2
from earwigbot.commands import Command
__all__ = ["Geolocate"]
class Geolocate(Command):
"""Geolocate an IP address (via http://ipinfodb.com/)."""
name = "geolocate"
+ 0
- 2
earwigbot/commands/git.py
查看文件
@@ -26,8 +26,6 @@ import git
from earwigbot.commands import Command
__all__ = ["Git"]
class Git(Command):
"""Commands to interface with the bot's git repository; use '!git' for a
sub-command list."""
+ 0
- 2
earwigbot/commands/help.py
查看文件
@@ -24,8 +24,6 @@ import re
from earwigbot.commands import Command
__all__ = ["Help"]
class Help(Command):
"""Displays help information."""
name = "help"
+ 0
- 2
earwigbot/commands/langcode.py
查看文件
@@ -22,8 +22,6 @@
from earwigbot.commands import Command
__all__ = ["Langcode"]
class Langcode(Command):
"""Convert a language code into its name and a list of WMF sites in that
language."""
+ 0
- 2
earwigbot/commands/link.py
查看文件
@@ -25,8 +25,6 @@ from urllib import quote
from earwigbot.commands import Command
__all__ = ["Link"]
class Link(Command):
"""Convert a Wikipedia page name into a URL."""
name = "link"
+ 0
- 2
earwigbot/commands/notes.py
查看文件
@@ -22,8 +22,6 @@
from earwigbot.commands import Command
__all__ = ["Notes"]
class Notes(Command):
"""A mini IRC-based wiki for storing notes, tips, and reminders."""
name = "notes"
+ 0
- 2
earwigbot/commands/praise.py
查看文件
@@ -22,8 +22,6 @@
from earwigbot.commands import Command
__all__ = ["Praise"]
class Praise(Command):
"""Praise people!"""
name = "praise"
+ 0
- 2
earwigbot/commands/quit.py
查看文件
@@ -22,8 +22,6 @@
from earwigbot.commands import Command
__all__ = ["Quit"]
class Quit(Command):
"""Quit, restart, or reload components from the bot. Only the owners can
run this command."""
+ 0
- 2
earwigbot/commands/registration.py
查看文件
@@ -25,8 +25,6 @@ import time
from earwigbot import exceptions
from earwigbot.commands import Command
__all__ = ["Registration"]
class Registration(Command):
"""Return when a user registered."""
name = "registration"
+ 0
- 2
earwigbot/commands/remind.py
查看文件
@@ -25,8 +25,6 @@ import time
from earwigbot.commands import Command
__all__ = ["Remind"]
class Remind(Command):
"""Set a message to be repeated to you in a certain amount of time."""
name = "remind"
+ 0
- 2
earwigbot/commands/replag.py
查看文件
@@ -26,8 +26,6 @@ import oursql
from earwigbot.commands import Command
__all__ = ["Replag"]
class Replag(Command):
"""Return the replag for a specific database on the Toolserver."""
name = "replag"
+ 0
- 2
earwigbot/commands/rights.py
查看文件
@@ -23,8 +23,6 @@
from earwigbot import exceptions
from earwigbot.commands import Command
__all__ = ["Rights"]
class Rights(Command):
"""Retrieve a list of rights for a given username."""
name = "rights"
+ 0
- 2
earwigbot/commands/test.py
查看文件
@@ -24,8 +24,6 @@ import random
from earwigbot.commands import Command
__all__ = ["Test"]
class Test(Command):
"""Test the bot!"""
name = "test"
+ 0
- 2
earwigbot/commands/threads.py
查看文件
@@ -25,8 +25,6 @@ import re
from earwigbot.commands import Command
__all__ = ["Threads"]
class Threads(Command):
"""Manage wiki tasks from IRC, and check on thread status."""
name = "threads"
+ 0
- 2
earwigbot/commands/time.py
查看文件
@@ -31,8 +31,6 @@ except ImportError:
from earwigbot.commands import Command
__all__ = ["Time"]
class Time(Command):
"""Report the current time in any timezone (UTC default), or in beats."""
name = "time"
+ 0
- 2
earwigbot/commands/trout.py
查看文件
@@ -24,8 +24,6 @@ from unicodedata import normalize
from earwigbot.commands import Command
__all__ = ["Trout"]
class Trout(Command):
"""Slap someone with a trout, or related fish."""
name = "trout"
+ 0
- 2
earwigbot/tasks/afc_catdelink.py
查看文件
@@ -22,8 +22,6 @@
from earwigbot.tasks import Task
__all__ = ["AFCCatDelink"]
class AFCCatDelink(Task):
"""A task to delink mainspace categories in declined [[WP:AFC]]
submissions."""
+ 0
- 2
earwigbot/tasks/afc_copyvios.py
查看文件
@@ -28,8 +28,6 @@ import oursql
from earwigbot.tasks import Task
__all__ = ["AFCCopyvios"]
class AFCCopyvios(Task):
"""A task to check newly-edited [[WP:AFC]] submissions for copyright
violations."""
+ 0
- 2
earwigbot/tasks/afc_dailycats.py
查看文件
@@ -22,8 +22,6 @@
from earwigbot.tasks import Task
__all__ = ["AFCDailyCats"]
class AFCDailyCats(Task):
""" A task to create daily categories for [[WP:AFC]]."""
name = "afc_dailycats"
+ 0
- 2
earwigbot/tasks/afc_history.py
查看文件
@@ -34,8 +34,6 @@ import oursql
from earwigbot import wiki
from earwigbot.tasks import Task
__all__ = ["AFCHistory"]
class AFCHistory(Task):
"""A task to generate charts about AfC submissions over time.
+ 0
- 2
earwigbot/tasks/afc_statistics.py
查看文件
@@ -32,8 +32,6 @@ from earwigbot import exceptions
from earwigbot import wiki
from earwigbot.tasks import Task
__all__ = ["AFCStatistics"]
class AFCStatistics(Task):
"""A task to generate statistics for WikiProject Articles for Creation.
+ 0
- 2
earwigbot/tasks/afc_undated.py
查看文件
@@ -22,8 +22,6 @@
from earwigbot.tasks import Task
__all__ = ["AFCUndated"]
class AFCUndated(Task):
"""A task to clear [[Category:Undated AfC submissions]]."""
name = "afc_undated"
+ 0
- 2
earwigbot/tasks/blp_tag.py
查看文件
@@ -22,8 +22,6 @@
from earwigbot.tasks import Task
__all__ = ["BLPTag"]
class BLPTag(Task):
"""A task to add |blp=yes to ``{{WPB}}`` or ``{{WPBS}}`` when it is used
along with ``{{WP Biography}}``."""
+ 0
- 2
earwigbot/tasks/image_display_resize.py
查看文件
@@ -22,8 +22,6 @@
from earwigbot.tasks import Task
__all__ = ["ImageDisplayResize"]
class ImageDisplayResize(Task):
"""A task to resize upscaled portraits in infoboxes."""
name = "image_display_resize"
+ 0
- 2
earwigbot/tasks/wikiproject_tagger.py
查看文件
@@ -22,8 +22,6 @@
from earwigbot.tasks import Task
__all__ = ["WikiProjectTagger"]
class WikiProjectTagger(Task):
"""A task to tag talk pages with WikiProject Banners."""
name = "wikiproject_tagger"
+ 0
- 2
earwigbot/tasks/wrong_mime.py
查看文件
@@ -22,8 +22,6 @@
from earwigbot.tasks import Task
__all__ = ["WrongMIME"]
class WrongMIME(Task):
"""A task to tag files whose extensions do not agree with their MIME
type."""
撰写
预览
正在加载...
取消
保存