mirror of
https://github.com/cfultz/MTGRandomScryfallBot.git
synced 2024-11-21 15:50:03 +01:00
Removed 'set' hashtag
This commit is contained in:
parent
6b2068a447
commit
640cc15b69
@ -33,7 +33,7 @@ with open('image.jpg', 'wb') as out_file:
|
|||||||
copyfileobj(get(img_url, stream = True).raw, out_file)
|
copyfileobj(get(img_url, stream = True).raw, out_file)
|
||||||
|
|
||||||
# Removing weird or unusable characters for hashtags
|
# Removing weird or unusable characters for hashtags
|
||||||
special_characters=["$", "'","`","%","&","(",")",",",":","?","!","@",",",".","*"]
|
special_characters=["$", "'","`","%","&","(",")",",",":","?","!","@",",",".","*","-"]
|
||||||
for i in special_characters:
|
for i in special_characters:
|
||||||
hTitle = mtg_title.replace(i,"")
|
hTitle = mtg_title.replace(i,"")
|
||||||
hSet = mtg_set.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)
|
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
|
# 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)
|
||||||
|
Loading…
Reference in New Issue
Block a user