Parcourir la source

changed roxbot logging commands here so they no longer store the message themselves. But rather the output. This is for GDPR reasons. So we don't store user messages outside of what they can see and request to be removed. And rather move the identification of the user making roxbot output that message be linking the user with the outputs message ID.

changed roxbot logging commands here so they no longer store the message themselves. But rather the output. This is for GDPR reasons. So we don't store user messages outside of what they can see and request to be removed. And rather move the identification of the user making roxbot output that message be linking the user with the outputs message ID.
tags/v1.8.0
Roxie Gibson il y a 6 ans
Parent
révision
b2ba8e5d8c
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. +4
    -4
      roxbot/cogs/fun.py

+ 4
- 4
roxbot/cogs/fun.py Voir le fichier

@@ -287,7 +287,7 @@ class Fun:
WIDE_MAP = dict((i, i + 0xFEE0) for i in range(0x21, 0x7F))
WIDE_MAP[0x20] = 0x3000
converted = str(convert).translate(WIDE_MAP)
await ctx.send(converted)
output = await ctx.send(converted)

logging = roxbot.guild_settings.get(ctx.guild).logging
log_channel = self.bot.get_channel(logging["channel"])
@@ -296,7 +296,7 @@ class Fun:
log_channel,
"aesthetics",
User=ctx.author,
Argument_Given=convert,
Output_Message_ID=output.id,
Channel=ctx.channel,
Channel_Mention=ctx.channel.mention,
Time="{:%a %Y/%m/%d %H:%M:%S} UTC".format(ctx.message.created_at)
@@ -439,7 +439,7 @@ class Fun:
for _ in range(zalgo_num):
zalgoised.append(random.choice(zalgo_chars))
response = random.choice(zalgo_chars).join(zalgoised)
await ctx.send(response)
output = await ctx.send(response)

logging = roxbot.guild_settings.get(ctx.guild).logging
log_channel = self.bot.get_channel(logging["channel"])
@@ -448,7 +448,7 @@ class Fun:
log_channel,
"zalgo",
User=ctx.author,
Argument_Given=text,
Output_Message_ID=output.id,
Channel=ctx.channel,
Channel_Mention=ctx.channel.mention,
Time="{:%a %Y/%m/%d %H:%M:%S} UTC".format(ctx.message.created_at)

Chargement…
Annuler
Enregistrer