https://github.com/cluzier/simple-twitter-bot
https://github.com/cluzier/simple-twitter-bot
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cluzier/simple-twitter-bot
- Owner: cluzier
- Created: 2022-06-16T16:44:46.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-21T21:36:20.000Z (almost 3 years ago)
- Last Synced: 2025-02-18T01:32:35.255Z (3 months ago)
- Language: JavaScript
- Size: 492 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Twitter Bot
Simple Twitter bot that tweets out once per day from an array.
## InstallationInstall with npm
```bash
cd simple-twitter-bot
npm install
```Create a new file named `twitterClient.js` and copy and paste the following code and insert your keys:
```javascript
const { TwitterApi } = require('twitter-api-v2');const client = new TwitterApi({
appKey: "your api key here",
appSecret: "your api secret key here",
accessToken: "your access token here",
accessSecret: "your secret access token here"
});const rwClient = client.readWrite;
module.exports = rwClient;
```
## DeploymentTo deploy this project run
```bash
node index.js
```## API Reference
- [Twitter API](https://developer.twitter.com/en)
## Authors- [@cluzier](https://www.github.com/cluzier)
## License
[MIT](https://choosealicense.com/licenses/mit/)