Sync with RcGcDw

This commit is contained in:
Frisk 2021-04-11 17:25:01 +02:00
parent 275907d31d
commit 5c63a48954
No known key found for this signature in database
GPG key ID: 213F7C15068AF8AC
2 changed files with 3 additions and 3 deletions

View file

@ -25,7 +25,7 @@ from src.irc_feed import AioIRCCat
logging.config.dictConfig(settings["logging"])
logger = logging.getLogger("rcgcdb.bot")
logger.debug("Current settings: {settings}".format(settings=settings))
logger.info("RcGcDb v{} is starting up.".format("1.0"))
logger.info("RcGcDb v{} is starting up.".format("1.1"))
if command_line_args.debug:
logger.info("Debug mode is active!")

View file

@ -378,7 +378,7 @@ async def compact_formatter(action, change, parsed_comment, categories, recent_c
wiki_name=change["logparams"].get("wiki", _("Unknown")), comment=parsed_comment)
elif action == "managewiki/namespaces-delete":
content = _(
"[{author}]({author_url}) deleted a namespace *{namespace_name}* on *{wiki_name}*{comment}").format(
"[{author}]({author_url}) deleted namespace *{namespace_name}* on *{wiki_name}*{comment}").format(
author=author, author_url=author_url,
namespace_name=change["logparams"].get("namespace", _("Unknown")),
wiki_name=change["logparams"].get("wiki", _("Unknown")), comment=parsed_comment)
@ -1005,7 +1005,7 @@ async def embed_formatter(action, change, parsed_comment, categories, recent_cha
embed["title"] = _("Locked a \"{wiki}\" wiki").format(wiki=change["logparams"].get("wiki", _("Unknown")))
link = create_article_path(change["title"], WIKI_ARTICLE_PATH)
elif action == "managewiki/namespaces":
embed["title"] = _("Modified a \"{namespace_name}\" namespace").format(namespace_name=change["logparams"].get("namespace", _("Unknown")))
embed["title"] = _("Modified \"{namespace_name}\" namespace").format(namespace_name=change["logparams"].get("namespace", _("Unknown")))
link = create_article_path(change["title"], WIKI_ARTICLE_PATH)
embed.add_field(_('Wiki'), change["logparams"].get("wiki", _("Unknown")))
elif action == "managewiki/namespaces-delete":