From 311dcac07116bd014f4476f554f87dfc09fa193b Mon Sep 17 00:00:00 2001 From: c0de Date: Mon, 3 Oct 2022 20:08:27 -0500 Subject: [PATCH] Fix import paths --- GhostBallBot/database/__init__.py | 0 GhostBallBot/discord_client/__init__.py | 0 GhostBallBot/game.py | 2 +- GhostBallBot/main.py | 6 +++--- 4 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 GhostBallBot/database/__init__.py create mode 100644 GhostBallBot/discord_client/__init__.py diff --git a/GhostBallBot/database/__init__.py b/GhostBallBot/database/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/GhostBallBot/discord_client/__init__.py b/GhostBallBot/discord_client/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/GhostBallBot/game.py b/GhostBallBot/game.py index 86fa832..896ae3d 100644 --- a/GhostBallBot/game.py +++ b/GhostBallBot/game.py @@ -6,7 +6,7 @@ import uuid import dateparser -from .database.models import database, GameModel, GuessModel +from database.models import database, GameModel, GuessModel class Game: """ diff --git a/GhostBallBot/main.py b/GhostBallBot/main.py index e2f21bb..fab2e84 100644 --- a/GhostBallBot/main.py +++ b/GhostBallBot/main.py @@ -5,11 +5,11 @@ import os from pathlib import Path -from .discord_client import client -from .database.models import DATABASE, database, create_models +from discord_client.client import GhostBallClient +from database.models import DATABASE, database, create_models if __name__ == '__main__': - client = GhostBallClient() + client = GhostBallClient(intents=None) client.run(os.environ.get('discord_token')) # Set up the database if we haven't already