From 640cc15b69c517d3d2df97ac124f3e9e81c33575 Mon Sep 17 00:00:00 2001 From: Caleb Fultz Date: Fri, 9 Feb 2024 11:11:22 -0500 Subject: [PATCH] Removed 'set' hashtag --- MTGMastodonBot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MTGMastodonBot.py b/MTGMastodonBot.py index 703d544..41483a4 100644 --- a/MTGMastodonBot.py +++ b/MTGMastodonBot.py @@ -33,7 +33,7 @@ with open('image.jpg', 'wb') as out_file: copyfileobj(get(img_url, stream = True).raw, out_file) # Removing weird or unusable characters for hashtags -special_characters=["$", "'","`","%","&","(",")",",",":","?","!","@",",",".","*"] +special_characters=["$", "'","`","%","&","(",")",",",":","?","!","@",",",".","*","-"] for i in special_characters: hTitle = mtg_title.replace(i,"") hSet = mtg_set.replace(i,"") @@ -43,4 +43,4 @@ for i in special_characters: media = mastodon.media_post("image.jpg", description="Card Name: " + mtg_title + "\n" + "Set: " + mtg_set + "\n" + "Description: " + flavor + "\n" + "Artist: " + mtg_artist) # Post the Toot -mastodon.status_post("#magicthegathering" + " " + "#mtg" + " " + "#" + hTitle.replace(" ", "") + " " + "#" + hSet.replace(" ", "") + " " + "#" + hArtist.replace(" ", ""),media_ids=media) +mastodon.status_post("#magicthegathering" + " " + "#mtg" + " " + "#" + hTitle.replace(" ", "") + " " + "#" + hArtist.replace(" ", ""),media_ids=media)