diff options
author | Mango0x45 <thomasvoss@live.com> | 2021-01-18 21:52:11 +0000 |
---|---|---|
committer | Mango0x45 <thomasvoss@live.com> | 2021-01-18 21:52:11 +0000 |
commit | 1ea6811b645b4dc6591b84c93d6b5f3ab4f25c83 (patch) | |
tree | 32006b6f9eee83857fdeb20dfa10df5275885beb /cogs | |
parent | 8b638a8f56aeadbddcbc272c0c08051afc95665c (diff) | |
parent | d6fa43d18f6e30a39d14250d5b1eabf7c503e568 (diff) | |
download | steve-bot-1ea6811b645b4dc6591b84c93d6b5f3ab4f25c83.tar steve-bot-1ea6811b645b4dc6591b84c93d6b5f3ab4f25c83.tar.gz steve-bot-1ea6811b645b4dc6591b84c93d6b5f3ab4f25c83.tar.bz2 steve-bot-1ea6811b645b4dc6591b84c93d6b5f3ab4f25c83.tar.lz steve-bot-1ea6811b645b4dc6591b84c93d6b5f3ab4f25c83.tar.xz steve-bot-1ea6811b645b4dc6591b84c93d6b5f3ab4f25c83.tar.zst steve-bot-1ea6811b645b4dc6591b84c93d6b5f3ab4f25c83.zip |
Merge branch 'master' of github.com:MCBE-Speedrunning/Steve-Bot
Diffstat (limited to 'cogs')
-rwxr-xr-x | cogs/general.py | 4 | ||||
-rwxr-xr-x | cogs/utils.py | 2 |
2 files changed, 3 insertions, 3 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):
diff --git a/cogs/utils.py b/cogs/utils.py index e1d217c..b1bb62f 100755 --- a/cogs/utils.py +++ b/cogs/utils.py @@ -415,7 +415,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] = { |