mirror of
https://github.com/brandons209/Red-bot-Cogs.git
synced 2024-05-19 20:03:17 +12:00
Pagify and box messages for Victory list.
This commit is contained in:
parent
709efc1e29
commit
40ae941aed
|
@ -3,6 +3,7 @@
|
|||
# https://github.com/Redjumpman/Jumper-Plugins/blob/a5a55e3968cb366bf257cb0e886a1c30588e85ef/russianroulette/russianroulette.py
|
||||
#
|
||||
from redbot.core import bank, commands, checks, Config
|
||||
from redbot.core.utils.chat_formatting import *
|
||||
import asyncio, contextlib, discord, random, shlex
|
||||
|
||||
|
||||
|
@ -225,7 +226,9 @@ class Shootout(commands.Cog):
|
|||
partial.append("{}. {}".format(index, victory))
|
||||
|
||||
msg += "\n".join(partial)
|
||||
return await ctx.send(msg)
|
||||
for page in pagify(msg):
|
||||
await ctx.send(box(page))
|
||||
return
|
||||
|
||||
@soset_victory.command(name="add")
|
||||
async def soset_victory_add(self, ctx, *, victory: str):
|
||||
|
|
Loading…
Reference in a new issue