main
Brett 2025-07-08 23:11:44 -04:00
parent 0e2321952e
commit c99b4dbd4a
1 changed files with 4 additions and 4 deletions

View File

@ -328,6 +328,10 @@ async def on_message(message: discord.Message) -> None:
if message.author == bot.user: if message.author == bot.user:
return return
if message.author.id != 199680010267656192:
await message.channel.send("Only authorized users are allowed to use this bot.")
return
if message.content.startswith("!"): if message.content.startswith("!"):
if message.content == "!process": if message.content == "!process":
asyncio.create_task(process_articles(message)) asyncio.create_task(process_articles(message))
@ -352,10 +356,6 @@ async def on_message(message: discord.Message) -> None:
if not (is_dm or is_mention): if not (is_dm or is_mention):
return return
if is_dm and message.author.id != 199680010267656192:
await message.channel.send("Only authorized users are allowed to use this bot.")
return
url = extract_first_url(message.content) url = extract_first_url(message.content)
if not url: if not url:
await message.channel.send("Please send me a link to a news article.") await message.channel.send("Please send me a link to a news article.")