aboutsummaryrefslogtreecommitdiff
path: root/cogs/utils.py
diff options
context:
space:
mode:
authorAnInternetTroll <lucafulger@gmail.com>2020-07-27 18:24:49 +0000
committerAnInternetTroll <lucafulger@gmail.com>2020-07-27 18:24:49 +0000
commit27c6a4a11ecfecfc5c989c96d9b236e89faf5984 (patch)
tree6051f1725c70651ddc326f2c395ee0af0cd3286f /cogs/utils.py
parentfd4212d1a930aa72a84d8d380e22c3d89f206130 (diff)
parent85779b58d4b3b4b37ead36a68c8beacf0e2c554e (diff)
downloadsteve-bot-27c6a4a11ecfecfc5c989c96d9b236e89faf5984.tar
steve-bot-27c6a4a11ecfecfc5c989c96d9b236e89faf5984.tar.gz
steve-bot-27c6a4a11ecfecfc5c989c96d9b236e89faf5984.tar.bz2
steve-bot-27c6a4a11ecfecfc5c989c96d9b236e89faf5984.tar.lz
steve-bot-27c6a4a11ecfecfc5c989c96d9b236e89faf5984.tar.xz
steve-bot-27c6a4a11ecfecfc5c989c96d9b236e89faf5984.tar.zst
steve-bot-27c6a4a11ecfecfc5c989c96d9b236e89faf5984.zip
Merge branch 'master' of github.com:AnInternetTroll/mcbeDiscordBot
Diffstat (limited to '')
-rwxr-xr-xcogs/utils.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/cogs/utils.py b/cogs/utils.py
index bacf5e6..ab9bc42 100755
--- a/cogs/utils.py
+++ b/cogs/utils.py
@@ -118,7 +118,7 @@ class Utils(commands.Cog):
return
else:
await ctx.send(error)
- #await ctx.send(f"{ctx.message.author.display_name}, you have to wait {round(error.retry_after, 7)} seconds before using this again.")
+ #await ctx.send(f"{discord.utils.escape_mentions(ctx.message.author.display_name)}, you have to wait {round(error.retry_after, 7)} seconds before using this again.")
@commands.command()
async def findsleep(self, ctx):
@@ -147,15 +147,15 @@ class Utils(commands.Cog):
# Add extra comment based on number of sleepHrs
if sleepHrs == 0:
- await ctx.send(f"{ctx.message.author.display_name} -> your sleep is 0 hours long - nice try \:D")
+ await ctx.send(f"{discord.utils.escape_mentions(ctx.message.author.display_name)} -> your sleep is 0 hours long - nice try \:D")
elif sleepHrs <= 5:
if sleepHrs == 1:
s = ''
else:
s = 's'
- await ctx.send(f"{ctx.message.author.display_name} -> your sleep is {sleepHrs} hour{s} long - {lessSleepMsg[randint(0, len(lessSleepMsg) - 1)]}")
+ await ctx.send(f"{discord.utils.escape_mentions(ctx.message.author.display_name)} -> your sleep is {sleepHrs} hour{s} long - {lessSleepMsg[randint(0, len(lessSleepMsg) - 1)]}")
else:
- await ctx.send(f"{ctx.message.author.display_name} -> your sleep is {sleepHrs} hours long - {moreSleepMsg[randint(0, len(moreSleepMsg) - 1)]}")
+ await ctx.send(f"{discord.utils.escape_mentions(ctx.message.author.display_name)} -> your sleep is {sleepHrs} hours long - {moreSleepMsg[randint(0, len(moreSleepMsg) - 1)]}")
@commands.Cog.listener()
async def on_member_join(self, member):
@@ -234,7 +234,7 @@ class Utils(commands.Cog):
async def leaderboard_handler(self,ctx,error):
if isinstance(error, commands.CommandOnCooldown):
#return
- await ctx.send(f"{ctx.message.author.display_name}, you have to wait {round(error.retry_after, 2)} seconds before using this again.")
+ await ctx.send(f"{discord.utils.escape_mentions(ctx.message.author.display_name)}, you have to wait {round(error.retry_after, 2)} seconds before using this again.")
@commands.cooldown(1, 60, commands.BucketType.guild)
@commands.command()