From 2362599c56547aae5c58ac63edf59ad55979bf6b Mon Sep 17 00:00:00 2001 From: NikolajDanger Date: Sun, 28 Mar 2021 16:00:00 +0200 Subject: [PATCH 1/2] Fixed bug in logging. --- funcs/miscFuncs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/funcs/miscFuncs.py b/funcs/miscFuncs.py index 80be512..d7d7fae 100644 --- a/funcs/miscFuncs.py +++ b/funcs/miscFuncs.py @@ -113,7 +113,7 @@ def logThis(messages : Union[str, list], channel = "", level = 20): else: messages[x] = localtime+" ("+channel+") - "+msg - if len(messages) == 1: + if len(messages) > 1: messages[0] += " (details in log)" if level != 10: From cca0368efa5a0520acd1bd144f47e5648ccbb6a5 Mon Sep 17 00:00:00 2001 From: NikolajDanger Date: Sun, 28 Mar 2021 16:03:09 +0200 Subject: [PATCH 2/2] :bug: !Stop only causes git pull when not in testing mode. --- funcs/funcs.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/funcs/funcs.py b/funcs/funcs.py index b50f7b4..a06b187 100644 --- a/funcs/funcs.py +++ b/funcs/funcs.py @@ -33,8 +33,9 @@ class Funcs(): self.bot.database["trivia questions"].delete_many({}) self.bot.database["blackjack games"].delete_many({}) - g = git.cmd.Git("") - g.pull() + if not self.bot.options.testing: + g = git.cmd.Git("") + g.pull() def fiarReactionTest(self,channel,message,user): game = self.bot.database["4 in a row games"].find_one({"_id":str(channel.id)})