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"
)
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",
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,
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")