Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
/ Distable Public archive

Sync emoji among your own discord servers.

License

Notifications You must be signed in to change notification settings

usagiga/Distable

Repository files navigation

distable

Icons made by Freepik from www.flaticon.com

Distable

Sync emojis among your own discord servers. Thanks to it, you / your guild's members can use same emoji on relevant communities.

Distable is inspired by FromAtom/Utsushie.

Installation

$ go get github.com/usagiga/Distable

Usage

1. Setup Discord App & Bot

Make new app here. Then make new bot on the app.

Open it on your browser, then authorize the app in all servers which you wanted to sync emojis.

https://discordapp.com/oauth2/authorize?&client_id=APP_CLIENT_ID_HERE&scope=bot&permissions=1073741824

NOTICE : You shouldn't use PUBLIC BOT mode.

2. Configure

Write bot token and guild(a.k.a server)'s ID into config.json. Put it on a directory as you like.

NOTICE : You can put 3 or more servers into it.

Example

{
  "credential": {
    "bot_token": "YOUR_DISCORD_BOT_TOKEN"
  },
  "servers": [
    {"guild_id": "YOUR_SERVER'S_ID"},
    {"guild_id": "YOUR_SERVER'S_ID", "type":0},
    {"guild_id": "YOUR_SERVER'S_ID", "type":1}
  ]
}

type is used to represent the server is Master(0 or default) or Slave(1). All master server's emoji will be applied to other servers. But all slave server's emojis are not, just they depend on master's.

3. Launch

Just run it on directory put config.json . Sync all server's emojis automatically 🎉

You can use Stream-Mode also. The mode is to sync on every updating. If you wanna use it, pass Distable to "--stream".

NOTICE : Stream-Mode treats the updated server is as master and others is as slave. So you should use Normal-Mode to align all server emojis as same, before use Stream-Mode.

Dependencies

License

MIT