From bf76b41485504d9a8e2e3abb5955da3e8c93da1a Mon Sep 17 00:00:00 2001 From: David Schultz Date: Thu, 20 Jan 2022 13:10:15 -0600 Subject: [PATCH] github.py: use default shorteners --- modules/github.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/github.py b/modules/github.py index 9393cd49..4945b57c 100644 --- a/modules/github.py +++ b/modules/github.py @@ -47,10 +47,7 @@ class Module(ModuleManager.BaseModule): return org, repo, number def _short_url(self, url): - # TODO: find an alternative to git.io - # see https://github.com/jesopo/bitbot/issues/338 - # ~ examknow 1/19/2022 - return url + return self.exports.get("shorturl")(self.bot, url) or url def _change_count(self, n, symbol, color): return utils.irc.color("%s%d" % (symbol, n), color)+utils.irc.bold("")