mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-25 20:41:21 -05:00
TextArt: Queue codes replies.
This commit is contained in:
parent
cbbf0634ae
commit
7e78b0c5f9
@ -1764,44 +1764,46 @@ class TextArt(callbacks.Plugin):
|
||||
|
||||
cq = wrap(cq)
|
||||
|
||||
def codes(self, irc, msg, args):
|
||||
def codes(self, irc, msg, args, optlist):
|
||||
"""
|
||||
Show a grid of IRC color codes.
|
||||
"""
|
||||
irc.reply(
|
||||
channel = msg.args[0]
|
||||
if not irc.isChannel(channel):
|
||||
channel = msg.nick
|
||||
optlist = dict(optlist)
|
||||
if "delay" in optlist:
|
||||
delay = optlist.get("delay")
|
||||
else:
|
||||
delay = self.registryValue("delay", msg.args[0])
|
||||
output = []
|
||||
output.append(
|
||||
"\x031,0000\x031,0101\x031,0202\x031,0303\x031,0404\x031,0505\x031,0606\x031,0707\x031,0808\x031,0909\x031,1010\x031,1111\x031,1212\x031,1313\x031,1414\x031,1515",
|
||||
prefixNick=False,
|
||||
)
|
||||
irc.reply(
|
||||
output.append(
|
||||
"\x031,1616\x031,1717\x031,1818\x031,1919\x031,2020\x031,2121\x031,2222\x031,2323\x031,2424\x031,2525\x031,2626\x031,2727",
|
||||
prefixNick=False,
|
||||
)
|
||||
irc.reply(
|
||||
output.append(
|
||||
"\x031,2828\x031,2929\x031,3030\x031,3131\x031,3232\x031,3333\x031,3434\x031,3535\x031,3636\x031,3737\x031,3838\x031,3939",
|
||||
prefixNick=False,
|
||||
)
|
||||
irc.reply(
|
||||
output.append(
|
||||
"\x031,4040\x031,4141\x031,4242\x031,4343\x031,4444\x031,4545\x031,4646\x031,4747\x031,4848\x031,4949\x031,5050\x031,5151",
|
||||
prefixNick=False,
|
||||
)
|
||||
irc.reply(
|
||||
output.append(
|
||||
"\x031,5252\x031,5353\x031,5454\x031,5555\x031,5656\x031,5757\x031,5858\x031,5959\x031,6060\x031,6161\x031,6262\x031,6363",
|
||||
prefixNick=False,
|
||||
)
|
||||
irc.reply(
|
||||
output.append(
|
||||
"\x031,6464\x031,6565\x031,6666\x031,6767\x031,6868\x031,6969\x031,7070\x031,7171\x031,7272\x031,7373\x031,7474\x031,7575",
|
||||
prefixNick=False,
|
||||
)
|
||||
irc.reply(
|
||||
output.append(
|
||||
"\x031,7676\x031,7777\x031,7878\x031,7979\x031,8080\x031,8181\x031,8282\x031,8383\x031,8484\x031,8585\x031,8686\x031,8787",
|
||||
prefixNick=False,
|
||||
)
|
||||
irc.reply(
|
||||
output.append(
|
||||
"\x031,8888\x031,8989\x031,9090\x031,9191\x031,9292\x031,9393\x031,9494\x031,9595\x031,9696\x031,9797\x031,9898\x031,9999",
|
||||
prefixNick=False,
|
||||
)
|
||||
asyncio.run(self.reply(irc, output, channel, delay))
|
||||
|
||||
codes = wrap(codes)
|
||||
codes = wrap(codes, [getopts({"delay": "float"})])
|
||||
|
||||
|
||||
Class = TextArt
|
||||
|
Loading…
x
Reference in New Issue
Block a user