diff options
author | AnInternetTroll <lucafulger@gmail.com> | 2020-05-29 16:54:19 +0000 |
---|---|---|
committer | AnInternetTroll <lucafulger@gmail.com> | 2020-05-29 16:54:19 +0000 |
commit | 74767a86e68b98cfeced0e89e4eaf4943202d9b6 (patch) | |
tree | 55a1fcfae77df7064972b1966b57e02e80964706 /cogs | |
parent | 57521e686eae6e4e37bcfb7bdf954976420aebb3 (diff) | |
parent | 526e25fcd8c13a1978394a909e52700c0dcb2dfe (diff) | |
download | steve-bot-74767a86e68b98cfeced0e89e4eaf4943202d9b6.tar steve-bot-74767a86e68b98cfeced0e89e4eaf4943202d9b6.tar.gz steve-bot-74767a86e68b98cfeced0e89e4eaf4943202d9b6.tar.bz2 steve-bot-74767a86e68b98cfeced0e89e4eaf4943202d9b6.tar.lz steve-bot-74767a86e68b98cfeced0e89e4eaf4943202d9b6.tar.xz steve-bot-74767a86e68b98cfeced0e89e4eaf4943202d9b6.tar.zst steve-bot-74767a86e68b98cfeced0e89e4eaf4943202d9b6.zip |
Merge branch 'master' of https://github.com/AnInternetTroll/mcbeDiscordBot
Diffstat (limited to 'cogs')
-rwxr-xr-x | cogs/utils.py | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/cogs/utils.py b/cogs/utils.py index 950455a..f1cfeba 100755 --- 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 @@ -166,6 +169,57 @@ class Utils(commands.Cog): img.save("leaderboard.png", "PNG") await ctx.send(file=discord.File("leaderboard.png")) + + # Why? Because I can. lel + + # celeste guyToday at 6:13 PM + # @Mango Man that's not how it works + + # Mango ManToday at 6:13 PM + # it looks fine in lightmode + # wait whats not how what works + + # celeste guyToday at 6:13 PM + # the command + + # Mango ManToday at 6:13 PM + # o + # how does it work + + # celeste guyToday at 6:14 PM + # Like for a start, nothing is defined + # use ctx D: + + # Mango ManToday at 6:14 PM + # Do I need to though? + + # celeste guyToday at 6:14 PM + # ctx.guild.members() or something + # Yes, server is not a thing + # 2nd, mention is not used like that + # You still have to send a message + # And mention in the message + + # Mango ManToday at 6:14 PM + # o + + # celeste guyToday at 6:15 PM + # 3rd, don't forget to import choice from random + + # Mango ManToday at 6:15 PM + # this is why you dont steal code from github + # I actually feel embarrased over forgetting to import random + + # celeste guyToday at 6:15 PM + # 4th, add ctx in the arguments list, or you'll get an error like "function takes 1 argument but 2 were given" + # And you will use it to send the message and get the server + # Also forgetting the import is the least embarrassing thing + # Since I did remove it + # And replaced with import randint from random + + @commands.command() + async def someone(self, ctx): + await ctx.send(choice(ctx.guild.members).mention) def setup(bot): bot.add_cog(Utils(bot)) |