Discover Packages
github.com/jwilsson/jiphy
command
module
Version:
v0.0.0-...-0be9aeb
Opens a new window with list of versions in this module.
Published: Jan 20, 2024
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Jiphy
A handy Slack bot to send your favorite GIFs.
Prerequisites
A Slack workspace.
An AWS account.
Setup
Start by creating a Slack app and setting up a Slash Command .
Configure your AWS account to work with Serverless .
Configure a DYNAMO_TABLE_NAME
environmental variable with the name of your DynamoDB table.
Configure a SLACK_SIGNING_SECRET
environmental variable with your Slack app's signing secret.
After deploying the first time, add some images to your DynamoDB table, see the item structure below.
Change any other values in serverless.yml
to fit your needs.
Profit!
Example image item
{
"giphy_url": "https://giphy.com/gifs/studiosoriginals-gloria-domitille-collardey-business-woman-3o7TKy1qgGdbbMalcQ",
"image_url": "https://media.giphy.com/media/3o7TKy1qgGdbbMalcQ/giphy.gif",
"image_name": "tubular"
}
giphy_url
- points to a Giphy page.
image_url
- points to the actual image file, the "social" size is recommended for Slack to always show it.
image_name
- name of the image. Used in the /jiphy
command.
Usage
To send one of the available GIFs, type /jiphy <image>
where <image>
points to one of the image_name
s in your DynamoDB table. There is also a /jiphy list
command to list all available images, only shown to the one sending it.
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.