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/general.py | |
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/general.py')
-rwxr-xr-x | cogs/general.py | 4 |
1 files 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):
|