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.
$ go get github.com/usagiga/Distable
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.
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.
{
"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.
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.
- Go (1.14 or higher)
- github.com/bwmarrin/discordgo
- github.com/vincent-petithory/dataurl
MIT