diff options
author | Skycloudd <51929172+Skycloudd@users.noreply.github.com> | 2021-01-11 02:18:21 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-11 02:18:21 +0000 |
commit | 986f19f7ecf2a26525d69cf71dd87b7e6abe67a3 (patch) | |
tree | ef4c31daa249da789e190231941507d017b0493a /cogs | |
parent | 1c4ab84de4804bb2824bd6cf071821a8e1892e24 (diff) | |
download | steve-bot-986f19f7ecf2a26525d69cf71dd87b7e6abe67a3.tar steve-bot-986f19f7ecf2a26525d69cf71dd87b7e6abe67a3.tar.gz steve-bot-986f19f7ecf2a26525d69cf71dd87b7e6abe67a3.tar.bz2 steve-bot-986f19f7ecf2a26525d69cf71dd87b7e6abe67a3.tar.lz steve-bot-986f19f7ecf2a26525d69cf71dd87b7e6abe67a3.tar.xz steve-bot-986f19f7ecf2a26525d69cf71dd87b7e6abe67a3.tar.zst steve-bot-986f19f7ecf2a26525d69cf71dd87b7e6abe67a3.zip |
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):
|