Coder Social home page Coder Social 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

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.