changed logFile to md and fixed no name in commands
This commit is contained in:
parent
169599dff5
commit
6ddb040f89
8 changed files with 13 additions and 6 deletions
|
|
@ -73,12 +73,12 @@ class Command:
|
|||
return False
|
||||
|
||||
def log(self, message: discord.Message):
|
||||
logMSG = (self.commandName + " request sent:\n\t-in: " + str(message.channel.name) + "\n\t- at: " + str(
|
||||
datetime.now())[:-7] + "\n\t- by: " + str(message.author) + "\n\t- content: '" + str(
|
||||
LogMSG = ("## " + self.commandName + " request sent:\n* in: " + str(message.channel.name) + "\n* at: " + str(
|
||||
datetime.now())[:-7] + "\n* by: " + str(message.author) + "\n* content: '" + str(
|
||||
message.content) + "'\n")
|
||||
print(logMSG)
|
||||
with open("requests.log", "a") as f:
|
||||
f.write(logMSG)
|
||||
print(LogMSG)
|
||||
with open("requests.md", "a") as f:
|
||||
f.write(LogMSG)
|
||||
|
||||
async def checkSumname(self, sumname, message: discord.Message):
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue