From 587092ddfe083c745102055d8ceff999c237fec5 Mon Sep 17 00:00:00 2001 From: dnutiu Date: Fri, 26 Jan 2024 19:50:48 +0200 Subject: [PATCH] make game activity configurable --- src/bot/config/configurator.py | 1 + src/main.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bot/config/configurator.py b/src/bot/config/configurator.py index a5071ca..42a55d4 100644 --- a/src/bot/config/configurator.py +++ b/src/bot/config/configurator.py @@ -63,6 +63,7 @@ class DiscordSettings(BaseModel): Holds all the settings needed to configure the bot for Discord usage. """ + game_name: str = Field(default="RPG") token: str = Field() command_prefix: str = Field(default=".") diff --git a/src/main.py b/src/main.py index f5b0a0d..5b4d8e9 100644 --- a/src/main.py +++ b/src/main.py @@ -6,7 +6,9 @@ from src.bot.discord.bot import NucuBot def main(): settings = Settings() - bot = NucuBot.create(command_prefix=settings.discord.command_prefix) + bot = NucuBot.create( + command_prefix=settings.discord.command_prefix, game_name=settings.game_name + ) bot.run(settings.discord.token)