https://github.com/catalystcode/slack-o365-calendar
A Slack Integration from Office Calendar
https://github.com/catalystcode/slack-o365-calendar
Last synced: 6 months ago
JSON representation
A Slack Integration from Office Calendar
- Host: GitHub
- URL: https://github.com/catalystcode/slack-o365-calendar
- Owner: CatalystCode
- License: mit
- Created: 2015-10-13T21:00:42.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-08T23:41:53.000Z (about 10 years ago)
- Last Synced: 2024-04-14T20:28:36.020Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 87.9 KB
- Stars: 0
- Watchers: 7
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# slack-o365-calendar
[](https://travis-ci.org/sedouard/slack-o365-calendar)
This little Slack Bot connects your Office 365 Calendar with your team Slack account to check if you're out of office. To set yourself 'out of office' simply place a meeting on your calendar with the subject 'OOO' or 'OOF' and this bot will let any teammates who @mention you that you're out of of office.
# Configuration (.config.json)
Create a file called `.config.json` and fill it out with your application secrets. You can also make each property an environment variable.
```js
{
// The client ID provided for the Office 365 application
"clientID": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
// Client secret from the registration process for the Office 365 application
"clientSecret": "someSecret",
// MongoDB connection string
"mongo_connection": "",
// Slack application token
"slack_token":"slack-token-here",
// --- SNIP: Below configuration elements are for developers and power users ---
// Return URL after the OAuth handshake has completed; safe to leave default
"returnURL": "http://localhost:3000/auth/openid/return",
// set to true for Azure Active Directory
"skipUserProfile": true,
// Metadata to use for the OAuth configuration with Azure
"identityMetadata": "https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration",
// Use code-based authentication
"responseType": "code",
// Use the HTTP POST verb in the OAuth response instead of HTTP GET
"responseMode": "form_post",
// Realm to submit to OAuth
"realm": "http://outlook.office.com/",
// Automatically reconnect if we lose connection to Slack
"slack_autoReconnect": true,
// Automatically mark bot as away/active based on activity
"slack_autoMark": true
}
```