diff options
author | Skycloudd <benkrassenburg@gmail.com> | 2021-07-05 16:32:49 +0000 |
---|---|---|
committer | Skycloudd <benkrassenburg@gmail.com> | 2021-07-05 16:32:49 +0000 |
commit | 752b658049772327ee633b3c0b4bdcea3bef0dfe (patch) | |
tree | b391f2f1172c3fb09002f24245b94362f1232b85 /cogs | |
parent | 7aa6608f34907ed7f716a5f7905edfc9bccac69d (diff) | |
download | steve-bot-752b658049772327ee633b3c0b4bdcea3bef0dfe.tar steve-bot-752b658049772327ee633b3c0b4bdcea3bef0dfe.tar.gz steve-bot-752b658049772327ee633b3c0b4bdcea3bef0dfe.tar.bz2 steve-bot-752b658049772327ee633b3c0b4bdcea3bef0dfe.tar.lz steve-bot-752b658049772327ee633b3c0b4bdcea3bef0dfe.tar.xz steve-bot-752b658049772327ee633b3c0b4bdcea3bef0dfe.tar.zst steve-bot-752b658049772327ee633b3c0b4bdcea3bef0dfe.zip |
fix run weblinks
Diffstat (limited to 'cogs')
-rwxr-xr-x | cogs/src.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cogs/src.py b/cogs/src.py index fae933c..ff9ad8a 100755 --- a/cogs/src.py +++ b/cogs/src.py @@ -8,7 +8,9 @@ from discord.ext import commands, tasks class SubmittedRun: - def __init__(self, game, _id, category, video, players, duration, _type, values): + def __init__( + self, game, _id, category, video, players, duration, _type, link, values + ): self.game = game self._id = _id self.category = category @@ -16,7 +18,7 @@ class SubmittedRun: self.players = players self.duration = duration self._type = _type - self.link = f"https://www.speedrun.com/{game}/run/{_id}" + self.link = link self.values = values @@ -178,8 +180,10 @@ async def pendingRuns(self, ctx): # Get the values of the run for the duplicate remover values = run["values"] + link = run["weblink"] + pending_run = SubmittedRun( - game, _id, category, video, players, duration, _type, values + game, _id, category, video, players, duration, _type, link, values ) pending_runs.append(pending_run) |