https://github.com/0xpuddi/qd-bots
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.
https://github.com/0xpuddi/qd-bots
bots script twitter-api
Last synced: 3 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/0xpuddi/qd-bots
- Owner: 0xPuddi
- License: mit
- Created: 2024-01-08T14:15:08.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-08T14:48:17.000Z (about 2 years ago)
- Last Synced: 2024-12-27T05:06:39.190Z (about 1 year ago)
- Topics: bots, script, twitter-api
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```shell
npm i
```
Then run the Oracle with any js runtime (node):
```shell
node index.js
```
## Notes
Note: As X updated the usage on its free API the bot is depreciated.