Skip to content

A simple js bot that will fetch, with the free usage api (depreciated), from twitter and send any messages that match the twitter id you are looking for in a discord chat mentioning a role of your choice.

License

Notifications You must be signed in to change notification settings

0xPuddi/QD-Bots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quarry Draw Twitter to Discord bot

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.

Usage

Start with adding the environment variables in your .env that are needed in the oracle, where:

  • DISCORD_TOKEN is the bot discord auth token.
  • TWITTER_BEARER_TOKEN is the twitter bearer access token
  • TWITTER_USER_ID is the twitter user id
  • DISCORD_CHANNEL_ID_TWEETS is the discord channel id in which the bot will send messages
  • DISCORD_CUSTOM_ROLE is the discord cusstom role that will be pinged with messages
  • DISCORD_CHANNEL_ID_RAID_TWEETS is 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 i

Then run the Oracle with any js runtime (node):

node index.js

Notes

Note: As X updated the usage on its free API the bot is depreciated.

About

A simple js bot that will fetch, with the free usage api (depreciated), from twitter and send any messages that match the twitter id you are looking for in a discord chat mentioning a role of your choice.

Topics

Resources

License

Stars

Watchers

Forks