aboutsummaryrefslogtreecommitdiff
path: root/cogs/utils.py
diff options
context:
space:
mode:
authorMango0x45 <thomasvoss@live.com>2021-02-13 19:24:46 +0000
committerMango0x45 <thomasvoss@live.com>2021-02-13 19:24:46 +0000
commit8a14da0b5f0d2299452e9b48bf01d09abfba2507 (patch)
tree874c95ab9fb247b3a4b2771c3bc1e4fc7ce02307 /cogs/utils.py
parent3cc231887c09c518d77a0ac9c343d147250d710a (diff)
downloadsteve-bot-8a14da0b5f0d2299452e9b48bf01d09abfba2507.tar
steve-bot-8a14da0b5f0d2299452e9b48bf01d09abfba2507.tar.gz
steve-bot-8a14da0b5f0d2299452e9b48bf01d09abfba2507.tar.bz2
steve-bot-8a14da0b5f0d2299452e9b48bf01d09abfba2507.tar.lz
steve-bot-8a14da0b5f0d2299452e9b48bf01d09abfba2507.tar.xz
steve-bot-8a14da0b5f0d2299452e9b48bf01d09abfba2507.tar.zst
steve-bot-8a14da0b5f0d2299452e9b48bf01d09abfba2507.zip
Remove useless dependencies
Diffstat (limited to '')
-rwxr-xr-xcogs/utils.py18
1 files changed, 8 insertions, 10 deletions
diff --git a/cogs/utils.py b/cogs/utils.py
index ea8fa75..5ce55fd 100755
--- a/cogs/utils.py
+++ b/cogs/utils.py
@@ -10,7 +10,7 @@ from datetime import timedelta
from random import choice, randint
import discord
-from discord.ext import commands, tasks
+from discord.ext import commands
from pytz import exceptions, timezone
# forgot to import this (randint) and ended up looking mentally unstable
@@ -394,7 +394,7 @@ class Utils(commands.Cog):
# *Don't* ask
if message.author.id == 289721817516605440: # An ultra special dude
text = (
- unicodedata.normalize("NFD", text)
+ unicodedata.normalize("NFD", message.context)
.encode("ascii", "ignore")
.decode("utf-8")
)
@@ -541,14 +541,12 @@ class Utils(commands.Cog):
async def leaderboard(self, ctx):
"""Leaderboard of the people that matter"""
async with ctx.typing():
- try:
- lbFunc = functools.partial(save_leaderboard)
- await self.bot.loop.run_in_executor(None, lbFunc)
- await ctx.send(file=discord.File("leaderboard.png"))
- except:
- await ctx.send(
- "https://aninternettroll.github.io/mcbeVerifierLeaderboard/"
- )
+ # try:
+ # lbFunc = functools.partial(save_leaderboard)
+ # await self.bot.loop.run_in_executor(None, lbFunc)
+ # await ctx.send(file=discord.File("leaderboard.png"))
+ # except:
+ await ctx.send("https://aninternettroll.github.io/mcbeVerifierLeaderboard/")
@commands.cooldown(1, 60, commands.BucketType.guild)
@commands.command()