:Sparkles: Converted all hex functionality to slash commands

This commit is contained in:
NikolajDanger
2021-04-05 23:06:30 +02:00
parent aea2875957
commit d3936fa1a9
6 changed files with 321 additions and 307 deletions

View File

@ -53,10 +53,10 @@ class databaseFuncs():
def getName(self, userID):
user = self.bot.database["users"].find_one({"_id":userID})
if user != None:
return user["user name"]
elif userID == f"#{self.bot.user.id}":
if userID == f"#{self.bot.user.id}":
return "Gwendolyn"
elif user != None:
return user["user name"]
else:
self.bot.log(f"Couldn't find user {userID}")
return userID
@ -78,6 +78,7 @@ class databaseFuncs():
self.bot.database["blackjack games"].delete_many({})
self.bot.database["connect 4 games"].delete_many({})
self.bot.database["hangman games"].delete_many({})
self.bot.database["hex games"].delete_many({})
if not self.bot.options.testing:
g = git.cmd.Git("")