community: add commandcommunity: add command

This commit is contained in:
Ave Ozkal 2019-02-18 19:17:46 +03:00
parent fdbad1d4ee
commit db7fa9b7b2
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

View file

@ -47,7 +47,8 @@ class Links:
"Manually Repairing/Downgrading (without HOS): "
"<https://guide.sdsetup.com/#/manualchoidowngrade>\n"
"How to get started developing Homebrew: "
"<https://gbatemp.net/threads/tutorial-switch-homebrew-development.507284/>\n"
"<https://gbatemp.net/threads/"
"tutorial-switch-homebrew-development.507284/>\n"
"Use full RAM in homebrew without installing NSPs: "
"<https://gbatemp.net/threads/use-atmosphere-to-"
"access-full-ram-with-homebrews-without-nsp.521240/>")
@ -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))