Skip to content

Instantly share code, notes, and snippets.

@evoandroidevo
Last active December 2, 2021 04:13
Show Gist options
  • Save evoandroidevo/28186283f373dd019efac4699e98932f to your computer and use it in GitHub Desktop.
Save evoandroidevo/28186283f373dd019efac4699e98932f to your computer and use it in GitHub Desktop.
{
"content": "{{MentionType}}",
"avatar_url": "{{AvatarUrl}}",
"username": "{{{BotUsername}}}",
"embeds": [{
"color": "{{EmbedColor}}",
"description": "Runtime: {{{RunTime}}}",
"timestamp": "{{{UtcTimestamp}}}",
"footer": {
"text": "From {{{ServerName}}}",
"icon_url": "{{AvatarUrl}}"
},
"url": "{{ServerUrl}}/web/index.html#!/details?id={{ItemId}}&serverId={{ServerId}}",
{{#if_equals ItemType 'Season'}}
"title": "{{{SeriesName}}} {{{Name}}} has been added to {{{ServerName}}}",
{{else}}
{{#if_equals ItemType 'Episode'}}
"title": "{{{SeriesName}}} S{{SeasonNumber00}}E{{EpisodeNumber00}} {{{Name}}} has been added to {{{ServerName}}}",
{{else}}
"title": "{{{Name}}} ({{Year}}) has been added to {{{ServerName}}}",
{{/if_equals}}
{{/if_equals}}
"image": {
"url": "{{ServerUrl}}/Items/{{ItemId}}/Images/Primary",
"height": 375,
"width": 250
},
"fields": [{
"name": "IMDb",
{{~#if_exist Provider_imdb~}}
"value": "https://www.imdb.com/title/{{Provider_imdb}}/",
{{~else~}}
"value": "N/A",
{{~/if_exist~}}
"inline": true
{{~#if_exist Provider_tmdb~}}
},{
"name": "TMDb",
{{~#if_equals ItemType 'Movie'~}}
"value": "https://www.themoviedb.org/movie/{{Provider_tmdb}}",
{{~else~}}
"value": "https://www.themoviedb.org/tv/{{Provider_tmdb}}",
{{~/if_equals~}}
"inline": true
{{~/if_exist~}}
}]
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment