Git Product home page Git Product logo

slack-emoji-upload's Introduction

Slack Custom Emoji Import

Hacked this thing up to import over 500 emoji into a new Slack from another Slack.

Setup

This crazy thing uses environment variables so that i didn't leak my private info. You'll need three:

  • SLACK_DOMAIN
  • SLACK_EMAIL
  • SLACK_PASSWORD

Run it! ๐Ÿ’จ

Make sure you have a file called emoji_list.txt in along with the script. There's one in this repo, but if you want to provide your own you can get it from the Slack Emoji List API. The emojis that go with the list are also here in the proper place that the script will look for them. If for some crazy reason, you want this exact set, you don't have to do any work! ๐Ÿค˜

$ bundle
$ SLACK_DOMAIN=foo [email protected] SLACK_PASSWORD="myf4ncyp455w0rd" bundle exec ruby ./slack_emoji_upload.rb

Now, go grab a โ˜• while the computer imports all the emoji! If you have to stop it in the middle, it won't download the images again, but it will try to import all the emoji in the list a second time.

Caveats

This code isn't very pretty. To call it a quick hack is an understatement. ๐Ÿ˜ƒ

There's no support for aliases. The code is there, but it didn't work and I haven't gone back to fix it yet. ๐Ÿ˜ฑ

It's slow. There's no API for emoji imports in Slack, so we're faking a browser session with Capybara. Shhh. ๐Ÿ˜ถ ๐Ÿ™ˆ

No tests! Wheee! ๐Ÿ˜‡

slack-emoji-upload's People

Contributors

mattr- avatar glv avatar

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.