mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Merge branch 'cherry-pick-dc865539' into 'master'
Updated with new CurseProfile extension changes See merge request piotrex43/RcGcDw!29
This commit is contained in:
commit
2a9464a08d
10
rcgcdw.py
10
rcgcdw.py
|
@ -614,19 +614,19 @@ def first_pass(
|
||||||
prefix=change["logparams"]['0'])
|
prefix=change["logparams"]['0'])
|
||||||
elif combination == "curseprofile/comment-created":
|
elif combination == "curseprofile/comment-created":
|
||||||
webhook_formatter(combination, STATIC_VARS, user=change["user"], target=change["title"].split(':')[1],
|
webhook_formatter(combination, STATIC_VARS, user=change["user"], target=change["title"].split(':')[1],
|
||||||
commentid=change["logparams"]["0"])
|
commentid=change["logparams"]["4:comment_id"])
|
||||||
elif combination == "curseprofile/comment-edited":
|
elif combination == "curseprofile/comment-edited":
|
||||||
webhook_formatter(combination, STATIC_VARS, user=change["user"], target=change["title"].split(':')[1],
|
webhook_formatter(combination, STATIC_VARS, user=change["user"], target=change["title"].split(':')[1],
|
||||||
commentid=change["logparams"]["0"])
|
commentid=change["logparams"]["4:comment_id"])
|
||||||
elif combination == "curseprofile/comment-deleted":
|
elif combination == "curseprofile/comment-deleted":
|
||||||
webhook_formatter(combination, STATIC_VARS, user=change["user"], target=change["title"].split(':')[1],
|
webhook_formatter(combination, STATIC_VARS, user=change["user"], target=change["title"].split(':')[1],
|
||||||
commentid=change["logparams"]["0"])
|
commentid=change["logparams"]["4:comment_id"])
|
||||||
elif combination == "curseprofile/profile-edited":
|
elif combination == "curseprofile/profile-edited":
|
||||||
webhook_formatter(combination, STATIC_VARS, user=change["user"], target=change["title"].split(':')[1],
|
webhook_formatter(combination, STATIC_VARS, user=change["user"], target=change["title"].split(':')[1],
|
||||||
field=change["logparams"]['0'], desc=change["parsedcomment"])
|
field=change["logparams"]['4:section'], desc=change["parsedcomment"])
|
||||||
elif combination == "curseprofile/comment-replied":
|
elif combination == "curseprofile/comment-replied":
|
||||||
webhook_formatter(combination, STATIC_VARS, user=change["user"], target=change["title"].split(':')[1],
|
webhook_formatter(combination, STATIC_VARS, user=change["user"], target=change["title"].split(':')[1],
|
||||||
commentid=change["logparams"]["0"])
|
commentid=change["logparams"]["4:section"])
|
||||||
elif combination == "contentmodel/change":
|
elif combination == "contentmodel/change":
|
||||||
webhook_formatter(combination, STATIC_VARS, user=change["user"], title=change["title"], desc=parsedcomment,
|
webhook_formatter(combination, STATIC_VARS, user=change["user"], title=change["title"], desc=parsedcomment,
|
||||||
oldmodel=change["logparams"]["oldmodel"], newmodel=change["logparams"]["newmodel"])
|
oldmodel=change["logparams"]["oldmodel"], newmodel=change["logparams"]["newmodel"])
|
||||||
|
|
Loading…
Reference in a new issue