misc(seautils): switch to datatracker.ietf.org links for publicly facing urls
This commit is contained in:
parent
f51329524c
commit
037a26deb0
1 changed files with 3 additions and 2 deletions
|
@ -206,6 +206,7 @@ class SeaUtils(commands.Cog):
|
||||||
This command uses the [RFC Editor website](https://www.rfc-editor.org/) to fetch the text of an RFC document.
|
This command uses the [RFC Editor website](https://www.rfc-editor.org/) to fetch the text of an RFC document.
|
||||||
A [Request for Comments (RFC)](https://en.wikipedia.org/wiki/Request_for_Comments) is a publication in a series from the principal technical development and standards-setting bodies for the [Internet](https://en.wikipedia.org/wiki/Internet), most prominently the [Internet Engineering Task Force](https://en.wikipedia.org/wiki/Internet_Engineering_Task_Force). An RFC is authored by individuals or groups of engineers and [computer scientists](https://en.wikipedia.org/wiki/Computer_scientist) in the form of a [memorandum](https://en.wikipedia.org/wiki/Memorandum) describing methods, behaviors, research, or innovations applicable to the working of the Internet and Internet-connected systems. It is submitted either for [peer review](https://en.wikipedia.org/wiki/Peer_review) or to convey new concepts, information, or, occasionally, engineering humor.""" # noqa: E501
|
A [Request for Comments (RFC)](https://en.wikipedia.org/wiki/Request_for_Comments) is a publication in a series from the principal technical development and standards-setting bodies for the [Internet](https://en.wikipedia.org/wiki/Internet), most prominently the [Internet Engineering Task Force](https://en.wikipedia.org/wiki/Internet_Engineering_Task_Force). An RFC is authored by individuals or groups of engineers and [computer scientists](https://en.wikipedia.org/wiki/Computer_scientist) in the form of a [memorandum](https://en.wikipedia.org/wiki/Memorandum) describing methods, behaviors, research, or innovations applicable to the working of the Internet and Internet-connected systems. It is submitted either for [peer review](https://en.wikipedia.org/wiki/Peer_review) or to convey new concepts, information, or, occasionally, engineering humor.""" # noqa: E501
|
||||||
url = f"https://www.rfc-editor.org/rfc/rfc{number}.html"
|
url = f"https://www.rfc-editor.org/rfc/rfc{number}.html"
|
||||||
|
datatracker_url = f"https://datatracker.ietf.org/doc/rfc{number}"
|
||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
async with session.get(url=url) as response:
|
async with session.get(url=url) as response:
|
||||||
if response.status == 200:
|
if response.status == 200:
|
||||||
|
@ -221,7 +222,7 @@ class SeaUtils(commands.Cog):
|
||||||
if await ctx.embed_requested():
|
if await ctx.embed_requested():
|
||||||
embed = Embed(
|
embed = Embed(
|
||||||
title=f"RFC Document {number}",
|
title=f"RFC Document {number}",
|
||||||
url=url,
|
url=datatracker_url,
|
||||||
description=page,
|
description=page,
|
||||||
color=await ctx.embed_color()
|
color=await ctx.embed_color()
|
||||||
)
|
)
|
||||||
|
@ -232,7 +233,7 @@ class SeaUtils(commands.Cog):
|
||||||
if await ctx.embed_requested():
|
if await ctx.embed_requested():
|
||||||
embed = Embed(
|
embed = Embed(
|
||||||
title=f"RFC Document {number}",
|
title=f"RFC Document {number}",
|
||||||
url=url,
|
url=datatracker_url,
|
||||||
description=text,
|
description=text,
|
||||||
color=await ctx.embed_color()
|
color=await ctx.embed_color()
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue