From b333b5d944bee261be4bbf98f77f24e71694660c Mon Sep 17 00:00:00 2001 From: dece Date: Wed, 6 Jul 2022 17:18:01 +0200 Subject: [PATCH] shrlok: fix bad kwarg --- edmond/plugins/shrlok.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edmond/plugins/shrlok.py b/edmond/plugins/shrlok.py index 49335f2..d8ee05c 100644 --- a/edmond/plugins/shrlok.py +++ b/edmond/plugins/shrlok.py @@ -39,5 +39,5 @@ class ShrlokPlugin(Plugin): except OSError as exc: self.bot.log_e(f"Can't post text file: {exc}") return None - url = response.decode().replace(self.file_root, self.url_root, count=1) + url = response.decode().replace(self.file_root, self.url_root, 1) return url