GithubHelp home page GithubHelp logo

mattermost / mattermost-integration-giphy Goto Github PK

View Code? Open in Web Editor NEW
27.0 36.0 121.0 20 KB

Giphy Integration Service for Mattermost

Home Page: http://mattermost.org/webhooks

License: Apache License 2.0

Python 100.00%
hacktoberfest

mattermost-integration-giphy's Introduction

mattermost-integration-giphy's People

Contributors

devtechi avatar it33 avatar juburin avatar jwilander avatar lesuisse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mattermost-integration-giphy's Issues

SSL related

I had this working at one point, but now I see this error:

Traceback (most recent call last):
File "/usr/bin/pip", line 9, in
load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 356, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2476, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2190, in load
['name'])
File "/usr/lib/python2.7/dist-packages/pip/init.py", line 74, in
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/usr/lib/python2.7/dist-packages/pip/vcs/mercurial.py", line 9, in
from pip.download import path_to_url
File "/usr/lib/python2.7/dist-packages/pip/download.py", line 22, in
import requests, six
File "/usr/local/lib/python2.7/dist-packages/requests/init.py", line 53, in
from .packages.urllib3.contrib import pyopenssl
File "/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/contrib/pyopenssl.py", line 62, in
ssl.PROTOCOL_SSLv3: OpenSSL.SSL.SSLv3_METHOD,
AttributeError: 'module' object has no attribute 'PROTOCOL_SSLv3'

Heroku support broken

A recent commit changed the name of the environment variable that specifies the port number to bind to.

Heroku requires that this variable be named PORT, otherwise the app will not bind to the port the dyno requires. I'm not sure if it was changed for a specific reason or not, but it seems it slipped in accidentally.

Anyone interested in being the recommended fork for this repo?

Hi everyone,

This repo was created to offer sample code for outgoing webhooks. It's served it's purpose and there's a growing community of apps now.

The core team is investing in building out the platform and maintaining this repo isn't a priority.

Would anyone in the community be interested in becoming the official fork of this project?

We'd reference your work in the README similar to mattermost-integration-gitlab.

Making this work with multiple channels and hubot

Hello,

first of all thanks for this.

In order to work with hubot at the same time we need to change some environment variables, at least I did.
I changed yours to the following

MATTERMOST_TOKEN to MATTERMOST_GIPHY_TOKEN (and of course everywhere it is used)

and

port = int(os.environ.get('PORT', 5000)) to port = int(os.environ.get('GIPHYPORT', 5000))

To support multiple channels I changed the line if data['token'] != MATTERMOST_GIPHY_TOKEN: to MATTERMOST_GIPHY_TOKEN.find(data['token']) == -1:

After that you just need to create an outgoing webhook for every channel in every team and put it (perhaps comma separated) to your environment variable.

Works fine that way.

P.s.: for security reasons I changed the line app.run(host='0.0.0.0', port=port) to app.run(host='127.0.0.1', port=port)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.