mattermost-meme/README.md

36 lines
2.1 KiB
Markdown
Raw Permalink Normal View History

2019-08-07 15:15:41 +02:00
# Mattermost Memes Plugin
[![Build Status](https://img.shields.io/circleci/project/github/mattermost/mattermost-plugin-memes/master.svg)](https://circleci.com/gh/mattermost/mattermost-plugin-memes)
[![Code Coverage](https://img.shields.io/codecov/c/github/mattermost/mattermost-plugin-memes/master.svg)](https://codecov.io/gh/mattermost/mattermost-plugin-memes)
2020-04-09 17:21:56 +02:00
**Maintainer:** [@hanzei](https://github.com/hanzei)
2017-12-21 23:04:00 +01:00
This plugin will create a slash command that you can use to create memes!
<img src="screenshot.png" width="583" height="426" />
`/meme everywhere "memes." "memes everywhere"`
2017-12-21 23:04:00 +01:00
2019-08-07 15:15:41 +02:00
For more information like available memes or command syntax type `/meme ` and press enter.
2018-10-31 12:25:36 +01:00
2017-12-21 23:04:00 +01:00
## Installation
2020-09-29 09:13:05 +02:00
From Mattermost 5.16 and later, the Memes Plugin is included in the Plugin Marketplace which can be accessed from **Main Menu > Plugins Marketplace**. You can install the Memes plugin there.
2017-12-21 23:04:00 +01:00
2020-09-29 09:13:05 +02:00
In Mattermost 5.15 and earlier, follow these steps:
2017-12-21 23:04:00 +01:00
2020-09-29 09:13:05 +02:00
1. Go to https://github.com/mattermost/mattermost-plugin-memes/releases/latest to download the latest release file in zip or tar.gz format.
2. Upload the file through **System Console > Plugins > Management**. See [documentation](https://docs.mattermost.com/administration/plugins.html#set-up-guide) for more details.
2017-12-21 23:04:00 +01:00
2020-09-29 09:13:05 +02:00
## Development
2017-12-21 23:04:00 +01:00
2020-09-29 09:13:05 +02:00
Read our documentation about the [Developer Workflow](https://developers.mattermost.com/extend/plugins/developer-workflow/) and [Developer Setup](https://developers.mattermost.com/extend/plugins/developer-setup/) for more information about developing and extending plugins.
2017-12-21 23:04:00 +01:00
2020-09-29 09:13:05 +02:00
Run `make memelibrary` to bundle up the meme assets (images, fonts, etc.).
2017-12-21 23:04:00 +01:00
2020-09-29 09:13:05 +02:00
For convenience, you can run the plugin from your terminal to preview an image for a given input. For example, on macOS, you can run the following to generate the above meme and open it in Preview:
2017-12-21 23:04:00 +01:00
2020-09-29 09:13:05 +02:00
`go run server/plugin.go -out demo.jpg 'memes. memes everywhere' && open demo.jpg`
2017-12-21 23:04:00 +01:00
2020-09-29 09:13:05 +02:00
This is especially useful when adding or modifying memes as you can quickly modify assets, `make memelibrary`, and preview the result using the above command. (See the files in ` memelibrary/assets` to get started with that.)