
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@lunchly/slack-bot
Advanced tools
Slack bot that announces daily catered meals
Lunchly is a Slack bot that posts consistent, useful daily meal announcements for companies with scheduled food catering. It only supports ZeroCater because that is the catering service used at my office, but feel welcome to submit a pull request adding support for other catering services.
Lunchly runs on Node 8+ and uses Slack's Real Time Messaging API and Web API. ZeroCater integration is provided via the @lunchly/service-zerocater plugin, which exposes a today()
method to fetch today's meal.
To get started, clone this repository and install dependencies using npm
.
# Get the code
git clone https://github.com/lunchly/slack-bot.git
# Install dependencies
npm install
Once you have complete the above steps your instance of Lunchly is ready to be configured. A list of channels to monitor and their associated ZeroCater account IDs is required. Your ZeroCater account ID can be found in the URL of your account's meal page.
Copy sites.example.json
to sites.json
and replace with your values.
If you don't already have one, create a new bot user for your Slack team. You'll need the bot token (begins with xoxb-
) to run Lunchly.
To run Lunchly, ensure the configuration steps above are completed, and do the following:
SLACK_BOT_API_TOKEN=xoxb-0000-your-token npm run dev
SLACK_BOT_API_TOKEN=xoxb-0000-your-token npm run start
Lunchly listens for !lunch
in all channels it is a member of. If a meal is found for that day then the bot will post a message containing details about the meal.
MIT © Chris Vogt
FAQs
A Slack bot that announces meals for your company.
We found that @lunchly/slack-bot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.