Renamed mot to word and data_dir to todos_dir
This commit is contained in:
parent
a77ed2868a
commit
3b4496de5b
|
@ -15,7 +15,7 @@ async def on_message(message: discord.Message):
|
|||
if "bonjour" in words:
|
||||
await channel.send("bien dormii ?? (˶ᵔᵕᵔ˶)₊˚⊹♡")
|
||||
|
||||
if any(mot in words for mot in ["oui", "ui", "ouai", "ouaip", "yes", "yep"]) and not message.content.__contains__("?"):
|
||||
if any(word in words for word in ["oui", "ui", "ouai", "ouaip", "yes", "yep"]) and not message.content.__contains__("?"):
|
||||
await channel.send("trow bienn~ (˶ᵔᵕᵔ˶) ‹𝟹")
|
||||
|
||||
if "<@1169377208893194275>" in words:
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
import os
|
||||
|
||||
class TodosManager:
|
||||
def __init__(self, data_dir="compteur_electrique_data/todos/"):
|
||||
def __init__(self, todos_dir="compteur_electrique_data/todos/"):
|
||||
try:
|
||||
os.makedirs(data_dir, exist_ok=True)
|
||||
os.makedirs(todos_dir, exist_ok=True)
|
||||
except OSError as error:
|
||||
print(f"Error during creation of \"{data_dir}\" directory")
|
||||
print(f"Error during creation of \"{todos_dir}\" directory")
|
||||
exit(1)
|
||||
self.data_dir=data_dir
|
||||
self.todos_dir=todos_dir
|
||||
|
||||
|
|
Loading…
Reference in New Issue