From 73ff29ea229903ce2fdfa7f8cf2760b3fc7dc226 Mon Sep 17 00:00:00 2001 From: Thomas Voss <57815710+Mango0x45@users.noreply.github.com> Date: Fri, 29 May 2020 18:24:06 +0200 Subject: fixed it! --- cogs/utils.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cogs/utils.py') 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)) -- cgit v1.2.3 9ced8f2b7f09e1bbb41'/> MCBE's discord botLuca Matei Pintilie <luca@lucamatei.com>
aboutsummaryrefslogtreecommitdiff
path: root/utils/Makefile (unfollow)
Commit message (Expand)AuthorFilesLines
2021-07-03Adjust cooldown to per user.Samot191-1/+1
2021-07-03ReformattingLuca Matei Pintilie4-39/+3235
2021-07-03Small fixesSamot191-14/+15
2021-07-02Add support for boomersSamot191-11/+11
2021-06-24Readd stuff that was there.Samot191-2/+23
2021-06-24Add the caller's place on the fair leaderboard Samot191-26/+72
2021-05-24Remove conflicting commandaninternettroll1-48/+0
2021-05-24Add user-agent for xboxuser commandaninternettroll1-1/+3
2021-04-04Minor changesAnInternetTroll1-5/+17
2021-04-04ReformattingAnInternetTroll2-32/+48
2021-04-01Update utils.pySamot191-1/+1
2021-04-01Fair Leaderboard Samot191-8/+53
2021-03-26+ Fix "shut" emojiAhmad Ansori Palembani1-1/+1
2021-03-23Fix typo, add punctuation, and make wording clearer.Samot191-7/+7
2021-03-21Get only the queue, not everythingrandomidiot131-1/+1
2021-03-21Add !queuerandomidiot131-0/+44
2021-03-20remove embed from run rejection messageSkycloudd1-1/+1
2021-03-16hopefully fixed the ultraxd thingSkycloudd1-1/+1
2021-03-05Tabs to spacesMango0x451-526/+541
2021-03-05Educate new members on input rulesMango0x451-535/+526
2021-02-28Make !pending not max out at 200 runs per gamerandomidiot131-5/+16
2021-02-27Update aiohttp due to security vulnerabilityMango0x452-1/+2
2021-02-24Make !verified asynchronousAnInternetTroll2-38/+36
2021-02-20Add verified commandrandomidiot131-0/+45
2021-02-13Whitelist coop all bosses when rejecting spamMango0x451-1/+1
2021-02-13Remove useless importsMango0x454-6/+1
2021-02-13Add better spam preventionMango0x451-15/+22
2021-02-13Remove useless dependenciesMango0x451-10/+8