From 126c47d9ca43750de617ae92cc0d87c0a7e8c003 Mon Sep 17 00:00:00 2001 From: Peter Ajamian Date: Tue, 10 Nov 2020 09:34:43 +1300 Subject: [PATCH] Added termbin.com --- __init__.py | 2 +- plugin.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 8689cbc..d19180d 100644 --- a/__init__.py +++ b/__init__.py @@ -38,7 +38,7 @@ from supybot import world # 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. -__version__ = "0.4" +__version__ = "0.5" # XXX Replace this with an appropriate author or supybot.Author instance. __author__ = supybot.Author('Peter Ajamian', 'pj', 'peter@pajamian.dhs.org') diff --git a/plugin.py b/plugin.py index 9fd24ad..11dd371 100644 --- a/plugin.py +++ b/plugin.py @@ -64,6 +64,10 @@ class Pastebin2cpaste(callbacks.Plugin): 'www.irccloud.com': { 'regex': re.compile(r'/pastebin(?:/raw)?/([0-9a-zA-Z]+)(?:/.*)?[.:?!,]*$'), 'url': 'https://www.irccloud.com/pastebin/raw/%s' + }, + 'termbin.com': { + 'regex': re.compile(r'(0-9a-zA-Z)+)[.:?!,]*$'), + 'url': 'https://termbin.com/%s' } }