Skip to content

An api for getting quick facts about a country.

Notifications You must be signed in to change notification settings

mikaelrss/landdan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LandDan

A slackbot for asking trivia questions about a country on the form of

Which country are we looking for? It has an area of 323 802km². It has a coastline of 25 148 km.

Getting started

To get started, you will need to add a few environment variables.

  1. Create a .env file at the root of the application.
  2. Add the fields SLACK_BOT_TOKEN, SLACK_SIGNING_SECRET, and SLACK_APP_TOKEN. You can get the secret values from me.

Now you can start the application by follwing these steps:

  1. git clone git@github.com:mikaelrss/landdan.git && cd landdan
  2. yarn install
  3. yarn dev

If the application is running in heroku at the same time as you are running it locally, the two services will compete with each other. Ask me to scale down the service in heroku whenevery you want to develop locally.

Data

The application gets data from three services: Rest countries, Factbook, and Daniel's brain. These are structured as separate modules in the services directory.

Commands

All code handling the different commands can be found in commands.ts.

About

An api for getting quick facts about a country.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published