community: add commandcommunity: add command
This commit is contained in:
parent
fdbad1d4ee
commit
db7fa9b7b2
1 changed files with 18 additions and 1 deletions
|
@ -47,7 +47,8 @@ class Links:
|
||||||
"Manually Repairing/Downgrading (without HOS): "
|
"Manually Repairing/Downgrading (without HOS): "
|
||||||
"<https://guide.sdsetup.com/#/manualchoidowngrade>\n"
|
"<https://guide.sdsetup.com/#/manualchoidowngrade>\n"
|
||||||
"How to get started developing Homebrew: "
|
"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: "
|
"Use full RAM in homebrew without installing NSPs: "
|
||||||
"<https://gbatemp.net/threads/use-atmosphere-to-"
|
"<https://gbatemp.net/threads/use-atmosphere-to-"
|
||||||
"access-full-ram-with-homebrews-without-nsp.521240/>")
|
"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 "
|
await ctx.send(f"{targetuser.mention}: A link to the rules "
|
||||||
f"can be found here: {config.rules_url}")
|
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):
|
def setup(bot):
|
||||||
bot.add_cog(Links(bot))
|
bot.add_cog(Links(bot))
|
||||||
|
|
Loading…
Reference in a new issue