Repository navigation
Add banners & discord configs and send through query - #831
Conversation
|
discord connector already uses the "discord": {
"bot_token": "MYBOTTOKEN"
} |
|
So obviously Discord is the chat program du-jour, but there are others, notably Telegram. It would be good if this was more generic, so you could specify some meta-data for any program - name, link, graphics, etc. Even an array of them. Rather than hard-coding to just one. |
As long as the leaf properties are different it wouldn't |
That's why I mentioned telegram. It and VK are still very popular alternatives in Russia and other places. |
I'll do it in another PR, merging this one as of now |
|
Current format for configs are: {
"discord": {
"invite": "https://discord.gg/samp"
},
"banners": {
"light": "https://github.com/openmultiplayer/graphics/blob/master/rendered/wordmark-inverse.png?raw=true",
"dark": "https://github.com/openmultiplayer/graphics/blob/master/rendered/wordmark-inverse.png?raw=true"
}
} |

new configs are now available, example:
{ "discord": "https://discord.gg/samp", "banner_light": "https://github.com/openmultiplayer/graphics/blob/master/rendered/wordmark-light-mono.png?raw=true", "banner_dark": "https://github.com/openmultiplayer/graphics/blob/master/rendered/wordmark-coloured.png?raw=true" }then with query
o, instead of sending same receiving back, we send these.max. banner url length is 120 chars.
max. discord url length is 50 chars.