56 lines
2.8 KiB
Python

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="download_open_otp", description="Get the OpenOTP installer link")
async def download_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="download_archlinux", description="Get the Arch Linux ISO link")
async def download_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/archlinux-2025.05.01-x86_64.iso)",
color=discord.Color.green()
)
await interaction.response.send_message(embed=embed)
@app_commands.command(name="download_ubuntu", description="Get the Ubuntu mirror link")
async def download_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="download_vscode_windows", description="Get the Visual Studio Code installer for Windows.")
async def download_vscode_windows(self, interaction: discord.Interaction):
embed = discord.Embed(
title="Download Visual Studio Code for Windows.",
description="[Click here to download VS Code for Windows.](https://code.visualstudio.com/sha/download?build=stable&os=win32-x64-user)",
color=discord.Color.purple()
)
await interaction.response.send_message(embed=embed)
@app_commands.command(name="download_vscode_mac", description="Get the Visual Studio Code installer for Mac (Universal)")
async def download_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)
async def setup(bot):
await bot.add_cog(Download(bot))