mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Merge branch 'testing' into 'master'
Fixes to messages about group changes See merge request piotrex43/RcGcDw!7
This commit is contained in:
commit
b24de12b1a
|
@ -220,8 +220,8 @@ def webhook_formatter(action, STATIC, **params):
|
||||||
#link = "https://{wiki}.gamepedia.com/UserProfile:{target}".format(wiki=settings["wiki"], target=params["target"].replace(" ", "_").replace(')', '\)'))
|
#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"])
|
embed["title"] = _("Deleted a comment on {target}'s profile").format(target=params["target"])
|
||||||
elif action == 20:
|
elif action == 20:
|
||||||
link = "https://{wiki}.gamepedia.com/".format(wiki=settings["wiki"])+params["user"].replace(" ", "_").replace(')', '\)')
|
link = "https://{wiki}.gamepedia.com/User:".format(wiki=settings["wiki"])+params["title"].split(":")[1]
|
||||||
embed["title"] = _("Changed group membership for {target}").format(target=params["user"])
|
embed["title"] = _("Changed group membership for {target}").format(target=params["title"].split(":")[1])
|
||||||
if params["old_groups"].count(' ') < params["new_groups"].count(' '):
|
if params["old_groups"].count(' ') < params["new_groups"].count(' '):
|
||||||
embed["thumbnail"]["url"] = "https://i.imgur.com/WnGhF5g.gif"
|
embed["thumbnail"]["url"] = "https://i.imgur.com/WnGhF5g.gif"
|
||||||
if len(params["old_groups"]) < 4:
|
if len(params["old_groups"]) < 4:
|
||||||
|
|
Loading…
Reference in a new issue