Skip to content

Instantly share code, notes, and snippets.

View adityathebe's full-sized avatar
🏠
Working from home

Aditya Thebe adityathebe

🏠
Working from home
View GitHub Profile
@adityathebe
adityathebe / tweet.js
Created September 15, 2017 14:10
Twitter Bot Tutorial - function that tweets !
const TWIT = require('twit')
const config = require('./config');
var Twit = new TWIT(config);
function makeTweet(tweet) {
Twit.post('statuses/update', { status: tweet }, function(err, data, response) {
if(err) {
console.log(err)
} else {
@adityathebe
adityathebe / bot.js
Last active September 15, 2017 15:13
Twitter Bot Tutorial Code - Aditya Thebe
const TWIT = require('twit')
const config = require('./config');
var Twit = new TWIT(config);
function makeTweet(tweet) {
Twit.post('statuses/update', { status: tweet }, function(err, data, response) {
if(err) {
console.log(err)
} else {