links: Move guide text to config too

Final change of today, I promise.
This commit is contained in:
Ave Ozkal 2020-04-21 01:31:04 +03:00
parent 287cdd0cc3
commit 8027a5a169
No known key found for this signature in database
GPG key ID: 398DD7BD03276F6D
2 changed files with 14 additions and 21 deletions

View file

@ -36,27 +36,8 @@ class Links(Cog):
@commands.command(hidden=True, aliases=["guides", "link"])
async def guide(self, ctx):
"""Link to the guide(s)"""
await ctx.send(
"**Generic starter guides:**\n"
"Nintendo Homebrew's Guide: "
"<https://nh-server.github.io/switch-guide/>\n"
# "AtlasNX's Guide: "
# "<https://switch.homebrew.guide>\n"
# "Pegaswitch Guide: <https://switch.hacks.guide/> "
# "(outdated for anything but Pegaswitch/3.0.0)\n"
"\n**Specific guides:**\n"
"Manually Updating/Downgrading (with HOS): "
"<https://switch.homebrew.guide/usingcfw/manualupgrade>\n"
"Manually Repairing/Downgrading (without HOS): "
"<https://switch.homebrew.guide/usingcfw/manualchoiupgrade>\n"
"How to set up a Homebrew development environment: "
"<https://devkitpro.org/wiki/Getting_Started>\n"
"Getting full RAM in homebrew without NSPs: "
"as of Atmosphere 0.8.6, hold R while opening any game.\n"
"Check if a switch is vulnerable to RCM through serial: "
"<https://akdm.github.io/ssnc/checker/>"
)
"""Link to the guides"""
await ctx.send(config.links_guide_text)
@commands.command()
async def source(self, ctx):

View file

@ -173,6 +173,18 @@ list_files_channel = 0
# Channels that are lists that are controlled by the lists cog.
list_channels = []
# == For cogs.links ==
links_guide_text = """**Generic starter guides:**
Nintendo Homebrew's Guide: <https://nh-server.github.io/switch-guide/>
**Specific guides:**
Manually Updating/Downgrading (with HOS): <https://switch.homebrew.guide/usingcfw/manualupgrade>
Manually Repairing/Downgrading (without HOS): <https://switch.homebrew.guide/usingcfw/manualchoiupgrade>
How to set up a Homebrew development environment: <https://devkitpro.org/wiki/Getting_Started>
Getting full RAM in homebrew without NSPs: As of Atmosphere 0.8.6, hold R while opening any game.
Check if a switch is vulnerable to RCM through serial: <https://akdm.github.io/ssnc/checker/>
"""
# == For cogs.verification ==
# ReSwitched verification system is rather unique.
# You might want to reimplement it.