Skip to content

Commit

Permalink
V 0.5.7
Browse files Browse the repository at this point in the history
Small bugfixes
  • Loading branch information
Demigodrick committed May 18, 2024
1 parent 449a850 commit f15a8c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions bot_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -1313,7 +1313,7 @@ def get_new_users():
#for admin_id in admin_ids:
# lemmy.private_message.create(pm_message, int(admin_id))

matrix_body = "New user [" + username + "](https://" + settings.INSTANCE + "/u/" + username + ") with ID " + str(public_user_id) + " has signed up with an email address that may be a temporary or spam email address: (" + email + ")"
matrix_body = "New user " + username + " (https://" + settings.INSTANCE + "/u/" + username + ") with ID " + str(public_user_id) + " has signed up with an email address that may be a temporary or spam email address: " + email
asyncio.run(send_matrix_message(matrix_body))

if settings.EMAIL_FUNCTION == True:
Expand Down Expand Up @@ -1464,7 +1464,7 @@ def steam_deals():
#loop through 10 entries
for entry in feed.entries[:10]:
content_value = entry.content[0]['value']
steam_url = re.search(r'https://store.steampowered.com/app/\d+/\w+/', str(content_value))
steam_url = re.search(r'https://store\.steampowered\.com/app/\d+/\w+/', str(content_value))

deal_published = entry.published
deal_title = entry.title
Expand Down Expand Up @@ -2023,6 +2023,8 @@ def comment_reports():
# reporter is from a different instance
#else:
#report_reply = bot_strings.REPORT_REMOTE
else:
continue


with connect_to_reports_db() as conn:
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')

logging.info("Hello! Bot starting...")
logging.info("Bot Version 0.5.6")
logging.info("Bot Version 0.5.7")

if __name__ == "__main__":

Expand Down

0 comments on commit f15a8c8

Please sign in to comment.