aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2019-09-14 17:33:44 +0200
committerGravatar Leon Sandøy <[email protected]>2019-09-14 17:33:44 +0200
commit75428c457c527ed7411685c006e5fe700c68b9a3 (patch)
tree4d4b796e66ad1ab6f7ffd404421d25591896d714
parentDon't allow tag invocations in #checkpoint. (diff)
Fixes all URLs in the Site cog.
This changes URLs for stuff like FAQ, rules, and the Asking Good Questions page to fit the Django format.
-rw-r--r--bot/cogs/site.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/bot/cogs/site.py b/bot/cogs/site.py
index 37bf4f4ea..b5e63fb41 100644
--- a/bot/cogs/site.py
+++ b/bot/cogs/site.py
@@ -9,7 +9,7 @@ from bot.pagination import LinePaginator
log = logging.getLogger(__name__)
-INFO_URL = f"{URLs.site_schema}{URLs.site}/info"
+PAGES_URL = f"{URLs.site_schema}{URLs.site}/pages"
class Site:
@@ -46,7 +46,7 @@ class Site:
async def site_resources(self, ctx: Context):
"""Info about the site's Resources page."""
- url = f"{INFO_URL}/resources"
+ url = f"{PAGES_URL}/resources"
embed = Embed(title="Resources")
embed.set_footer(text=url)
@@ -63,9 +63,9 @@ class Site:
async def site_help(self, ctx: Context):
"""Info about the site's Getting Help page."""
- url = f"{INFO_URL}/help"
+ url = f"{PAGES_URL}/asking-good-questions"
- embed = Embed(title="Getting Help")
+ embed = Embed(title="Asking Good Questions")
embed.set_footer(text=url)
embed.colour = Colour.blurple()
embed.description = (
@@ -80,7 +80,7 @@ class Site:
async def site_faq(self, ctx: Context):
"""Info about the site's FAQ page."""
- url = f"{INFO_URL}/faq"
+ url = f"{PAGES_URL}/frequently-asked-questions"
embed = Embed(title="FAQ")
embed.set_footer(text=url)
@@ -105,7 +105,7 @@ class Site:
**`rules`:** The rules a user wants to get.
"""
rules_embed = Embed(title='Rules', color=Colour.blurple())
- rules_embed.url = f"{URLs.site_schema}{URLs.site}/about/rules"
+ rules_embed.url = f"{PAGES_URL}/rules"
if not rules:
# Rules were not submitted. Return the default description.