github.py: use default shorteners

This commit is contained in:
David Schultz 2022-01-20 13:10:15 -06:00
parent 9e4e4925c0
commit bf76b41485
No known key found for this signature in database
GPG key ID: F6DED672FFFD5E5E

View file

@ -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("")