Merge pull request #4 from NikolajDanger/stop-bug

Fixed bug in !stop
This commit is contained in:
NikolajDanger
2021-03-28 17:05:42 +02:00
committed by GitHub
2 changed files with 4 additions and 3 deletions

View File

@ -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)})

View File

@ -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: