This commit is contained in:
2024-10-29 15:20:28 +01:00
parent eb2960aa10
commit e955ef4e28
34 changed files with 201 additions and 476 deletions

9
gwendolyn/exceptions.py Normal file
View File

@@ -0,0 +1,9 @@
class NoToken(Exception):
def __init__(self) -> None:
self.message = "No discord bot token has been set in the .env file"
super().__init__(self.message)
class MongoCannotConnect(Exception):
def __init__(self) -> None:
self.message = "Cannot connect to the mongo client"
super().__init__(self.message)