diff --git a/cogs/files.py b/cogs/files.py new file mode 100644 index 0000000..012d0e2 --- /dev/null +++ b/cogs/files.py @@ -0,0 +1,67 @@ +import discord +from discord import app_commands +from discord.ext import commands + +class Download(commands.Cog): + def __init__(self, bot): + self.bot = bot + + @app_commands.command(name="open_otp", description="Get the OpenOTP installer link") + async def open_otp(self, interaction: discord.Interaction): + embed = discord.Embed( + title="Download OpenOTP Installer", + description="[Click here to download OpenOTPInstaller.exe](https://filehost.internettools.org/OpenOTPInstaller.exe)", + color=discord.Color.blue() + ) + await interaction.response.send_message(embed=embed) + + @app_commands.command(name="archlinux", description="Get the Arch Linux ISO link") + async def archlinux(self, interaction: discord.Interaction): + embed = discord.Embed( + title="Download Arch Linux ISO", + description="[Click here to download Arch Linux 2025.05.01 ISO](https://ftpmirror.infania.net/mirror/archlinux/iso/2025.05.01/)", + color=discord.Color.green() + ) + await interaction.response.send_message(embed=embed) + + @app_commands.command(name="ubuntu", description="Get the Ubuntu mirror link") + async def ubuntu(self, interaction: discord.Interaction): + embed = discord.Embed( + title="Download Ubuntu (Mirror)", + description="[Click here for the Ubuntu mirror](https://launchpad.net/ubuntu/+mirror/ftp.yz.yamagata-u.ac.jp-release)", + color=discord.Color.orange() + ) + await interaction.response.send_message(embed=embed) + + @app_commands.command(name="vscode_windows", description="Get the Visual Studio Code installer for Windows (ARM64)") + async def vscode_windows(self, interaction: discord.Interaction): + embed = discord.Embed( + title="Download Visual Studio Code for Windows (ARM64)", + description="[Click here to download VS Code for Windows (ARM64)](https://code.visualstudio.com/sha/download?build=stable&os=win32-arm64-user)", + color=discord.Color.purple() + ) + await interaction.response.send_message(embed=embed) + + @app_commands.command(name="vscode_mac", description="Get the Visual Studio Code installer for Mac (Universal)") + async def vscode_mac(self, interaction: discord.Interaction): + embed = discord.Embed( + title="Download Visual Studio Code for Mac (Universal)", + description="[Click here to download VS Code for Mac (Universal)](https://code.visualstudio.com/sha/download?build=stable&os=darwin-universal)", + color=discord.Color.dark_purple() + ) + await interaction.response.send_message(embed=embed) + + @app_commands.guild_only() + @app_commands.group(name="download", description="Download useful files") + async def download(self, interaction: discord.Interaction): + # This is just the group command, not directly callable + pass + + download.add_command(open_otp) + download.add_command(archlinux) + download.add_command(ubuntu) + download.add_command(vscode_windows) + download.add_command(vscode_mac) + +async def setup(bot): + await bot.add_cog(Download(bot)) diff --git a/cogs/who.is.py b/cogs/who.is.py new file mode 100644 index 0000000..e69de29