From 25675a1277d463e89c1249c42a0a31d1ee0b56be Mon Sep 17 00:00:00 2001 From: Siddhesh Mhadnak Date: Sun, 17 Jul 2022 17:31:53 +0530 Subject: feat(tags): add print-return tag Since we already create the tag embed from the `embed` object in the metadata, we already have the support to add images in embeds, albeit a bit more verbose than if we had added a `media` property in the metadata containing only the URL. --- bot/resources/tags/print-return.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 bot/resources/tags/print-return.md diff --git a/bot/resources/tags/print-return.md b/bot/resources/tags/print-return.md new file mode 100644 index 000000000..e85ecc31f --- /dev/null +++ b/bot/resources/tags/print-return.md @@ -0,0 +1,10 @@ +--- +embed: + image: + url: https://cdn.discordapp.com/attachments/267659945086812160/998198889154879558/print-return.gif +--- +**Print and Return** + +Here's a handy animation demonstrating how `print` and `return` differ in behavior. + +See also: `!tags return` -- cgit v1.2.3 From b1313b60a5dc86f4f087889ded6a9fc53e2816cc Mon Sep 17 00:00:00 2001 From: Siddhesh Mhadnak Date: Sun, 17 Jul 2022 18:59:26 +0530 Subject: style(tags/print-return): set the `title` property instead of using bolded text --- bot/resources/tags/print-return.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bot/resources/tags/print-return.md b/bot/resources/tags/print-return.md index e85ecc31f..77dc8a21c 100644 --- a/bot/resources/tags/print-return.md +++ b/bot/resources/tags/print-return.md @@ -1,10 +1,9 @@ --- embed: + title: Print and Return image: url: https://cdn.discordapp.com/attachments/267659945086812160/998198889154879558/print-return.gif --- -**Print and Return** - Here's a handy animation demonstrating how `print` and `return` differ in behavior. See also: `!tags return` -- cgit v1.2.3 From 9ac1bda426602a9f1a056cc9896a147690747f45 Mon Sep 17 00:00:00 2001 From: Siddhesh Mhadnak Date: Sun, 17 Jul 2022 20:14:35 +0530 Subject: chore(tags/print-return): add the GIF to the repo As discussed in https://discord.com/channels/267624335836053506/635950537262759947/998235482494353508, using the raw GitHub URL for the GIF would be more reliable than the Discord CDN URL. --- bot/resources/media/print-return.gif | Bin 0 -> 119946 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 bot/resources/media/print-return.gif diff --git a/bot/resources/media/print-return.gif b/bot/resources/media/print-return.gif new file mode 100644 index 000000000..5d99329dc Binary files /dev/null and b/bot/resources/media/print-return.gif differ -- cgit v1.2.3 From 41f6e4d86cef4d1b2f5e368e65e534d58f1d489b Mon Sep 17 00:00:00 2001 From: Siddhesh Mhadnak Date: Sun, 17 Jul 2022 20:20:56 +0530 Subject: fix(tags/print-return): use the raw GitHub URL for the GIF As mentioned in the previous commit, using the raw GitHub URL would be more reliable than a Discord CDN URL. --- bot/resources/tags/print-return.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/resources/tags/print-return.md b/bot/resources/tags/print-return.md index 77dc8a21c..89d37053f 100644 --- a/bot/resources/tags/print-return.md +++ b/bot/resources/tags/print-return.md @@ -2,7 +2,7 @@ embed: title: Print and Return image: - url: https://cdn.discordapp.com/attachments/267659945086812160/998198889154879558/print-return.gif + url: https://raw.githubusercontent.com/python-discord/bot/main/bot/resources/media/print-return.gif --- Here's a handy animation demonstrating how `print` and `return` differ in behavior. -- cgit v1.2.3