From 78d00c8203a059fe84700c838758c452e372c484 Mon Sep 17 00:00:00 2001 From: Dylan Fox Date: Tue, 9 Jan 2018 14:58:41 -0800 Subject: [PATCH 1/2] Add invite and server commands --- discordbot/titanembeds/commands.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/discordbot/titanembeds/commands.py b/discordbot/titanembeds/commands.py index 3ee25b0..a58b2e3 100644 --- a/discordbot/titanembeds/commands.py +++ b/discordbot/titanembeds/commands.py @@ -32,3 +32,9 @@ class Commands(): discriminator = int(content[2][content[2].find("#") + 1:]) if "#" in content[2] else None reason = await self.database.revoke_unauth_user_by_query(message.server.id, username, discriminator) await self.client.send_message(message.channel, message.author.mention + " " + reason) + + async def invite(self, message): + await self.client.send_message(message.channel, "You can invite Titan to your server by clicking this link: https://discordapp.com/oauth2/authorize?&client_id=299403260031139840&scope=bot&permissions=641195117") + + async def invite(self, message): + await self.client.send_message(message.channel, "Join the Titan Embeds Discord server! https://discord.io/Titan") From 0ba1a56ade8c14e58d86dd2b1b76995d3d4eb278 Mon Sep 17 00:00:00 2001 From: "Jeremy \"EndenDragon\" Zhang" Date: Tue, 9 Jan 2018 17:07:28 -0800 Subject: [PATCH 2/2] Rename server command to server Because you can't really have two commands named the same, yeah? --- discordbot/titanembeds/commands.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/discordbot/titanembeds/commands.py b/discordbot/titanembeds/commands.py index a58b2e3..8f8df61 100644 --- a/discordbot/titanembeds/commands.py +++ b/discordbot/titanembeds/commands.py @@ -34,7 +34,8 @@ class Commands(): await self.client.send_message(message.channel, message.author.mention + " " + reason) async def invite(self, message): - await self.client.send_message(message.channel, "You can invite Titan to your server by clicking this link: https://discordapp.com/oauth2/authorize?&client_id=299403260031139840&scope=bot&permissions=641195117") + await self.client.send_message(message.channel, "You can invite Titan to your server by visiting this link: https://discordapp.com/oauth2/authorize?&client_id=299403260031139840&scope=bot&permissions=641195117") + + async def server(self, message): + await self.client.send_message(message.channel, "Join the Titan Embeds Discord server! https://discord.gg/pFDDtcN") - async def invite(self, message): - await self.client.send_message(message.channel, "Join the Titan Embeds Discord server! https://discord.io/Titan")