A simple Node.js bot to retrieve posts and quoted retweets from a Twitter user and post these to a Discord channel.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
To install the code you will need Node.js. See package.json for the minimum Node.js version.
To query Twitter you will need to create an app through the Twitter Developer Portal.
You will need to create a Discord webhook to set up your channel and bot.
Pull the code from GitHub.
Check out the example configuration file and set up a config.js
file in the same directory with your settings.
You need a configuration file or the code won't run.
Alternatively you can set up multiple configurations by using the CONFIG_FILE
environment variable.
See Multiple instances setup.
Use npm start
in a terminal like CMD to run the code.
Run the code multiple times with different configuration files by using the CONFIG_FILE
environment variable.
Place all configuration files in the config
folder and reference just the name of the file in the variable.