Merge branch wdiscordbotserver:main into main

This commit is contained in:
ザカリアス・ウィリアム・ポージー 2025-05-22 19:20:00 +09:00
commit a952df3e6b

View File

@ -6,8 +6,8 @@ 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):
@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)",
@ -15,17 +15,17 @@ class Download(commands.Cog):
)
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):
@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/)",
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="ubuntu", description="Get the Ubuntu mirror link")
async def ubuntu(self, interaction: discord.Interaction):
@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)",
@ -33,17 +33,17 @@ class Download(commands.Cog):
)
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):
@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 (ARM64)",
description="[Click here to download VS Code for Windows (ARM64)](https://code.visualstudio.com/sha/download?build=stable&os=win32-arm64-user)",
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="vscode_mac", description="Get the Visual Studio Code installer for Mac (Universal)")
async def vscode_mac(self, interaction: discord.Interaction):
@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)",
@ -51,17 +51,14 @@ class Download(commands.Cog):
)
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)
@app_commands.command(name="download_windows_redist", description="Get the Windows Redist All-in-One package")
async def download_windows_redist(self, interaction: discord.Interaction):
embed = discord.Embed(
title="Download Windows Redist All-in-One",
description="[Click here to download windows_redist_allinone.zip](https://filehost.internettools.org/windows_redist_allinone.zip)",
color=discord.Color.teal()
)
await interaction.response.send_message(embed=embed)
async def setup(bot):
await bot.add_cog(Download(bot))