Skip to content

Conversation

@Ang-dot
Copy link
Contributor

@Ang-dot Ang-dot commented May 9, 2025

Summary

Improve twitter_plugin_gamesdk docs and example usages in test_twitter.py.

Changes

  • Formalize variables naming convention to python's standard (snake_case).
  • Improve example usages in test_twitter.py.
  • Update twitter_plugin_gamesdk's README.md.

Important Next Step

Repackage twitter_plugin_gamesdk to PyPi (cc @celesteanglm).

Dev Testing

Tested locally.

(.venv) ~/Desktop/game-python/plugins/twitter/examples git:[twitter-plugin/yang-update-docs]
python test_twitter.py
INFO:twitter_plugin_gamesdk.twitter_plugin:Authenticated as: Meme Agent (@demo_meme_agent)
🙋 Logged in as: @demo_meme_agent (Meme Agent)
✅ Tweet posted: https://x.com/i/web/status/1920727447215173688
❤️ Tweet liked!
💬 Replied: https://x.com/i/web/status/1920727451149480361
🔁 Quoted: https://x.com/i/web/status/1920727452726554997
🖼️ Local media tweet: https://x.com/i/web/status/1920727461224214895
🖼️ URL media tweet: https://x.com/i/web/status/1920727468882972903
🔍 Found 1 tweets for #GameByVirtuals:
  1. https://x.com/i/web/status/1920224903149887941
🔔 You have 3 recent mentions:
  1. https://x.com/i/web/status/1905542399222534374
  2. https://x.com/i/web/status/1905525974160310336
  3. https://x.com/i/web/status/1905525654864757168
👥 You have 1 followers:
  1. @0x02yang_vp (Yang)
➡️ You are following 3 users:
  1. @AskTianAI (AskTian)
  2. @virtuals_io (Virtuals Protocol)
  3. @GAME_Virtuals (G.A.M.E)
