Skip to content

Commit c3ce388

Browse files
authored
Merge pull request #350 from paulholden/ICT-5424
Replace tracker images with equivalent emojis.
2 parents 0b10271 + 64960b5 commit c3ce388

File tree

1 file changed

+18
-20
lines changed
  • tracker_automations/bulk_precheck_issues

1 file changed

+18
-20
lines changed

β€Žtracker_automations/bulk_precheck_issues/util.shβ€Ž

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function positive_tracker_emoticon() {
88
if [[ $rand -eq 0 ]]
99
then
1010
image=$(get_happy_image)
11-
echo "!${image}!"
11+
echo "${image}"
1212
else
1313
echo '(y)'
1414
fi
@@ -21,52 +21,50 @@ function negative_tracker_emoticon() {
2121
if [[ $rand -eq 0 ]]
2222
then
2323
image=$(get_sad_image)
24-
echo "!${image}!"
24+
echo "${image}"
2525
else
2626
echo '(n)'
2727
fi
2828
}
2929

3030

3131
function get_happy_image() {
32-
# marys pompoms (from https://tracker.moodle.org/browse/MDLSITE-3642)
33-
images[0]='https://tracker.moodle.org/secure/attachment/46622/AnimatedAmy.gif'
32+
# smiling face with halo πŸ˜‡
33+
images[0]='πŸ˜‡'
3434
# balloon🎈
35-
images[1]='https://cdnjs.cloudflare.com/ajax/libs/twemoji/2.5/16x16/1f388.png'
35+
images[1]='🎈'
3636
# party popper πŸŽ‰
37-
images[2]='https://cdnjs.cloudflare.com/ajax/libs/twemoji/2.5/16x16/1f389.png'
37+
images[2]='πŸŽ‰'
3838
# clinking beer mugs 🍻
39-
images[3]='https://cdnjs.cloudflare.com/ajax/libs/twemoji/2.5/16x16/1f37b.png'
39+
images[3]='🍻'
4040
# cookie πŸͺ
41-
images[4]='https://cdnjs.cloudflare.com/ajax/libs/twemoji/2.5/16x16/1f36a.png'
41+
images[4]='πŸͺ'
4242
# cake 🍰
43-
images[5]='https://cdnjs.cloudflare.com/ajax/libs/twemoji/2.5/16x16/1f370.png'
43+
images[5]='🍰'
4444
# glowing star 🌟
45-
images[6]='https://cdnjs.cloudflare.com/ajax/libs/twemoji/2.5/16x16/1f31f.png'
46-
# smiling face with halo πŸ˜‡
47-
images[7]='https://cdnjs.cloudflare.com/ajax/libs/twemoji/2.5/16x16/1f607.png'
45+
images[6]='🌟'
4846

4947
index=$[$RANDOM % ${#images[@]}]
5048
echo ${images[$index]}
5149
}
5250

5351
function get_sad_image() {
5452
# fire πŸ”₯
55-
images[0]='https://cdnjs.cloudflare.com/ajax/libs/twemoji/2.5/16x16/1f525.png'
53+
images[0]='πŸ”₯'
5654
# pile of poo πŸ’©
57-
images[1]='https://cdnjs.cloudflare.com/ajax/libs/twemoji/2.5/16x16/1f4a9.png'
55+
images[1]='πŸ’©'
5856
# speak-no-evil monkey πŸ™Š
59-
images[2]='https://cdnjs.cloudflare.com/ajax/libs/twemoji/2.5/16x16/1f64a.png'
57+
images[2]='πŸ™Š'
6058
# bug 🐜
61-
images[3]='https://cdnjs.cloudflare.com/ajax/libs/twemoji/2.5/16x16/1f41c.png'
59+
images[3]='🐜'
6260
# face screaming in fear 😱
63-
images[4]='https://cdnjs.cloudflare.com/ajax/libs/twemoji/2.5/16x16/1f631.png'
61+
images[4]='😱'
6462
# construction sign 🚧
65-
images[5]='https://cdnjs.cloudflare.com/ajax/libs/twemoji/2.5/16x16/1f6a7.png'
63+
images[5]='🚧'
6664
# sos πŸ†˜
67-
images[6]='https://cdnjs.cloudflare.com/ajax/libs/twemoji/2.5/16x16/1f198.png'
65+
images[6]='πŸ†˜'
6866
# skull πŸ’€
69-
images[7]='https://cdnjs.cloudflare.com/ajax/libs/twemoji/2.5/16x16/1f480.png'
67+
images[7]='πŸ’€'
7068

7169
index=$[$RANDOM % ${#images[@]}]
7270
echo ${images[$index]}

0 commit comments

Comments
Β (0)