diff options
Diffstat (limited to 'cogs/Invite.py')
-rw-r--r-- | cogs/Invite.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/cogs/Invite.py b/cogs/Invite.py new file mode 100644 index 0000000..b0e7a8a --- /dev/null +++ b/cogs/Invite.py @@ -0,0 +1,27 @@ +from discord.ext import commands +import discord +import importlib +import utils +importlib.reload(utils) + + +class Invite(commands.Cog): + def __init__(self, bot): + self.bot = bot + + @commands.command(aliases=[], application_command_meta=commands.ApplicationCommandMeta(options=[])) + async def invite(self, ctx, *arg): + """Invite me to another server!""" + emb = await utils.embed(ctx, + "Invite Link:", + "[Invite Synthy to join your server.](https://discordapp.com/oauth2/authorize?client_id=459056626377293824&scope=bot&permissions=335932512)") + await ctx.send(embed=emb) + +def setup(bot): + print("INFO: Loading [Invite]... ", end="") + bot.add_cog(Invite(bot)) + print("Done!") + + +def teardown(bot): + print("INFO: Unloading [Invite]") |