Browse Source

better logging with dates!

tags/v1.7.0
Roxie Gibson 6 years ago
parent
commit
2eaa8bd2c9
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      roxbot/cogs/fun.py
  2. +2
    -1
      roxbot/cogs/reddit.py

+ 1
- 1
roxbot/cogs/fun.py View File

@@ -248,7 +248,7 @@ class Fun:

logging = roxbot.guild_settings.get(ctx.guild).logging
log_channel = self.bot.get_channel(logging["channel"])
await roxbot.log(ctx.guild, log_channel, "aesthetics", User=ctx.author, Argument_Given=convert, Channel=ctx.channel, Channel_Mention=ctx.channel.mention)
await roxbot.log(ctx.guild, log_channel, "aesthetics", User=ctx.author, Argument_Given=convert, Channel=ctx.channel, Channel_Mention=ctx.channel.mention, Time="{:%a %Y/%m/%d %H:%M:%S} UTC".format(ctx.message.created_at))

@bot.command(aliases=["ft", "frog"])
async def frogtips(self, ctx):

+ 2
- 1
roxbot/cogs/reddit.py View File

@@ -154,7 +154,8 @@ class Reddit():
Subreddit=subreddit,
Returned="<{}>".format(url),
Channel=ctx.channel,
Channel_Mention=ctx.channel.mention
Channel_Mention=ctx.channel.mention,
Time="{:%a %Y/%m/%d %H:%M:%S} UTC".format(ctx.message.created_at)
)

# Not using a embed here because we can't use video in rich embeds but they work in embeds now :/

Loading…
Cancel
Save