mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
... I'm a stupid idiot.
This commit is contained in:
parent
b25052e7f9
commit
abf3670392
|
@ -251,8 +251,8 @@ def webhook_formatter(action, STATIC, **params):
|
||||||
params["old_groups"] = _("none")
|
params["old_groups"] = _("none")
|
||||||
if len(params["new_groups"]) < 4:
|
if len(params["new_groups"]) < 4:
|
||||||
params["new_groups"] = _("none")
|
params["new_groups"] = _("none")
|
||||||
reason = "| {desc}".format(desc=params["desc"]) if params["desc"]!=_("No description provided") else ""
|
reason = ": {desc}".format(desc=params["desc"]) if params["desc"]!=_("No description provided") else ""
|
||||||
params["desc"] = _("Groups changed from {old_groups} to {new_groups}{is_reason} {reason}").format(old_groups=params["old_groups"], new_groups=params["new_groups"], is_reason = ":" if reason else "", reason=reason)
|
params["desc"] = _("Groups changed from {old_groups} to {new_groups} {reason}").format(old_groups=params["old_groups"], new_groups=params["new_groups"], reason=reason)
|
||||||
elif action == 2:
|
elif action == 2:
|
||||||
link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=params["title"].replace(" ", "_"))
|
link = "https://{wiki}.gamepedia.com/{article}".format(wiki=settings["wiki"], article=params["title"].replace(" ", "_"))
|
||||||
embed["title"] = _("Protected {target}").format(target=params["title"])
|
embed["title"] = _("Protected {target}").format(target=params["title"])
|
||||||
|
|
Loading…
Reference in a new issue