module init, helpers class, custom exceptions

This commit is contained in:
Xevion
2021-01-23 20:36:02 -06:00
parent 73c9dd26b5
commit 3e58ec7c87
3 changed files with 29 additions and 0 deletions

0
bot/__init__.py Normal file
View File

14
bot/exceptions.py Normal file
View File

@@ -0,0 +1,14 @@
class UnbelievableException(BaseException):
pass
class BlackjackException(UnbelievableException):
pass
class NoAceValue(BlackjackException):
pass
class IndetermineValue(BlackjackException):
pass

15
bot/helpers.py Normal file
View File

@@ -0,0 +1,15 @@
from pprint import pprint
import discord
def print(embed: discord.Embed) -> None:
pprint((
embed.title,
embed.description,
embed.footer,
embed.color,
embed.fields,
embed.author,
embed.timestamp
))