A simple js bot that will fetch, with the free usage api (depriciated), from twitter and send any messages that match the twitter id you are looking for.
Start with adding the environment variables in your .env that are needed in the oracle, where:
DISCORD_TOKENis the bot discord auth token.TWITTER_BEARER_TOKENis the twitter bearer access tokenTWITTER_USER_IDis the twitter user idDISCORD_CHANNEL_ID_TWEETSis the discord channel id in which the bot will send messagesDISCORD_CUSTOM_ROLEis the discord cusstom role that will be pinged with messagesDISCORD_CHANNEL_ID_RAID_TWEETSis the discord channel in which raid messages will be sent by the bot
For syntax example refer to .env.example
Before running the script install all required packages:
npm iThen run the Oracle with any js runtime (node):
node index.jsNote: As X updated the usage on its free API the bot is depreciated.