This commit is contained in:
Juni
2022-04-14 22:53:13 -04:00
parent ab749a3665
commit c787091388

View File

@@ -94,7 +94,7 @@ class ReactQuote(commands.Cog):
if(query == ""): if(query == ""):
"""case random""" """case random"""
num = randrange(len(quotes)) num = randrange(len(quotes))
embed = await self._buildQuote(ctx, quotes[num], num+1) embed = await self._buildQuote(ctx, quotes[num-1], num)
await ctx.send(embed=embed) await ctx.send(embed=embed)
elif(re.search("^\d+$", query) is not None): elif(re.search("^\d+$", query) is not None):
"""case id""" """case id"""
@@ -150,7 +150,8 @@ class ReactQuote(commands.Cog):
logChan = ctx.guild.get_channel(settings["outputChannel"]) logChan = ctx.guild.get_channel(settings["outputChannel"])
formattedMsg = { formattedMsg = {
"messageText": quote, "messageText": quote,
"authorId": member.id "authorId": member.id,
"messageId": None
} }
embed = await self._buildQuote(ctx, formattedMsg, numQuotes) embed = await self._buildQuote(ctx, formattedMsg, numQuotes)
await logChan.send(embed=embed) await logChan.send(embed=embed)