From d6be4e282b7c32f96dbbef2966be5ecba69984e3 Mon Sep 17 00:00:00 2001 From: Georgios Atheridis Date: Sun, 29 May 2022 21:27:14 +0000 Subject: [PATCH] changed queue to Q --- skgyorugo/commands/{queue.py => Q.py} | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) rename skgyorugo/commands/{queue.py => Q.py} (81%) diff --git a/skgyorugo/commands/queue.py b/skgyorugo/commands/Q.py similarity index 81% rename from skgyorugo/commands/queue.py rename to skgyorugo/commands/Q.py index 6d8cfd9..743a73e 100644 --- a/skgyorugo/commands/queue.py +++ b/skgyorugo/commands/Q.py @@ -4,6 +4,7 @@ import logging import ttv_api.users import sqlite3 import tools.smart_privmsg +import random logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) @@ -27,6 +28,28 @@ PATH = os.path.join(PATH, "..") def main(bot: Bot, message: Message): + if random.random() < 0.09: + q = [ + "https://imgur.com/d5qGioI", + "https://imgur.com/oaMmxXI", + "https://imgur.com/4btWipx", + "https://imgur.com/VvvD8d8", + "https://imgur.com/v7oflTv", + "https://imgur.com/MSnBNDz", + "https://imgur.com/x2pPkvw", + "https://imgur.com/xZgFcYG", + ] + msg = ( + "You wanted to see the queue, but instead you got visited by the Q. monkaW " + ) + msg += random.choice(q) + tools.smart_privmsg.send( + bot, + message, + msg, + reply=message.tags["id"], + ) + return conn = sqlite3.connect(os.path.join(PATH, "lol_data.db")) c = conn.cursor() -- 2.30.2