From 986f19f7ecf2a26525d69cf71dd87b7e6abe67a3 Mon Sep 17 00:00:00 2001 From: Skycloudd <51929172+Skycloudd@users.noreply.github.com> Date: Mon, 11 Jan 2021 03:18:21 +0100 Subject: changed bad randint to good choice --- cogs/general.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/general.py b/cogs/general.py index 6f5fef5..49bc7c9 100755 --- a/cogs/general.py +++ b/cogs/general.py @@ -3,7 +3,7 @@ import inspect import json import os import sys -from random import randint +from random import choice import dateutil.parser import discord @@ -388,7 +388,7 @@ class MyHelpCommand(commands.MinimalHelpCommand): return f"``{self.clean_prefix}{command.qualified_name} {command.signature}``" def get_ending_note(self) -> str: - return self.messages[randint(0, len(self.messages) - 1)] + return choice(self.messages) class General(commands.Cog): -- cgit v1.2.3 From d6fa43d18f6e30a39d14250d5b1eabf7c503e568 Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Sun, 17 Jan 2021 18:19:07 +0100 Subject: Fix :sad: emoji --- cogs/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/utils.py b/cogs/utils.py index 2e0bfc1..f27f14f 100755 --- a/cogs/utils.py +++ b/cogs/utils.py @@ -429,7 +429,7 @@ class Utils(commands.Cog): fairStreak = fair[userId]["streak"] + 1 else: fairStreak = 1 - await message.channel.send("streak lost. :sad:") + await message.channel.send("streak lost. <:sad:716629485449117708>") # only send && update if user is fairing for the first time today fair[userId] = { -- cgit v1.2.3