Invite command, CD on roll

This commit is contained in:
2023-05-04 21:21:45 +02:00
parent e9a8535e1c
commit 198057304f
3 changed files with 31 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
import discord
from discord.ext import commands
class Invite(commands.Cog):
def __init__(self, client):
self.client = client
@commands.Cog.listener()
async def on_ready(self):
print("Invite.py is ready")
@commands.command()
async def invite(self, ctx):
link = "https://discord.com/api/oauth2/authorize?client_id=1100115547515011182&permissions=414464862272&scope=bot"
await ctx.send("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(Invite(client))