Node App for managing multiple Twitter bots that will search for and reply to a given search string. THIS IS NOT FOR SPAMMING. The goal of this project was to create an easy way to manage some novelty Twitter accounts, this is not built for nor encouraging of spamming people for any reason. The code in this app will never tweet the same person more than once and has limitations on what it will reply to in order to reduce it's spammy-ness.
- Node
- MySQL
- Create a database in MySQL
- Fill out database.conf with your connection details
- Set
GLOBAL.debug_tweetstofalseinserver.jsline 3 - Run
npm installif necessary - Start the node server by running
node server.js
The application is now running.
The system defaults to port 8081 unless otherwise specified as a runtime parameter, i.e. PORT=1234 node server.js
You can set the interval between tweet checks under Root Settings
To add an account
- Go to
Manage Accountsand selectNEW. - Fill out the fields
- All fields are required.
- Save
Once you save a new account it will immediately attempt to search and tweet responses, so make sure your search, ignore and response texts are set correctly!
If you have the main page open tweets will appear as they are tweeted from any account.
- The entire thing is ugly as sin
- Changing the Tweet Interval or Number of Tweets does not take effect until the server is restarted
- Apparently IE doesn't hide an input field with
hidden=true? - The searching is limited by Twitter's meager indexing. Make sure to use the
Ignore Textfield to filter out any false-positives you can think of!
- More root settings
- Toggle debug mode from here
- Whether or not to allow responding to retweets
- Enter DB settings in the app
- Reload root settings for active jobs when saved
- Hook up debug logging triggers to jog4js
- Pretty everything up
- Form validation
- Put something useful on the main page
- Statistics about each active account maybe?
- Add ability to set multiple response strings and have them chosen randomly (adds flavor plus avoid bot suspension)
- Add variables to be able to use in the response text - User name, date, time, etc...
- Provide a wizard on how to set up a new Twitter account (wizard version of instructions below), providing as much direction and automation as possible.
- See if there's a way to bypass Twitter's annoying setup wizard
- Add an abstraction layer so you can choose your own DB type
- Create a Gmail account to associate with the new Twitter Bot.
- Create a new Twitter account, using the Gmail information created in the previous step
- Go through the e-mail verification and basic account setup required of you
- Sign the new Twitter account up as a Developer by signing in with your Twitter credentials
- Once logged in go to your avatar in the upper-right and select
My Applicationsfrom the dropdown - Select
Create a new applicationand fill out the details with whatever values you like - Once your application is created go to the
Settingstab and change your Application Type toRead and Writeand save your changes - Now on the
Detailstab click theCreate my access tokenbutton and verify that your access level isRead and write - Save the following details somewhere for use:
- Consumer key
- Consumer secret
- Access token
- Access token secret
- In the FooTweet application go to
Manage Accounts->NEWand fill in the fields above, and make sure that the Account Name field matches the name of the Twitter account exactly. - Fill in the
Search Text,Ignore TextandResponse Textfields and save. - Done!