From cca0368efa5a0520acd1bd144f47e5648ccbb6a5 Mon Sep 17 00:00:00 2001 From: NikolajDanger Date: Sun, 28 Mar 2021 16:03:09 +0200 Subject: [PATCH] :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)})