aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <57815710+Mango0x45@users.noreply.github.com>2020-05-29 16:24:06 +0000
committerGitHub <noreply@github.com>2020-05-29 16:24:06 +0000
commit73ff29ea229903ce2fdfa7f8cf2760b3fc7dc226 (patch)
treeb7dc0042fc8b73d6a8548a3bd0e1a87f0c34f91a
parentf68961ffdbcdcfed214bc80c8c31c93bf5dbd8cc (diff)
downloadsteve-bot-73ff29ea229903ce2fdfa7f8cf2760b3fc7dc226.tar
steve-bot-73ff29ea229903ce2fdfa7f8cf2760b3fc7dc226.tar.gz
steve-bot-73ff29ea229903ce2fdfa7f8cf2760b3fc7dc226.tar.bz2
steve-bot-73ff29ea229903ce2fdfa7f8cf2760b3fc7dc226.tar.lz
steve-bot-73ff29ea229903ce2fdfa7f8cf2760b3fc7dc226.tar.xz
steve-bot-73ff29ea229903ce2fdfa7f8cf2760b3fc7dc226.tar.zst
steve-bot-73ff29ea229903ce2fdfa7f8cf2760b3fc7dc226.zip
fixed it!
-rw-r--r--cogs/utils.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/cogs/utils.py b/cogs/utils.py
index 07c65f4..09a7284 100644
--- a/cogs/utils.py
+++ b/cogs/utils.py
@@ -5,6 +5,9 @@ import requests
import json
import asyncio
import datetime
+# forgot to import this and ended up looking mentally unstable
+# troll literally pointed out atleast 4 things I did wrong in 3 lines of code
+from random import choice
from random import randint
from datetime import timedelta
from selenium import webdriver
@@ -169,8 +172,8 @@ class Utils(commands.Cog):
# Why? Because I can. lel
@commands.command()
- async def someone(self):
- await random.choice(server.members).mention
+ async def someone(self, ctx):
+ await ctx.send(choice(ctx.guild.members).mention)
def setup(bot):
bot.add_cog(Utils(bot))