Git Product home page Git Product logo

gifrocket's Introduction

GifRocket Logo

GifRocket

Overview | How to use | Installation | Team | Contributors | Copyright & License

Overview

GifRocket is a slash-command which sends your given phrases to Giphy and returns any according gif or sticker.

How to use

Gifs

GifRocket reacts on a slash-command. For example entering !gif test shows a gif relating to the word test.
Try to use !gif random as phrase and receive a random gif.

Sticker

GifRocket reacts on a slash-command. For example entering !sticker test shows a sticker relating to the word test.
Try to use !sticker random as phrase and receive a random sticker.

Installation

Download code

Download source using the button link at the top of this page.
Unzip Sources.
Alternatively, clone this repo using your favorite git client.

Configure Rocket.Chat

Add user (optional)

This step is optional if you've already got a user which you want to use as post author you can skip this step.
Otherwise add a new user who is posting the updates to your channel or who ist texting the user which is supposed to be informed.

Configure outgoing Webhook in Rocket.Chat

In your Rocket.Chat instance go to administration panel an click on "Integrations". To add an integration with BitRocket click on "NEW INTEGRATION".
Next, choose "Outgoing WebHook".
Now, on the webhook config screen, set the following values:

Enabled

Set this value to true/yes

Name (optional)

Enter the desired name for the integration (e.g. "GifRocket").

Channel

Self-explaining option. Insert the desired channel which should be listened.

Trigger Words

Set the trigger words on which the command should be fired. You have to set !gif,!sticker in here. Every time you write !gif or !sticker, everything after that string will be pushed zu Giphy.

URLs

In this field you must enter https://api.giphy.com/v1/

Send as

In this field you should define the user who sends the found gif. This is the user you defined earlier.

Script active

This value mus be true

GifRocket Script

Now insert the complete code of the file GifRocket.js into this field.

Save changes

Now click on "SAVE CHANGES" and you're done.

Roadmap

Roadmap

Want to contribute?

If you have any ideas on how to make this script way better, feel free to contact us. We would love to add more features. Let's improve this work together!

Team

Contributors

Copyright & License

Finndrop Studios

Copyright (c) since 2016 โ€žFinndrop Studiosโ€œ
Licensed under the MIT license.

gifrocket's People

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  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  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gifrocket's Issues

Internal server error on adding webhook

Hello! I tried to add webhook on new rocket.chat 0.31.0 installation, but after press "Save" button I see error "Internal server error". Rocket.chat log:
I20160601-16:40:38.693(3) Exception while invoking method 'addOutgoingIntegration' TypeError: Cannot call method 'split' of undefined at [object Object].Meteor.methods.addOutgoingIntegration (packages/rocketchat_integrations/server/methods/outgoing/addOutgoingIntegration.coffee:26:40) at [object Object].methodsMap.(anonymous function) (server/lib/debug.js:23:26) at maybeAuditArgumentChecks (livedata_server.js:1698:12) at livedata_server.js:708:19 at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1) at livedata_server.js:706:40 at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1) at livedata_server.js:704:46 at tryCallTwo (/data/Rocket.Chat/programs/server/npm/promise/node_modules/meteor-promise/node_modules/promise/lib/core.js:45:5) at doResolve (/data/Rocket.Chat/programs/server/npm/promise/node_modules/meteor-promise/node_modules/promise/lib/core.js:171:13)

What am I doing wrong? File GifRocket.js is latest version (downloaded today). Sorry for my bad english :-[

Converting to an App

Sooooo Apps are a new thing coming and will be way better than integrations are, with the ability to show up as a native implementation. One of the features currently implemented for Apps is commands, which work both on the native mobile applications and on the web. However, one feature which is coming up for Apps very soon is the preview of images, gifs, video, audio, etc. I need an example one to show off the previews, would you mind if I did one based upon your code here? I would even be willing to submit a pull request to add the code here...

I would probably only add the /gif or /giphy for right now. Later someone could use what I wrote as an example to implement the /sticker or something similar.

Commands not displayed in chat command list, but works.

Hello. After adding webhook, giphy commands ("/gif" and "/sticker") works, but not displayed in chat command list:
commands_rch
Is it feature of GifRocket or Rocket.Chat? My R.C fresh installation version is 0.32.0, and no errors in logs.

How to install?

Clone this repo where?
I'm using Ubuntu 16.04 and Snap installation (recommended by Rocket)

Error after setup.

Error received after using the !gif random in a public channel. Other phrases don't work either.

I20181018-11:07:23.187(-5) Exception in callback of async function: TypeError: Cannot read property 'statusCode' of null at packages/rocketchat_integrations/server/triggers.coffee:211:25 at runWithEnvironment (packages/meteor/dynamics_nodejs.js:110:1)

Documentation of Installation

I really would like to install this, but I can't understand the installation notes. Where do I need to unzip? Is it an app? Or do I need to install something with docker-compose? It as all unclear. :) Thanks for helping me!

More listening option

Hi guys, great plugin. Superb. Thank you.

I was wondering: Is there any option to "Listen to all the private channel" also?

Needing Better Integration Instructions

Hello,

I am trying to add this to my Rocket Chat instance. Where exactly do I extract the files? I attempted to add them to the package folder and activate them via Meteor (as I have with other packages, and that didn't work.

Please update the documentation to explain where to place the files.

Not working

On my actual version of Rocket.Chat i can't get it to work. Filled the outgoing webhook the way it stands in the README but when I type !gif or !gif pizza nothing is happening.

Can't hide images

One issue with the way it currently presents the images is that there is no way to collapse the message like there is with other images.

image

image

can we change the giff api and url's?

Hi.
We can't download giffs directly from media2.giphy.com because some Iran Internet censorship.
can we change the giff api and urls to our custom proxy endpoint?

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.