File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ def __init__(
78
78
)
79
79
)
80
80
self .command_execute_history : dict [str , dict [int , bool ]] = {}
81
+ self .notified_dm_log : list [int ] = []
81
82
82
83
# Loads the file config, which includes things like the token
83
84
self .load_file_config ()
@@ -265,6 +266,13 @@ async def on_message(self: Self, message: discord.Message) -> None:
265
266
and message .author .id != owner .id
266
267
and not message .author .bot
267
268
):
269
+ if message .author .id not in self .notified_dm_log :
270
+ self .notified_dm_log .append (message .author .id )
271
+ await message .author .send (
272
+ "All DMs sent to this bot are permanently logged and not "
273
+ "regularly checked. No responses will be given to any messages."
274
+ )
275
+
268
276
attachment_urls = ", " .join (a .url for a in message .attachments )
269
277
content_string = f'"{ message .content } "' if message .content else ""
270
278
attachment_string = f"({ attachment_urls } )" if attachment_urls else ""
You can’t perform that action at this time.
0 commit comments