Skip to content

Commit

Permalink
Merge branch 'main' into make-flake
Browse files Browse the repository at this point in the history
  • Loading branch information
GeckoEidechse authored Aug 20, 2024
2 parents c0100d4 + 6ea21cd commit d61607f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions reaper/cogs/auto_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,20 +146,20 @@ async def on_message(self, message):
else:
return

elif re.search("how|help", message.content.lower()) and re.search(
elif re.search("how |help ", message.content.lower()) and re.search(
"uninstall.northstar", message.content.lower()
):
await message.channel.send(reference=message, embed=uninstalling)
logger.info("Installing Northstar embed reply sent")

elif re.search("how|help", message.content.lower()) and re.search(
elif re.search("how |help ", message.content.lower()) and re.search(
"install.northstar", message.content.lower()
):
await message.channel.send(reference=message, embed=installing)
logger.info("Uninstalling Northstar embed reply sent")

elif (
re.search("help|how", message.content.lower())
re.search("how |help ", message.content.lower())
and re.search("titanfall|northstar", message.content.lower())
and re.search("install.*mods", message.content.lower())
):
Expand Down
3 changes: 3 additions & 0 deletions reaper/cogs/playtester_ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ def getLatestDiscussion():
response = requests.post(url, json={"query": query}, headers=headers)
if response.status_code == 200:
raw_data = response.json()
else:
logger.error(f"GitHub API returned HTTP code: {response.status_code}")
return None

except requests.exceptions.RequestException as err:
logger.warn(f"GitHub API request failed: {err}")
Expand Down

0 comments on commit d61607f

Please sign in to comment.