mirror of
https://github.com/pajamian/Pastebin2cpaste.git
synced 2025-04-25 12:31:07 -05:00
Added Debian pastebin. Removed old (defunct) Fedora pastebin.
This commit is contained in:
parent
bc2789f404
commit
328d2628a4
@ -38,7 +38,7 @@ from supybot import world
|
|||||||
|
|
||||||
# Use this for the version of this plugin. You may wish to put a CVS keyword
|
# Use this for the version of this plugin. You may wish to put a CVS keyword
|
||||||
# in here if you're keeping the plugin in CVS or some similar system.
|
# in here if you're keeping the plugin in CVS or some similar system.
|
||||||
__version__ = "0.5"
|
__version__ = "0.6"
|
||||||
|
|
||||||
# XXX Replace this with an appropriate author or supybot.Author instance.
|
# XXX Replace this with an appropriate author or supybot.Author instance.
|
||||||
__author__ = supybot.Author('Peter Ajamian', 'pj', 'peter@pajamian.dhs.org')
|
__author__ = supybot.Author('Peter Ajamian', 'pj', 'peter@pajamian.dhs.org')
|
||||||
|
@ -53,10 +53,6 @@ class Pastebin2cpaste(callbacks.Plugin):
|
|||||||
'regex': re.compile(r'([0-9a-zA-Z]+)[.:?!,]*$'),
|
'regex': re.compile(r'([0-9a-zA-Z]+)[.:?!,]*$'),
|
||||||
'url': 'https://pastebin.com/raw/%s'
|
'url': 'https://pastebin.com/raw/%s'
|
||||||
},
|
},
|
||||||
'paste.fedoraproject.org': {
|
|
||||||
'regex': re.compile(r'([0-9a-zA-Z~-]+)(?:/raw)?[.:?!,]*$'),
|
|
||||||
'url': 'https://paste.fedoraproject.org/paste/%s/raw'
|
|
||||||
},
|
|
||||||
'hastebin.com': {
|
'hastebin.com': {
|
||||||
'regex': re.compile(r'/([a-z]+)(?:\.[a-z]+)?[.:?!,]*$'),
|
'regex': re.compile(r'/([a-z]+)(?:\.[a-z]+)?[.:?!,]*$'),
|
||||||
'url': 'https://hastebin.com/raw/%s'
|
'url': 'https://hastebin.com/raw/%s'
|
||||||
@ -68,6 +64,10 @@ class Pastebin2cpaste(callbacks.Plugin):
|
|||||||
'termbin.com': {
|
'termbin.com': {
|
||||||
'regex': re.compile(r'([0-9a-zA-Z]+)[.:?!,]*$'),
|
'regex': re.compile(r'([0-9a-zA-Z]+)[.:?!,]*$'),
|
||||||
'url': 'https://termbin.com/%s'
|
'url': 'https://termbin.com/%s'
|
||||||
|
},
|
||||||
|
'paste.debian.net': {
|
||||||
|
'regex': re.compile(r'([0-9]+)[.:?!,]*$'),
|
||||||
|
'url': 'https://paste.debian.net/plain/%s'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user