Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add auto-response for first person animations in Northstar #51

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading