This commit is contained in:
2023-05-05 17:44:48 +02:00
parent 1a40ffb4a6
commit b60a78e75a
8 changed files with 564 additions and 15 deletions
+19
View File
@@ -0,0 +1,19 @@
import discord
from discord.ext import commands
from discord import app_commands
class SlashInvite(commands.Cog):
def __init__(self, client):
self.client = client
@commands.Cog.listener()
async def on_ready(self):
print("SlashInvite.py is ready")
@app_commands.command(name="invite", description="Tells you in how many servers sonar is active and gives an invite link with it")
async def invite(self, interaction: discord.Interaction):
link = "https://discord.com/api/oauth2/authorize?client_id=1100115547515011182&permissions=414464862272&scope=bot"
await interaction.response.send_message("I'm already in " + str(len(self.client.guilds)) + " servers!\n" + "Invite me now using:\n " + link)
async def setup(client):
await client.add_cog(SlashInvite(client))