diff --git a/Dockerfile b/Dockerfile index e5e5064..1850210 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # Copyright 2022 - c0de # Licensed under the MIT License (https://opensource.org/licenses/MIT) -# Build with: docker build -t ghotballbot: . +# Build with: docker build -t baseballbot: . # Run with: docker run -it FROM python:3.10-alpine3.16 AS build @@ -13,6 +13,6 @@ COPY . . FROM build AS run ENV discord_token "" -ENV database_path "/tmp/ghostball.db" +ENV database_path "/tmp/baseball.db" CMD ["python", "/app/main.py"] diff --git a/database/models.py b/database/models.py index e2a483e..57e7447 100644 --- a/database/models.py +++ b/database/models.py @@ -22,7 +22,7 @@ from peewee import ( ) # User can provide path to database, or it will be put next to main.py -DATABASE = os.environ.get("database_path", os.getcwd() + "/ghostball.db") +DATABASE = os.environ.get("database_path", os.getcwd() + "/baseball.db") database = SqliteDatabase(DATABASE, pragmas={"foreign_keys": 1}) diff --git a/discord_client/client.py b/discord_client/client.py index 06fecde..4ffa815 100644 --- a/discord_client/client.py +++ b/discord_client/client.py @@ -5,7 +5,7 @@ # pylint: disable=wrong-import-position """ - A discord bot that hosts Ghostball/Braveball. + A discord bot that hosts Baseball/Braveball. A discord game where players guess the pitch speed from a fantasy baseball pitcher, and whoever is @@ -21,7 +21,7 @@ sys.path.append("..") from game.manager import GameManager -class GhostBallClient(discord.Client): +class BaseBallClient(discord.Client): """ Implementation of a Discord client that will monitor a channel for messages, and if it recieves a message diff --git a/main.py b/main.py index 7ebc396..877cee1 100644 --- a/main.py +++ b/main.py @@ -7,7 +7,7 @@ import os from discord import Intents -from discord_client.client import GhostBallClient +from discord_client.client import BaseBallClient from database.models import DATABASE, database, create_models if __name__ == "__main__": @@ -17,5 +17,5 @@ if __name__ == "__main__": create_models() database.close() - client = GhostBallClient(intents=Intents.all()) + client = BaseBallClient(intents=Intents.all()) client.run(os.environ.get("discord_token"))