-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteams-items.handlebars
54 lines (51 loc) · 1.58 KB
/
teams-items.handlebars
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"summary": "{{{Name}}} has been added to {{{ServerName}}}",
"themeColor": "{{EmbedColor}}",
"title": "{{{BotUsername}}}",
"sections": [
{
{{#if_equals ItemType 'Season'}}
"activityTitle": "{{{SeriesName}}} {{{Name}}} has been added to {{{ServerName}}}",
{{else}}
{{#if_equals ItemType 'Episode'}}
"activityTitle": "{{{SeriesName}}} S{{SeasonNumber00}}E{{EpisodeNumber00}} {{{Name}}} has been added to {{{ServerName}}}",
{{else}}
"activityTitle": "{{{Name}}} ({{Year}}) has been added to {{{ServerName}}}",
{{/if_equals}}
{{/if_equals}}
"activityImage": "{{AvatarUrl}}"
},
{
"text": "
{{~if_exist Overview~}}
*Synopsis:* {{{Overview}}}
{{~/if_exist~}}
"
},
{
"text": "
{{~#if_exist ServerUrl~}}
[**Watch here**]({{ServerUrl}}/web/index.html#!/details?id={{ItemId}}&serverId={{ServerId}})
{{~/if_exist~}}
{{~#if_exist Provider_imdb~}}
• [IMDb](https://www.imdb.com/title/{{Provider_imdb}}/)
{{~/if_exist~}}
{{~#if_exist Provider_tmdb~}}
{{~#if_equals ItemType 'Movie'~}}
• [TMDb](https://www.themoviedb.org/movie/{{Provider_tmdb}})
{{~else~}}
• [TMDb](https://www.themoviedb.org/tv/{{Provider_tmdb}})
{{~/if_equals~}}
{{~/if_exist~}}
"
}
],
"potentialAction": [
{
"@type": "OpenUri",
"name": "{{MentionType}}"
}
]
}