Skip to content

Commit fcda910

Browse files
author
Mark Saroufim
authored
Remove get-api-url command and help text (#460)
1 parent 0c622e0 commit fcda910

2 files changed

Lines changed: 0 additions & 19 deletions

File tree

src/kernelbot/cogs/leaderboard_cog.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,8 +635,6 @@ async def get_help(
635635
# Leaderboard Commands Help
636636
637637
## Basic Commands
638-
- `/get-api-url` \
639-
- For popcorn-cli users, get the API URL
640638
- `/leaderboard list` \
641639
- View all active leaderboards
642640
- `/leaderboard help` \

src/kernelbot/cogs/misc_cog.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
from typing import TYPE_CHECKING
32

43
import discord
@@ -51,19 +50,3 @@ async def verify_db(self, interaction: discord.Interaction):
5150
message = "Error interacting with the database"
5251
logger.error(f"{message}: {str(e)}", exc_info=True)
5352
await send_discord_message(interaction, f"{message}.")
54-
55-
@app_commands.command(name="get-api-url")
56-
async def get_api_url(self, interaction: discord.Interaction):
57-
if not os.environ.get("HEROKU_APP_DEFAULT_DOMAIN_NAME"):
58-
await send_discord_message(
59-
interaction,
60-
"No `HEROKU_APP_DEFAULT_DOMAIN_NAME` present,"
61-
" are you sure you aren't running locally?",
62-
ephemeral=True,
63-
)
64-
else:
65-
await send_discord_message(
66-
interaction,
67-
f"API URL: `https://{os.environ['HEROKU_APP_DEFAULT_DOMAIN_NAME'].rstrip('/')}`",
68-
ephemeral=True,
69-
)

0 commit comments

Comments
 (0)