Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Sep 17, 2023. It is now read-only.

eric-mathison/chatfuel-time-api

Open more actions menu

Repository files navigation

Chatfuel Time API

GitHub Workflow Status

An api for chatfuel bots that returns the current time as variables for a given timezone

Setting up the API Server

Use the Github CLI to clone this repository.

gh repo clone eric-mathison/chatfuel-time-api

Install dependencies

npm install

Next, you'll need to build it

npm run prepublish

Finally, start the server

npm start

Using the API

Make a GET request.

/chatfuel/?ctTimezone=America/Chicago

The {timezone} needs to be in IANA Timezone Name format which can be found here: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

The request will return parsed date formats that are usable in the chatbot.

Chatfuel

In Chatfuel, attributes will automatically be added to your bot.

  • ctFullDate - returns a full date (Jan 25, 2020)
  • ctMonth - returns month number (1 - 12)
  • ctDay - returns day number (1 - 31)
  • ctYear - returns full year (2020)
  • ctHour - returns hour number in 24hour format (0 - 23)
  • ctMinute - returns minute number (00 - 59)
  • ctWeekDay - returns week day number (0 - 6)

For ctWeekDay, 0 is for Sunday and 6 is for Saturday.

About

An api for chatfuel bots that returns the current time as variables for a given timezone

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.