diff --git a/config.yaml b/config.yaml index df1bb49..e10fffc 100644 --- a/config.yaml +++ b/config.yaml @@ -1,3 +1,4 @@ discord: + game_name: "Pathfinder 2E" command_prefix: "." token: \ No newline at end of file diff --git a/src/bot/discord/bot.py b/src/bot/discord/bot.py index 5408758..ca9a15e 100644 --- a/src/bot/discord/bot.py +++ b/src/bot/discord/bot.py @@ -12,9 +12,13 @@ class NucuBot(bot.Bot): self._logger = logging.getLogger(__name__) @staticmethod - def create(command_prefix: str = ".") -> "NucuBot": + def create(command_prefix: str = ".", game_name: str = "RPG") -> "NucuBot": intents = disnake.Intents.all() - discord_bot = NucuBot(intents=intents, command_prefix=command_prefix) + discord_bot = NucuBot( + intents=intents, + command_prefix=command_prefix, + activity=disnake.Game(name=game_name), + ) discord_bot.add_cog(DiceCog(discord_bot)) return discord_bot