Prototype botTwitter
👾 Simple example of bot for twitter using Node.js. The simple application publishes some campaign on Twitter.
This article will demonstrate how to create a basic bot for twitter using node.js.
- Step 1 - Clone the current repository
- Step 2 - Install the dependencies
- Step 3 - Build your app on twitter and configure it in your local application
1STEP Clone o repositório ‘botTwitter’
git clone https://github.com/ahsouza/botTwitter.git
git@github.com:ahsouza/botTwitter.git
2STEP Acess file config.js
and configure the bot with your application token and key on twitter
Ignore the config.js
file to maintain a privatization.
consumer_key: '',
consumer_secret: '',
access_token: '',
access_token_secret: ''
3STEP Install the project dependencies and run your server
npm i --save
npm start