diff --git a/src/reminders.py b/src/reminders.py index fa99559..59cb7be 100644 --- a/src/reminders.py +++ b/src/reminders.py @@ -22,8 +22,8 @@ def setup(bot): "original_time_spec": time } try: - time = util.parse_time(time) now = datetime.now(tz=timezone.utc) + time = util.parse_time(time) except: await ctx.send(embed=util.error_embed("Invalid time (wrong format/too large/non-integer months or years)")) return diff --git a/src/telephone.py b/src/telephone.py index db78c0f..e9d2adb 100644 --- a/src/telephone.py +++ b/src/telephone.py @@ -70,7 +70,7 @@ def setup(bot): if other_webhook: await discord.Webhook.from_url(other_webhook, adapter=discord.AsyncWebhookAdapter(bot.http._HTTPClient__session)).send( content=message.content, username=message.author.name, avatar_url=message.author.avatar_url, - allowed_mentions=discord.AllowedMentions(everyone=False)) + allowed_mentions=discord.AllowedMentions(everyone=False, roles=False, users=False)) else: m = f"**{message.author.name}**: " m += message.content[:2000 - len(m)] @@ -80,7 +80,6 @@ def setup(bot): @telephone.command() @commands.check(server_mod_check) async def setup(ctx): - await ctx.send("Configuring...") num = generate_address(ctx) await ctx.send(f"Your address is {num}.") info = await get_addr_config(num)