From db7fa9b7b2c1f9fd01b7fa64e1db1df01b263991 Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Mon, 18 Feb 2019 19:17:46 +0300 Subject: [PATCH] community: add commandcommunity: add command --- cogs/links.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/cogs/links.py b/cogs/links.py index 670ee5e..1ef0d42 100644 --- a/cogs/links.py +++ b/cogs/links.py @@ -47,7 +47,8 @@ class Links: "Manually Repairing/Downgrading (without HOS): " "\n" "How to get started developing Homebrew: " - "\n" + "\n" "Use full RAM in homebrew without installing NSPs: " "") @@ -66,6 +67,22 @@ class Links: await ctx.send(f"{targetuser.mention}: A link to the rules " f"can be found here: {config.rules_url}") + @commands.command() + async def community(self, ctx, *, targetuser: discord.Member = None): + """Post a link to the community section of the rules""" + if not targetuser: + targetuser = ctx.author + await ctx.send(f"{targetuser.mention}: " + f"{config.rules_url}#member-roles-breakdown" + "\n\n" + "Community role allows access to the set of channels " + "on the community category (#off-topic, " + "#homebrew-development, #switch-hacking-general etc)." + "\n\n" + "What you need to get the rols is to be around, " + "be helpful and nice to people and " + "show an understanding of rules.") + def setup(bot): bot.add_cog(Links(bot))