Added Debian pastebin. Removed old (defunct) Fedora pastebin.

This commit is contained in:
Peter Ajamian 2020-11-27 20:40:52 +13:00
parent bc2789f404
commit 328d2628a4
2 changed files with 5 additions and 5 deletions

View File

@ -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')

View File

@ -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'
} }
} }