GitXplorerGitXplorer
p

ideon-lunch-bot

public
3 stars
0 forks
1 issues

Commits

List of commits on branch master.
Unverified
76fb22c5a72cdebdea88f93f78e8c2f6aae91252

chore: use english version for qlik dishes

ppeol committed 3 years ago
Unverified
901b1681d20fbb29a95898792397814c96541229

chore: more restaurants

ppeol committed 3 years ago
Unverified
2f7e957e861cfabd6a1145b5e25a3d12add91b75

feat: update to 2022

ppeol committed 3 years ago
Unverified
38ed4ee40e2a6c0ed7157dda11bb8d33c232c8b9

Fix #1

ppeol committed 6 years ago
Verified
8a79c46346989972259e80d9ae573198885b3278

Merge pull request #2 from peol/rewrite

ppeol committed 6 years ago
Unverified
39cce27cf0ced760787146cd9329ac993293ff43

Rewrite to use slash commands

ppeol committed 6 years ago

README

The README file for this repository.

ideon-lunch-bot

Slack bot for fetching lunch menus in the Ideon area and letting people vote on their favorite.

Requires a Slack bot token together with a slash command to port 6445 if you want Slack integration.

# run full app:
npm i
SLACK_TOKEN=xoxp-token node index
## or to debug without slack:
npm i
node lunches debug

Spec

See other places for implementation, but in essence:

module.exports = {
  url: '', // url to fetch _this weeks_ lunch
  raw: false, // true if you the url above returns something else than HTML and you want to parse it yourself
  // or raw data, should return an array with five arrays (each day):
  // [ [{ type: 'Dagens', dish: 'Potatis', price: 90 }], [], [], [], [] ]
  parse: async (html) => {},
};