From 8027a5a169efe3c46b88d32115378d3ef7c8c872 Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Tue, 21 Apr 2020 01:31:04 +0300 Subject: [PATCH] links: Move guide text to config too Final change of today, I promise. --- cogs/links.py | 23 ++--------------------- config_template.py | 12 ++++++++++++ 2 files changed, 14 insertions(+), 21 deletions(-) diff --git a/cogs/links.py b/cogs/links.py index 5c25284..226d4ad 100644 --- a/cogs/links.py +++ b/cogs/links.py @@ -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: " - "\n" - # "AtlasNX's Guide: " - # "\n" - # "Pegaswitch Guide: " - # "(outdated for anything but Pegaswitch/3.0.0)\n" - "\n**Specific guides:**\n" - "Manually Updating/Downgrading (with HOS): " - "\n" - "Manually Repairing/Downgrading (without HOS): " - "\n" - "How to set up a Homebrew development environment: " - "\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: " - "" - ) + """Link to the guides""" + await ctx.send(config.links_guide_text) @commands.command() async def source(self, ctx): diff --git a/config_template.py b/config_template.py index fced247..219f099 100644 --- a/config_template.py +++ b/config_template.py @@ -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: + +**Specific guides:** +Manually Updating/Downgrading (with HOS): +Manually Repairing/Downgrading (without HOS): +How to set up a Homebrew development environment: +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: +""" + # == For cogs.verification == # ReSwitched verification system is rather unique. # You might want to reimplement it.