mirror of
https://gitlab.com/chicken-riders/RcGcDw.git
synced 2025-02-23 00:24:09 +00:00
Hotfix
This commit is contained in:
parent
8bed09514b
commit
f9af664282
|
@ -356,11 +356,10 @@ def first_pass(change): #I've decided to split the embed formatter and change ha
|
||||||
combination = "{logtype}/{logaction}".format(logtype=logtype, logaction=logaction)
|
combination = "{logtype}/{logaction}".format(logtype=logtype, logaction=logaction)
|
||||||
logging.debug("combination is {}".format(combination))
|
logging.debug("combination is {}".format(combination))
|
||||||
try:
|
try:
|
||||||
settings["appearance"][combination]
|
STATIC_VARS = {**STATIC_VARS ,**{"color": settings["appearance"][combination]["color"], "icon": settings["appearance"][combination]["icon"]}}
|
||||||
except KeyError:
|
except KeyError:
|
||||||
STATIC_VARS = {**STATIC_VARS ,**{"color": "", "icon": ""}}
|
STATIC_VARS = {**STATIC_VARS ,**{"color": "", "icon": ""}}
|
||||||
logging.error("No value in the settings has been given for {}".format(combination))
|
logging.error("No value in the settings has been given for {}".format(combination))
|
||||||
STATIC_VARS = {**STATIC_VARS ,**{"color": settings["appearance"][combination]["color"], "icon": settings["appearance"][combination]["icon"]}}
|
|
||||||
if logtype=="protect" and logaction=="protect":
|
if logtype=="protect" and logaction=="protect":
|
||||||
webhook_formatter(2, STATIC_VARS, user=change["user"], title=change["title"], desc=parsedcomment, settings=change["logparams"]["description"])
|
webhook_formatter(2, STATIC_VARS, user=change["user"], title=change["title"], desc=parsedcomment, settings=change["logparams"]["description"])
|
||||||
elif logtype=="protect" and logaction=="modify":
|
elif logtype=="protect" and logaction=="modify":
|
||||||
|
|
|
@ -117,6 +117,10 @@
|
||||||
"icon":"",
|
"icon":"",
|
||||||
"color":null
|
"color":null
|
||||||
},
|
},
|
||||||
|
"abusefilter/modify":{
|
||||||
|
"icon":"",
|
||||||
|
"color":null
|
||||||
|
},
|
||||||
"interwiki/iw_add":{
|
"interwiki/iw_add":{
|
||||||
"icon":"",
|
"icon":"",
|
||||||
"color":null
|
"color":null
|
||||||
|
|
Loading…
Reference in a new issue