This repo contains a list of Glitterplaatjes which are used by both Glitterbot for Slack and Glitterbot for Telegram. Changes to this repository are automatically deployed and all Glitterbots will be using
For more information about Glitterbot, visit the Glitterbot website or the Glitterbot for Slack GitHub repository.
Adding new Glitterplaatjes
-
Fork and clone the repo to your own machine.
-
Add your own Glitterplaatjes to the correct folders. Images should not be larger than 2MB, otherwise they won't automatically expand in Slack.
-
Install dependencies by running
yarn install
ornpm install
. -
Run
node cleanup.js
to optimise your newly added Glitterplaatjes and generate an updatedimages.json
file. -
Submit a pull request with your changes to this repository.
Using your own images
If you're using Glitterbot and don't like the Glitterplaatjes (what?!), Glitterbot can also send your team your own custom images.
-
Replace the images in the
glitters
folder with your own images. Make sure to maintain the existing folder structure. Place images meant for specific days in the folders for these days (glitters/mon
for monday,glitters/tue
for tuesday). Place generic images that could be sent on any morning in theglitters/generic
folder. Images should not be larger than 2MB, otherwise they won't automatically expand in Slack. -
Install dependencies by running
yarn install
ornpm install
. -
Run
node cleanup.js
to generate a newimages.json
for your images. -
(optional) Run
yarn run test
to make sure all images are going to work properly. -
Either deploy using Netlify or run the following command to create a public folder to upload to your own server:
mkdir public && find ./glitters -name '*.jpg' -o -name '*.png' -o -name '*.gif' -exec cp '{}' ./public \\; && cp ./glitters/images.json ./public/images.json