Skip to content

Yorubaname/yorubaname-twitter-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yoruba name bot

this application tweets a random name from the yorubaname website using the yorubaname api endpoints

installation

  • this program was written in nodejs
  • use a terminal
  • install nodejs brew install node
  • install dotenv package npm install dotenv --save
  • install twitter package npm install twitter
  • install cron package npm install cron

cloning the code

  • to copy the project on your computer, open your terminal and do this: git clone e.g $ git clone <remote repo> <repo name>
  • you will find the remote repo link above by clicking on the green "clone or download" option in tab above the repository
  • then run cd <repo name> in your terminal ( is whatever name you gave your repository in the terminal)
  • this should open up the folder you just cloned from github
  • open up your code editor

setting up environment variables

  • Run the command below to create a .env file with duplicates of the env variables specified in .env.example. Then update the .env file with the relevant data
$ cp .env.example .env

usage

running the code

to run the code run the following commands in your terminal:

  • after you download the code, run node app.js in your terminal

customize bot instance

script mode

Yorubaname bot runs in script mode by default. This means it will run once and exit, like any normal script.

bot mode

In bot mode, Yorubaname bot will run the tweet script once per specified duration. To specify bot duration, set environment variable TWEETER_CRON_DURATION_HRS. If no duration is specified, the app will run in script mode.

contribution

it's a twitter bot, you can try to implement it too.

licensing

this code follows the mit license

About

A twitter bot that tweets yoruba names.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •