WickrIO Google Calendar Bot
This bot has been deprecated and no longer maintained by AWS Wickr.
The WickrIO Google Calendar Bot allows you to create, modify and list Google Calendar events in addition to setting in-Wickr reminder notifications before events.
Commands:
- /help - List all available commands
- /list - List 5 most recent upcoming Google Calendar events
- /list AMOUNT - List AMOUNT upcoming Google Calendar events
- /create - Create a Google Calendar event
- /modify EVENT_ID - Modify the specified Google Calendar event(run '/list' first to get the list of events and their IDs)
Configuration:
- First create a Google Calendar API project at [https://console.developers.google.com/] (https://console.developers.google.com/)
- After creating the project, Click 'Enable APIS and Services' and search for Google Calendar API and click 'Enable'
- On the left Menu Bar select "Credentials" -> "Create Credential"
- Choose "OAuth Client ID", then under "Application type" choose "Web Application"
- Enter your bot_client_server in the "Authorized JavaScript origins" and "Authorized redirect URIs" fields and click "Create"
- Finally download and save your OAuth Client credentials, which will contain the following tokens that will you will be prompted for during configuration:
- GOOGLE_CALENDAR_CLIENT_ID
- GOOGLE_CALENDAR_PROJECT_ID
- GOOGLE_CALENDAR_CLIENT_SECRET
- Other environment variables you will have to enter during the configuration process:
- DATABASE_ENCRYPTION_KEY - Choose a 16-character(minimum) string key to derive the crypto key from in order to encrypt and decrypt the user database of this bot. This must be specified, there is no default. NOTE: be careful not to change if reconfiguring the bot or else the user database won't be accessible.
- BOT_CLIENT_SERVER - The server address of the machine you are running your integration on(without the https://)
- BOT_CLIENT_SERVER - The port you assigned to the docker container when you ran it, for example if you ran it with this command:
docker run -v /opt/WickrIO:/opt/WickrIO -p 5001:4001 -d --restart=always -ti wickr/bot-cloud:latest
, then the port would be 4001.
License
This software is distributed under the Apache License, version 2.0
Copyright 2021 Wickr, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.