gdpr agreements

This commit is contained in:
Klemek
2021-04-09 14:57:55 +02:00
parent 0550a16c51
commit 6a70663201
5 changed files with 157 additions and 53 deletions
+11 -2
View File
@@ -5,8 +5,15 @@ import logging
import re
import discord
from utils import no_duplicate, get_intro, delta
from logs import GuildLogs, ChannelLogs, MessageLog, ALREADY_RUNNING, CANCELLED
from utils import no_duplicate, get_intro, delta, gdpr
from logs import (
GuildLogs,
ChannelLogs,
MessageLog,
ALREADY_RUNNING,
CANCELLED,
NO_FILE,
)
class Scanner(ABC):
@@ -106,6 +113,8 @@ class Scanner(ABC):
"An analysis is already running on this server, please be patient.",
reference=message,
)
elif total_msg == NO_FILE:
await message.channel.send(gdpr.TEXT)
else:
self.msg_count = 0
self.total_msg = 0