Skip to content

Commit

Permalink
Fix daily command
Browse files Browse the repository at this point in the history
  • Loading branch information
tesence committed Sep 17, 2024
1 parent 349612e commit bdd5e29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gumo/modules/seed.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ async def daily(self, interaction: discord.Interaction,
seed_name = datetime.now(zoneinfo.ZoneInfo('US/Pacific')).strftime("%Y-%m-%d")
seed_settings = {s[0]: s[1] for s in interaction.namespace if not s[0].startswith('variation')}
variations = (s[1] for s in interaction.namespace if s[0].startswith('variation'))
message, files = await self._get_seed_message(seed_name=seed_name, **seed_settings, variations=variations)
return await interaction.followup.send(content=message, files=files)
message, file = await self._get_seed_message(seed_name=seed_name, **seed_settings, variations=variations)
return await interaction.followup.send(content=message, files=[file])

async def _get_seed_message(self, seed_name: str = None, logic_mode: str = None, key_mode: str = None,
goal_mode: str = None, spawn: str = None, variations: tuple = (),
Expand Down

0 comments on commit bdd5e29

Please sign in to comment.