diff --git a/main.py b/main.py index e0aee92..e0365ab 100644 --- a/main.py +++ b/main.py @@ -14,12 +14,13 @@ from commands.edit_entry import edit_entry_cmd from commands.one_o_one import one_o_one from commands import hgs +from commands.shiba import random_shiba import sys # load environment vars (from .env) load_dotenv() -prod = len(sys.argv) > 1 and sys.argv[1] == 'prod' -TOKEN = os.getenv('DISCORD_TOKEN_DEV' if not prod else 'DISCORD_TOKEN') +prod = len(sys.argv) > 1 and sys.argv[1] == "prod" +TOKEN = os.getenv("DISCORD_TOKEN_DEV" if not prod else "DISCORD_TOKEN") GUILD = os.getenv("DISCORD_GUILD") deployment_date = datetime.datetime.now() @@ -43,6 +44,7 @@ async def test_slash_command(interaction: discord.Interaction): await interaction.response.send_message("https://placetw.com/") + # * simple echo command with param explanation @tree.command( name="echo", @@ -67,6 +69,7 @@ async def test_slash_command(interaction: discord.Interaction): """ await interaction.response.send_message(msg) + # * register commands from other files fetch_entry_cmd.register_commands(tree, this_guild) fetch_entry_ui.register_commands(tree, this_guild) @@ -74,6 +77,7 @@ async def test_slash_command(interaction: discord.Interaction): # edit_entry_modal.register_commands(tree, this_guild, client) edit_entry_cmd.register_commands(tree, this_guild, client) hgs.register_commands(tree, this_guild) +random_shiba.register_commands(tree, this_guild) # sync the slash commands to server