Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1.5 KB

README.md

File metadata and controls

49 lines (36 loc) · 1.5 KB

@elizaos/plugin-twitter-primus

A plugin for Twitter/X integration that ensures the verifiability of information throughout the process, including the source of information, summary, usage, and more, across the stages of 'model -> provider -> action'.

Overview

This plugin offers the following functionalities:

  • Verifying that the information originated from Twitter/X
  • Confirming that the information summary was generated by a large model
  • Ensuring that the summary message was successfully sent to Twitter/X

Installation

Before using the plugins, make sure to install plugin-primus and complete the configuration.

pnpm add @elizaos/plugin-twitter-primus

Configuration

The plugin requires the following environment variables:

  • .env file
TWITTER_USERNAME=your_username
TWITTER_PASSWORD=your_password
TWITTER_EMAIL=your_email              # Optional: for 2FA
TWITTER_2FA_SECRET=your_2fa_secret    # Optional: for 2FA
TWITTER_PREMIUM=false                 # Optional: enables premium features
TWITTER_DRY_RUN=false                # Optional: test without posting

TWITTER_USER_ID_WANT_TO_GET_TWEET=123456677 # Must: Which user the tweet came from

Usage

To use the plugin, add @elizaos/plugin-twitter-primus to the plugins field in your character file. Here's an example of how your character file might look after the update:

{
    "name": "trump",
    "plugins": [
        "@elizaos/plugin-twitter-primus"
    ],
    //other  fields
    .....
}