项目作者: miquels

项目描述 :
Mattermost Meme Bot
高级语言: Go
项目地址: git://github.com/miquels/mm-memebot.git
创建时间: 2017-04-13T15:32:14Z
项目社区:https://github.com/miquels/mm-memebot

开源协议:Apache License 2.0

下载


Mattermost memebot

/meme command for mattermost
based on:

Help output

/meme help

Mattermost Meme Bot

Commands:

/meme memename top_row;bottom_row generate a meme image
(NOTE: memename can also be a URL to an image)
/meme list List templates
/meme help Shows this menu

Show meme image

/meme buzz memes,memes; everywhere

Installation

To build the bot, simply:

  1. go build

To install and run:

  1. cp mm-memebot /usr/local/bin
  2. cp mm-memebot.default /etc/default/memebot
  3. # edit that file to check and maybe change settings.
  4. vi /etc/default/mm-memebot
  5. cp mm-memebot.service /lib/systemd/system
  6. systemctl enable mm-memebot
  7. systemctl start mm-memebot

The bot is now running and listening on localhost:5020.

Add to mattermost

Go to the integration - slash commands menu

  1. Title: Meme Generator
  2. Description: Displays a meme image with your text overlaid
  3. Command Trigger Word: meme
  4. Request URL: http://localhost:5020/meme
  5. Request Method: POST
  6. Autocomplete: [v]
  7. Autocomplete hint: memename top text; bottom text
  8. Autocomplete description: Generates a meme image (try /meme help)

Allow mattermost to connect to services on localhost

Go to System Console -> Advanced -> Developer. Set:

  1. Allow untrusted internal connections to: localhost