Skip to content

Keep your emojis sync across different Slack teams!

License

Notifications You must be signed in to change notification settings

otorrillas/slackSync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SlackSync

Keep your emojis sync across different Slack teams! Made using the Slack Events API.

For running the application itself, run:

npm start

For running the tunnel to expose your localhost:

npm tunnel

Configuration

{
	"development" : {
		"port": 3000,
		"tunnel_domain": "sample.domain",
		"download_path": "./emoji_cache/",
		"SLACK_VERIFICATION_TOKEN": "sampleToken",
		"teams": {
			"sampleID": {
				"name": "sampleName",
        		"domain": "sampleDomain",
				"cookie": "sampleCookie"
			}
		}
	}
}

Port

The default port for the Slack Events API is 3000.

Tunnel Domain

For testing locally, localtunnel is being used. You can set your own tunnel domain (for free) by setting tunnel_domain variable and running npm tunnel.

Download path

Specify the download path for the emojis. Default: ./emoji_cache/

Slack verification token

You can get the verification token once you have created the Slack App at the Basic Information screen.

Team info

You can get the team information from the SlackWebAPI team.info.

Cookie

Warning: this is not a permanent solution. For getting the cookie:

  • Visit the Emoji Page under https://{team}.slack.com/customize/emoji.
  • Open the Developer tools.
  • Navigate to the Network tab.
  • Refresh the page.
  • Click on the emoji cookie item and scroll down in the Headers tab until the Request Headers section.
  • Copy the Cookie content.

Further improvements

  • OAuth2 Support for Add to Slack button.
  • Use the Slack API for uploading emojis (feature not available yet).

About

Keep your emojis sync across different Slack teams!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published