📊 My metrics: {'followers_count': 1, 'following_count': 3, 'tweet_count': 33, 'listed_count': 0, 'like_count': 10, 'media_count': 12}
🔎 Lookup @GAME_Virtuals: {'id': '1859490326316187649', 'name': 'G.A.M.E', 'username': 'GAME_Virtuals'}
📊 @GAME_Virtuals metrics: {'followers_count': 14694, 'following_count': 14, 'tweet_count': 207, 'listed_count': 291, 'like_count': 314, 'media_count': 35}
🔔 Advanced mentions for @GAME_Virtuals: {'data': [{'id': '1920715441653092644', 'text': "@babyboyforshow @virtuals_io @luna_virtuals @GAME_Virtuals I've been seeing this good alpha", 'edit_history_tweet_ids': ['1920715441653092644'], 'created_at': '2025-05-09T05:40:21.000Z'}, {'id': '1920714482382176268', 'text': '@AIonBase_ @GenzaiLabs @JustInverseIt @ExmplrAI @LesterVirtuals @virtuals_io @aixbt_agent @GAME_Virtuals @HeyTracyAI Genzai 1.1$🚀🚀🚀💵💵💵🏛️', 'edit_history_tweet_ids': ['1920714482382176268'], 'created_at': '2025-05-09T05:36:32.000Z'}, {'id': '1920709063090073697', 'text': '🔥Trending AI Agents on Base in the last 24h🚀\n\n$VIRTUAL @virtuals_io\n$AIXBT @aixbt_agent\n$VADER @Vader_AI_\n$GAME @GAME_Virtuals\n$VVV @AskVenice\n$TIBBIR @ribbita2012\n$BRO @0xNeurobro\n$BNKR @bankrbot\n$ACOLYT @AcolytAI\n$SERAPH @seraphagent https://t.co/CWHHdfraX3', 'edit_history_tweet_ids': ['1920709063090073697'], 'attachments': {'media_keys': ['3_1920699335517630471']}, 'created_at': '2025-05-09T05:15:00.000Z'}, {'id': '1920704121629299151', 'text': "@AIonBase_ @virtuals_io @aixbt_agent @Vader_AI_ @GAME_Virtuals @AskVenice @ribbita2012 @citadel_agent @0xNeurobro @bankrbot $BIOS at #2 is pretty based ngl. we're building something that actually captures value from meme yields and doesn't just dump on users. the others are cool too but i'm biased (heh) toward projects with real utility beyond just being another AI agent.", 'edit_history_tweet_ids': ['1920704121629299151'], 'created_at': '2025-05-09T04:55:22.000Z'}, {'id': '1920701849239257310', 'text': "@AIonBase_ @virtuals_io @BasisOS @aixbt_agent @Vader_AI_ @GAME_Virtuals @AskVenice @ribbita2012 @citadel_agent @0xNeurobro @bankrbot $VIRTUAL dominates Base's AI agent race ($1.3B cap) while posers like $BIOS ($2.1M) lag. Real agents require L3 AICS + revenue – most are pop-ups clinging to $VIRTUAL's coattails. Copycats just widen $VIRTUAL's moat.", 'edit_history_tweet_ids': ['1920701849239257310'], 'created_at': '2025-05-09T04:46:20.000Z'}, {'id': '1920701513275462028', 'text': 'Trending AI Agents on Base in the last 24h\n\n🔹 $VIRTUAL @virtuals_io\n🔹 $BIOS @BasisOS\n🔹 $AIXBT @aixbt_agent\n🔹 $VADER @Vader_AI_\n🔹 $GAME @GAME_Virtuals\n🔹 $VVV @AskVenice\n🔹 $TIBBIR @ribbita2012\n🔹 $CITDEL @citadel_agent\n🔹 $BRO @0xNeurobro\n🔹 $BNKR @bankrbot https://t.co/lrtaJUKntr', 'edit_history_tweet_ids': ['1920701513275462028'], 'attachments': {'media_keys': ['3_1920697279784128512']}, 'created_at': '2025-05-09T04:45:00.000Z'}, {'id': '1920694649653530672', 'text': '@gkisokay Need @GAME_Virtuals  to hit new ATH 300mil+ MC', 'edit_history_tweet_ids': ['1920694649653530672'], 'created_at': '2025-05-09T04:17:43.000Z'}, {'id': '1920690171898466703', 'text': '@BaseCaptainHB @virtuals_io @aixbt_agent @ribbita2012 @GAME_Virtuals 👀', 'edit_history_tweet_ids': ['1920690171898466703'], 'created_at': '2025-05-09T03:59:56.000Z'}, {'id': '1920688606600970307', 'text': '@BaseCaptainHB @virtuals_io @aixbt_agent @ribbita2012 @GAME_Virtuals 👀', 'edit_history_tweet_ids': ['1920688606600970307'], 'created_at': '2025-05-09T03:53:43.000Z'}, {'id': '1920687690430709996', 'text': '@FoozToken @MemesOnBase_ @BaseGuru_ @virtuals_io @aixbt_agent @ribbita2012 @Vader_AI_ @GAME_Virtuals @AcolytAI @seraphagent @aixCB_Vc @DTRXBT @MusicByVirtuals @Symp_AI Plenty of agents out there, but DORA books trips in real time and rewards users with $DORA. That’s different.', 'edit_history_tweet_ids': ['1920687690430709996'], 'created_at': '2025-05-09T03:50:04.000Z'}], 'includes': {'media': [{'media_key': '3_1920699335517630471', 'type': 'photo', 'url': 'https://pbs.twimg.com/media/Gqex3o3bcAcmAs7.jpg'}, {'media_key': '3_1920697279784128512', 'type': 'photo', 'url': 'https://pbs.twimg.com/media/Gqev_-qXkAAh27Q.jpg'}]}, 'meta': {'next_token': '7140dibdnow9c7btw4e0heuintrn70rr634z85gyeheeu', 'result_count': 10, 'newest_id': '1920715441653092644', 'oldest_id': '1920687690430709996'}}

Ang-dot added 3 commits May 9, 2025 14:32
and also rename apiSecretKey to apiKeySecret, abstract imports to virtuals tweepy
according to virtuals_tweepy
@Ang-dot Ang-dot requested a review from celesteanglm May 9, 2025 06:37
@github-actions github-actions bot added documentation Improvements or additions to documentation enhancement New feature or request plugin Plugin contribution labels May 9, 2025
@Ang-dot Ang-dot force-pushed the twitter-plugin/yang-update-docs branch 4 times, most recently from 4d538d1 to 296de2c Compare May 9, 2025 07:08
@Ang-dot Ang-dot force-pushed the twitter-plugin/yang-update-docs branch from 296de2c to 5976435 Compare May 9, 2025 07:08
@celesteanglm celesteanglm merged commit b8b851e into main May 9, 2025
3 checks passed
MichielMAnalytics pushed a commit to MichielMAnalytics/game-python that referenced this pull request Jun 12, 2025
…-plugin/yang-update-docs

[Twitter Plugin] Improve Docs and Examples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request plugin Plugin contribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants