mirror of
https://github.com/alterware/aw-bot.git
synced 2025-11-18 09:02:07 +00:00
feat: Grok role
This commit is contained in:
@@ -36,6 +36,7 @@ ALLOWED_CHANNELS = [
|
|||||||
|
|
||||||
SPAM_ROLE_ID = 1350511935677927514
|
SPAM_ROLE_ID = 1350511935677927514
|
||||||
STAFF_ROLE_ID = 1112016152873414707
|
STAFF_ROLE_ID = 1112016152873414707
|
||||||
|
GROK_ROLE_ID = 1362837967919386916
|
||||||
|
|
||||||
|
|
||||||
def fetch_image_from_message(message):
|
def fetch_image_from_message(message):
|
||||||
@@ -360,8 +361,8 @@ async def handle_message(message, bot):
|
|||||||
await handle_dm(message)
|
await handle_dm(message)
|
||||||
return
|
return
|
||||||
|
|
||||||
# Check if the bot is mentioned
|
grok_role = message.guild.get_role(GROK_ROLE_ID)
|
||||||
if bot.user in message.mentions:
|
if grok_role in message.role_mentions or bot.user in message.mentions:
|
||||||
if await handle_bot_mention(message, bot):
|
if await handle_bot_mention(message, bot):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user