🧹 PEP updating
This commit is contained in:
@ -91,9 +91,9 @@ class Trivia():
|
||||
|
||||
return question, answers, correctAnswer
|
||||
else:
|
||||
logMessage = "There was already a trivia question for that channel"
|
||||
self.bot.log(logMessage)
|
||||
return self.bot.longStrings["Trivia going on"], "", ""
|
||||
log_message = "There was already a trivia question for that channel"
|
||||
self.bot.log(log_message)
|
||||
return self.bot.long_strings["Trivia going on"], "", ""
|
||||
|
||||
def triviaAnswer(self, user: str, channel: str, command: str):
|
||||
"""
|
||||
@ -182,10 +182,10 @@ class Trivia():
|
||||
self.triviaCountPoints(channelId)
|
||||
|
||||
deleteGameParams = ["trivia questions", channelId]
|
||||
self.bot.databaseFuncs.deleteGame(*deleteGameParams)
|
||||
self.bot.database_funcs.deleteGame(*deleteGameParams)
|
||||
|
||||
self.bot.log("Time's up for the trivia question", channelId)
|
||||
sendMessage = self.bot.longStrings["Trivia time up"]
|
||||
sendMessage = self.bot.long_strings["Trivia time up"]
|
||||
formatParams = [chr(correctAnswer), options[correctAnswer-97]]
|
||||
sendMessage = sendMessage.format(*formatParams)
|
||||
await ctx.send(sendMessage)
|
||||
|
Reference in New Issue
Block a user