From daf780e626330a8c5bd526c9d0aa7f50ca89c72c Mon Sep 17 00:00:00 2001 From: Frisk Date: Tue, 3 Jul 2018 21:18:43 +0200 Subject: [PATCH] Fixed link that caused 400 on Discords side --- rcgcdw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rcgcdw.py b/rcgcdw.py index 57eb255..2f1479a 100644 --- a/rcgcdw.py +++ b/rcgcdw.py @@ -220,7 +220,7 @@ def webhook_formatter(action, STATIC, **params): #link = "https://{wiki}.gamepedia.com/UserProfile:{target}".format(wiki=settings["wiki"], target=params["target"].replace(" ", "_").replace(')', '\)')) embed["title"] = _("Deleted a comment on {target}'s profile").format(target=params["target"]) elif action == 20: - link = "https://{wiki}.gamepedia.com/"+params["user"].replace(" ", "_").replace(')', '\)') + link = "https://{wiki}.gamepedia.com/".format(wiki=settings["wiki"])+params["user"].replace(" ", "_").replace(')', '\)') embed["title"] = _("Changed group membership for {target}").format(target=params["user"]) if params["old_groups"].count(' ') < params["new_groups"].count(' '): embed["thumbnail"]["url"] = "https://i.imgur.com/WnGhF5g.gif"