File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66def run_twitter_actions ():
77 load_dotenv ()
88 token = os .getenv ("GAME_TWITTER_ACCESS_TOKEN" )
9+ print ("Token:" , token )
910 if not token :
1011 raise RuntimeError ("Please set GAME_TWITTER_ACCESS_TOKEN in your .env" )
1112
@@ -62,7 +63,7 @@ def run_twitter_actions():
6263
6364 # 5. Upload local media and tweet
6465 with open ("sample_media/virtuals-logo.png" , "rb" ) as img :
65- media_id = client .upload_media (media = img )
66+ media_id = client .upload_media (media = img , media_type = "image/png" )
6667 local = client .create_tweet (
6768 text = "Check this out! Uploaded with local media!" ,
6869 media_ids = [media_id ]
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44
55[tool .poetry ]
66name = " twitter-plugin-gamesdk"
7- version = " 0.2.9 "
7+ version = " 0.2.10 "
88description = " Twitter Plugin for Python SDK for GAME by Virtuals"
99authors = [" Celeste Ang <celeste@virtuals.io>" ]
1010readme = " README.md"
@@ -15,7 +15,7 @@ repository = "https://github.com/game-by-virtuals/game-python"
1515[tool .poetry .dependencies ]
1616python = " >=3.9"
1717tweepy = " >=4.15.0"
18- virtuals-tweepy = " >=0.1.4 "
18+ virtuals-tweepy = " >=0.1.5 "
1919
2020[tool .poetry .scripts ]
2121twitter-plugin-gamesdk = " twitter_plugin_gamesdk.game_twitter_auth:start"
You can’t perform that action at this time.
0 commit comments