1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-01 21:02:38 +00:00

Remove forwarding of messages due to privacy concerns

This commit is contained in:
Myned 2020-02-13 14:28:53 -05:00
parent 3dd3647aa4
commit 152aafea6e
No known key found for this signature in database
GPG key ID: E0C1E07EC22E19C8

View file

@ -94,12 +94,6 @@ async def on_ready():
async def on_message(message): async def on_message(message):
if not u.config['selfbot']: if not u.config['selfbot']:
if message.author is not bot.user and not message.author.bot and message.author.id not in u.block['user_ids']: if message.author is not bot.user and not message.author.bot and message.author.id not in u.block['user_ids']:
if (message.guild is None
and message.author.id != u.config['owner_id']
and not any(s in u.config['prefix'] for s in (message.content[:1], message.content[:2]))):
await bot.get_user(u.config['owner_id']).send(
f'**{message.author.id}:**\n{message.content}')
await bot.process_commands(message) await bot.process_commands(message)
else: else:
if not message.author.bot: if not message.author.bot: