summaryrefslogtreecommitdiff
path: root/cogs/Invite.py
diff options
context:
space:
mode:
authorlexicade <jasonnlelong@gmail.com>2023-01-27 21:06:30 +0000
committerlexicade <jasonnlelong@gmail.com>2023-01-27 21:06:30 +0000
commit52801b4de1d63cd01191acf7fcee137977140ec0 (patch)
tree08271a1f1e3e8060486b6651c67c9934867c648e /cogs/Invite.py
parent8df873808c86805624851356f5dea76ec621de23 (diff)
Project initHEADmain
Diffstat (limited to 'cogs/Invite.py')
-rw-r--r--cogs/Invite.py27
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]")