fixed joke to remove new lines
authorGeorgios Atheridis <atheridis@tutamail.com>
Sat, 13 Aug 2022 23:38:09 +0000 (23:38 +0000)
committerGeorgios Atheridis <atheridis@tutamail.com>
Sat, 13 Aug 2022 23:38:09 +0000 (23:38 +0000)
skgyorugo/auto_messages/jokes.py
skgyorugo/commands/Q.py
skgyorugo/main.py

index ee98a47d0ef1966d7c909bdb6365607d7aec8412..bbb4eb861a803a17e3f1239c0449e604e835e765 100644 (file)
@@ -20,6 +20,7 @@ def main(bot: Bot, message: Message):
         return
 
     data = json.loads(r.data.decode("utf-8"))
+    joke = data["joke"].replace("\r\n", " ")
     tools.smart_privmsg.send(
-        bot, message, f"{data['joke']} ||| Get more jokes by typing ?joke"
+        bot, message, f"{joke} ||| Get more jokes by typing ?joke"
     )
index b694929f7c8f6076ce8fa37f9046fb71bf58adb0..89e8ee6d8a561f47a45607fd96af06af691b590f 100644 (file)
@@ -19,7 +19,7 @@ PATH = os.path.join(PATH, "..")
 
 
 def main(bot: Bot, message: Message):
-    if random.random() < 0.09:
+    if random.random() < 0.02:
         q = [
             "https://imgur.com/d5qGioI",
             "https://imgur.com/oaMmxXI",
@@ -98,9 +98,9 @@ def main(bot: Bot, message: Message):
                 wait_list.append(user.display_name)
 
     if prio_queue:
-        msg = f"These people are playing with {message.channel}: {play_list} | These people are in Priority Queue: {prio_queue} | These people are in the Wait List: {wait_list}"
+        msg = f"These people are playing with {message.channel}: {play_list} | These people are in Priority Queue: {prio_queue} | These people are in the Wait List: {wait_list}."
     else:
-        msg = f"These people are playing with {message.channel}: {play_list} | These people are in the Wait List: {wait_list}"
+        msg = f"These people are playing with {message.channel}: {play_list} | These people are in the Wait List: {wait_list}."
     tools.smart_privmsg.send(
         bot,
         message,
index 1d1b327ddfcb35575c9ef26cec0d71a45777f1fe..30ee0c0043fe755fb606660f510194d7d64ce56b 100644 (file)
@@ -113,7 +113,7 @@ def start(bot: Bot, message: Message, stop_event: Event):
         started = tools.smart_start_stream_time.update_start_stream_timestamp()
         if started == "START":
             bot.send_privmsg(
-                message.channel, "Stream has started, you can now use ?join"
+                message.channel, "/announce Stream has started, you can now use ?join"
             )
         elif started == "END":
             bot.send_privmsg(message.channel, "Stream has ended")