Kill supporthelper

This commit is contained in:
nin0dev 2024-06-28 16:49:06 -04:00
parent e9e726569e
commit 05e9f6872b

View file

@ -1,33 +0,0 @@
import discord
from discord import app_commands
from discord.ext import commands
from selfcord import Client
import os
import util
class SupportHelper(commands.Cog):
def __init__(self, bot: commands.Bot, user: selfcord.Client) -> None:
self.bot = bot
self.user = user
@app_commands.command(name="rule5", description="Call out retards that @ me")
@app_commands.allowed_installs(guilds=False, users=True)
@app_commands.allowed_contexts(guilds=True, dms=True, private_channels=True)
async def rule5(self, interaction: discord.Interaction, target: discord.User) -> None:
embed = discord.Embed()
embed.title = "Rule 5"
embed.description = "Avoid pinging anyone in support, or DMing for support. Don't ask for support elsewhere than in <#1026515880080842772>. Be patient when receiving support. You may lose access to support if you break this rule repeatedly."
await interaction.response.send_message(content=target.mention, embed=embed)
@app_commands.command(name="donor", description="How to claim your Vencord Premium perks")
@app_commands.allowed_installs(guilds=False, users=True)
@app_commands.allowed_contexts(guilds=True, dms=True, private_channels=True)
async def donor(self, interaction: discord.Interaction, target: discord.User) -> None:
embed = discord.Embed()
embed.title = "Claim donor perks"
embed.description = "To claim your Vencord donor perks, you can DM <@343383572805058560> (username `vending.machine`)."
embed.add_field(name="I can't send the DM!", value="It means **your** DMs are closed. Make sure that they are open in the Vencord Server.")
await interaction.response.send_message(content=target.mention, embed=embed, allowed_mentions=discord.AllowedMentions(users=False))
async def setup(bot: commands.Bot) -> None:
await bot.add_cog(SupportHelper(bot))