This commit is contained in:
NikolajDanger
2021-02-01 15:37:50 +01:00
parent c89a772392
commit 6decee0cb3

View File

@ -226,7 +226,7 @@ class BedreNetflix():
messageText, allDownloaded = await self.genDownloadList()
if messageText.startswith("```"):
updatesLeft = 20
messageText = messageText[:-3]+"\nThis message will update once every 30 seconds for "+str(math.floor(updatesLeft/2))+" more minutes\n```"
messageText = messageText[:-3]+"\nThis message will update once every 30 seconds for "+str(math.ceil(updatesLeft/2))+" more minutes\n```"
oldMessage = await ctx.send(messageText)
@ -234,7 +234,7 @@ class BedreNetflix():
await asyncio.sleep(30)
updatesLeft -= 1
messageText, allDownloaded = await self.genDownloadList()
messageText = messageText[:-3]+"\nThis message will update once every 30 seconds for "+str(math.floor(updatesLeft/2))+" more minutes\n```"
messageText = messageText[:-3]+"\nThis message will update once every 30 seconds for "+str(math.ceil(updatesLeft/2))+" more minutes\n```"
await oldMessage.edit(content = messageText)
messageText, allDownloaded = await self.genDownloadList()