diff options
author | Thomas Voss <57815710+Mango0x45@users.noreply.github.com> | 2021-01-13 13:37:40 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-13 13:37:40 +0000 |
commit | f0aef73fa58f7969ea8bdecc32699b5cb73c481a (patch) | |
tree | ef4c31daa249da789e190231941507d017b0493a /cogs | |
parent | 1c4ab84de4804bb2824bd6cf071821a8e1892e24 (diff) | |
parent | 986f19f7ecf2a26525d69cf71dd87b7e6abe67a3 (diff) | |
download | steve-bot-f0aef73fa58f7969ea8bdecc32699b5cb73c481a.tar steve-bot-f0aef73fa58f7969ea8bdecc32699b5cb73c481a.tar.gz steve-bot-f0aef73fa58f7969ea8bdecc32699b5cb73c481a.tar.bz2 steve-bot-f0aef73fa58f7969ea8bdecc32699b5cb73c481a.tar.lz steve-bot-f0aef73fa58f7969ea8bdecc32699b5cb73c481a.tar.xz steve-bot-f0aef73fa58f7969ea8bdecc32699b5cb73c481a.tar.zst steve-bot-f0aef73fa58f7969ea8bdecc32699b5cb73c481a.zip |
Merge pull request #39 from Skycloudd/patch-2
changed bad randint to good choice
Diffstat (limited to 'cogs')
-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):
|