From f9af6642829787e3706e8533dabe915dfe4fd43c Mon Sep 17 00:00:00 2001 From: Frisk Date: Wed, 27 Jun 2018 16:45:46 +0200 Subject: [PATCH] Hotfix --- rcgcdw.py | 3 +-- settings.json.example | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/rcgcdw.py b/rcgcdw.py index e0635f7..840635a 100644 --- a/rcgcdw.py +++ b/rcgcdw.py @@ -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) logging.debug("combination is {}".format(combination)) try: - settings["appearance"][combination] + STATIC_VARS = {**STATIC_VARS ,**{"color": settings["appearance"][combination]["color"], "icon": settings["appearance"][combination]["icon"]}} except KeyError: STATIC_VARS = {**STATIC_VARS ,**{"color": "", "icon": ""}} 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": webhook_formatter(2, STATIC_VARS, user=change["user"], title=change["title"], desc=parsedcomment, settings=change["logparams"]["description"]) elif logtype=="protect" and logaction=="modify": diff --git a/settings.json.example b/settings.json.example index f4d6f20..2a6724f 100644 --- a/settings.json.example +++ b/settings.json.example @@ -117,6 +117,10 @@ "icon":"", "color":null }, + "abusefilter/modify":{ + "icon":"", + "color":null + }, "interwiki/iw_add":{ "icon":"", "color":null