Skip to content

Commit

Permalink
feat: Add auto-response for first person animations in Northstar
Browse files Browse the repository at this point in the history
  • Loading branch information
GeckoEidechse committed Aug 27, 2024
1 parent 193db2a commit cb6b22b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions reaper/cogs/auto_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@
color=0x5D3FD3,
)

# Embed for first person animations
first_person_animations_embed = discord.Embed(
title="I noticed you may have asked for about first person embark and execution animations",
description="First person embark and execution animations are controlled server side for technical reasons set by the base game. In order to see them you need to join a server that has them enabled or create your own.",
color=0x5D3FD3,
)


class AutoResponse(commands.Cog):
def __init__(self, bot: commands.Bot) -> None:
Expand Down Expand Up @@ -172,6 +179,16 @@ async def on_message(self, message):
)
logger.info("Northstar mods installing embed reply sent")

elif (
re.search("first.person", message.content.lower())
and re.search("mod|northstar|titanfall", message.content.lower())
and re.search("animation|embark|embark", message.content.lower())
):
await message.channel.send(
reference=message, embed=first_person_animations_embed
)
logger.info("First person animations embed reply sent")

self.last_time = datetime.datetime.now(datetime.timezone.utc)
self.last_channel = message.channel.id

Expand Down

0 comments on commit cb6b22b

Please sign in to comment.