coollsd commited on
Commit
dd980b2
·
verified ·
1 Parent(s): c6894d5

Update sportbet.py

Browse files
Files changed (1) hide show
  1. sportbet.py +2 -3
sportbet.py CHANGED
@@ -173,8 +173,7 @@ class BetModal(discord.ui.Modal, title="Place Your Bet"):
173
  # Add other leagues here as needed.
174
  }
175
 
176
- # Corrected indentation here.
177
- scores_func_map[self.league]()
178
 
179
  sleep_duration =(game_start - datetime.now(timezone.utc)).total_seconds()
180
  if sleep_duration > 0:
@@ -310,4 +309,4 @@ async def show_current_bets (interaction :discord.Interaction ):
310
  @app_commands.command(name ="sportbet", description ="Bet on sports games")
311
  async def sportbet (interaction :discord.Interaction ):
312
  view=SportBetView()
313
- await interaction.response.send_message("Select a sport to bet on:", view=view ,ephemeral=False )
 
173
  # Add other leagues here as needed.
174
  }
175
 
176
+ fetch_scores_func_map["NFL"]()
 
177
 
178
  sleep_duration =(game_start - datetime.now(timezone.utc)).total_seconds()
179
  if sleep_duration > 0:
 
309
  @app_commands.command(name ="sportbet", description ="Bet on sports games")
310
  async def sportbet (interaction :discord.Interaction ):
311
  view=SportBetView()
312
+ await interaction.response.send_message("Select a sport to bet on:", view=view ,ephemeral=False )