From 4a4aa4aa7bc3b44f5178973191063d89a2460d98 Mon Sep 17 00:00:00 2001 From: Steven Loria Date: Tue, 13 Feb 2024 12:31:32 -0500 Subject: [PATCH 1/2] fix: fix signbank searches --- bot/exts/asl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/exts/asl.py b/bot/exts/asl.py index 08f0cac0..a8e5fbd5 100644 --- a/bot/exts/asl.py +++ b/bot/exts/asl.py @@ -62,7 +62,7 @@ def word_display(word: str, *, template: str = SIGN_TEMPLATE, max_length: int = return template.format( word_uppercased=word.upper(), aslcore=f"https://aslcore.org/search/?query={quoted_word}&architecture=1&art=1&biology=1&computerscience=1&engineering=1&literature=1&organicchemistry=1&philosophy=1&physics=1&sustainability=1", - asl_signbank=f"https://aslsignbank.haskins.yale.edu/signs/search/?keyword={quoted_word}", + asl_signbank=f"https://aslsignbank.haskins.yale.edu/signs/search/?translation={quoted_word}", howsign=f"https://howsign.app/?s={quoted_word}", lifeprint=f"https://www.google.com/search?&q=site%3Alifeprint.com+{quoted_word}", handspeak=f"https://www.google.com/search?&q=site%3Ahandspeak.com+{quoted_word}", From d84bb3f2355debee66b3eee9adb30f248350544f Mon Sep 17 00:00:00 2001 From: Steven Loria Date: Tue, 13 Feb 2024 12:35:04 -0500 Subject: [PATCH 2/2] update snapshots --- tests/bot/exts/__snapshots__/test_asl.ambr | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/bot/exts/__snapshots__/test_asl.ambr b/tests/bot/exts/__snapshots__/test_asl.ambr index e308fa6e..9301b026 100644 --- a/tests/bot/exts/__snapshots__/test_asl.ambr +++ b/tests/bot/exts/__snapshots__/test_asl.ambr @@ -71,8 +71,8 @@ colour=Embed.Empty, description=Embed.Empty, fields=list([ - EmbedProxy(inline=True, name='NEED', value='[🍃 **ASLCORE** - NEED](https://aslcore.org/search/?query=need&architecture=1&art=1&biology=1&computerscience=1&engineering=1&literature=1&organicchemistry=1&philosophy=1&physics=1&sustainability=1)\n[📜 **ASL Signbank** - NEED](https://aslsignbank.haskins.yale.edu/signs/search/?keyword=need)\n[🤲 **Handspeak** - Search results](https://www.google.com/search?&q=site%3Ahandspeak.com+need)\n[🧬 **Lifeprint** - Search results](https://www.google.com/search?&q=site%3Alifeprint.com+need)\n[🤝 **SigningSavvy** - Sign for NEED](https://www.signingsavvy.com/search/need)\n[🌐 **Spread The Sign** - NEED](https://www.spreadthesign.com/en.us/search/?q=need)\n[🔬 **STEM Dictionary** - NEED](https://deaftec.org/stem-dictionary/dictionary_term/need/)\n[📹 **YouGlish** - ASL videos with NEED](https://youglish.com/pronounce/need/signlanguage/us)\nShare: https://howsign.app/?s=need\n'), - EmbedProxy(inline=True, name='ASK', value='[🍃 **ASLCORE** - ASK](https://aslcore.org/search/?query=ask&architecture=1&art=1&biology=1&computerscience=1&engineering=1&literature=1&organicchemistry=1&philosophy=1&physics=1&sustainability=1)\n[📜 **ASL Signbank** - ASK](https://aslsignbank.haskins.yale.edu/signs/search/?keyword=ask)\n[🤲 **Handspeak** - Search results](https://www.google.com/search?&q=site%3Ahandspeak.com+ask)\n[🧬 **Lifeprint** - Search results](https://www.google.com/search?&q=site%3Alifeprint.com+ask)\n[🤝 **SigningSavvy** - Sign for ASK](https://www.signingsavvy.com/search/ask)\n[🌐 **Spread The Sign** - ASK](https://www.spreadthesign.com/en.us/search/?q=ask)\n[🔬 **STEM Dictionary** - ASK](https://deaftec.org/stem-dictionary/dictionary_term/ask/)\n[📹 **YouGlish** - ASL videos with ASK](https://youglish.com/pronounce/ask/signlanguage/us)\nShare: https://howsign.app/?s=ask\n'), + EmbedProxy(inline=True, name='NEED', value='[🍃 **ASLCORE** - NEED](https://aslcore.org/search/?query=need&architecture=1&art=1&biology=1&computerscience=1&engineering=1&literature=1&organicchemistry=1&philosophy=1&physics=1&sustainability=1)\n[📜 **ASL Signbank** - NEED](https://aslsignbank.haskins.yale.edu/signs/search/?translation=need)\n[🤲 **Handspeak** - Search results](https://www.google.com/search?&q=site%3Ahandspeak.com+need)\n[🧬 **Lifeprint** - Search results](https://www.google.com/search?&q=site%3Alifeprint.com+need)\n[🤝 **SigningSavvy** - Sign for NEED](https://www.signingsavvy.com/search/need)\n[🌐 **Spread The Sign** - NEED](https://www.spreadthesign.com/en.us/search/?q=need)\n[🔬 **STEM Dictionary** - NEED](https://deaftec.org/stem-dictionary/dictionary_term/need/)\n[📹 **YouGlish** - ASL videos with NEED](https://youglish.com/pronounce/need/signlanguage/us)\nShare: https://howsign.app/?s=need\n'), + EmbedProxy(inline=True, name='ASK', value='[🍃 **ASLCORE** - ASK](https://aslcore.org/search/?query=ask&architecture=1&art=1&biology=1&computerscience=1&engineering=1&literature=1&organicchemistry=1&philosophy=1&physics=1&sustainability=1)\n[📜 **ASL Signbank** - ASK](https://aslsignbank.haskins.yale.edu/signs/search/?translation=ask)\n[🤲 **Handspeak** - Search results](https://www.google.com/search?&q=site%3Ahandspeak.com+ask)\n[🧬 **Lifeprint** - Search results](https://www.google.com/search?&q=site%3Alifeprint.com+ask)\n[🤝 **SigningSavvy** - Sign for ASK](https://www.signingsavvy.com/search/ask)\n[🌐 **Spread The Sign** - ASK](https://www.spreadthesign.com/en.us/search/?q=ask)\n[🔬 **STEM Dictionary** - ASK](https://deaftec.org/stem-dictionary/dictionary_term/ask/)\n[📹 **YouGlish** - ASL videos with ASK](https://youglish.com/pronounce/ask/signlanguage/us)\nShare: https://howsign.app/?s=ask\n'), ]), footer=EmbedProxy(), image=EmbedProxy(), @@ -95,7 +95,7 @@ colour=Embed.Empty, description=''' [🍃 **ASLCORE** - TIGER](https://aslcore.org/search/?query=tiger&architecture=1&art=1&biology=1&computerscience=1&engineering=1&literature=1&organicchemistry=1&philosophy=1&physics=1&sustainability=1) - [📜 **ASL Signbank** - TIGER](https://aslsignbank.haskins.yale.edu/signs/search/?keyword=tiger) + [📜 **ASL Signbank** - TIGER](https://aslsignbank.haskins.yale.edu/signs/search/?translation=tiger) [🤲 **Handspeak** - Search results](https://www.google.com/search?&q=site%3Ahandspeak.com+tiger) [🧬 **Lifeprint** - Search results](https://www.google.com/search?&q=site%3Alifeprint.com+tiger) [🤝 **SigningSavvy** - Sign for TIGER](https://www.signingsavvy.com/search/tiger) @@ -128,7 +128,7 @@ colour=Embed.Empty, description=''' [🍃 **ASLCORE** - WHAT'S UP](https://aslcore.org/search/?query=what%27s+up&architecture=1&art=1&biology=1&computerscience=1&engineering=1&literature=1&organicchemistry=1&philosophy=1&physics=1&sustainability=1) - [📜 **ASL Signbank** - WHAT'S UP](https://aslsignbank.haskins.yale.edu/signs/search/?keyword=what%27s+up) + [📜 **ASL Signbank** - WHAT'S UP](https://aslsignbank.haskins.yale.edu/signs/search/?translation=what%27s+up) [🤲 **Handspeak** - Search results](https://www.google.com/search?&q=site%3Ahandspeak.com+what%27s+up) [🧬 **Lifeprint** - Search results](https://www.google.com/search?&q=site%3Alifeprint.com+what%27s+up) [🤝 **SigningSavvy** - Sign for WHAT'S UP](https://www.signingsavvy.com/search/what%27s+up) @@ -161,8 +161,8 @@ colour=Embed.Empty, description=Embed.Empty, fields=list([ - EmbedProxy(inline=True, name='||NEED||', value='[🍃 **ASLCORE** - ||NEED||](https://aslcore.org/search/?query=need&architecture=1&art=1&biology=1&computerscience=1&engineering=1&literature=1&organicchemistry=1&philosophy=1&physics=1&sustainability=1)\n[📜 **ASL Signbank** - ||NEED||](https://aslsignbank.haskins.yale.edu/signs/search/?keyword=need)\n[🤲 **Handspeak** - Search results](https://www.google.com/search?&q=site%3Ahandspeak.com+need)\n[🧬 **Lifeprint** - Search results](https://www.google.com/search?&q=site%3Alifeprint.com+need)\n[🤝 **SigningSavvy** - Sign for ||NEED||](https://www.signingsavvy.com/search/need)\n[🌐 **Spread The Sign** - ||NEED||](https://www.spreadthesign.com/en.us/search/?q=need)\n[🔬 **STEM Dictionary** - ||NEED||](https://deaftec.org/stem-dictionary/dictionary_term/need/)\n[📹 **YouGlish** - ASL videos with ||NEED||](https://youglish.com/pronounce/need/signlanguage/us)\nShare: ||https://howsign.app/?s=need||\n'), - EmbedProxy(inline=True, name='||ASK||', value='[🍃 **ASLCORE** - ||ASK||](https://aslcore.org/search/?query=ask&architecture=1&art=1&biology=1&computerscience=1&engineering=1&literature=1&organicchemistry=1&philosophy=1&physics=1&sustainability=1)\n[📜 **ASL Signbank** - ||ASK||](https://aslsignbank.haskins.yale.edu/signs/search/?keyword=ask)\n[🤲 **Handspeak** - Search results](https://www.google.com/search?&q=site%3Ahandspeak.com+ask)\n[🧬 **Lifeprint** - Search results](https://www.google.com/search?&q=site%3Alifeprint.com+ask)\n[🤝 **SigningSavvy** - Sign for ||ASK||](https://www.signingsavvy.com/search/ask)\n[🌐 **Spread The Sign** - ||ASK||](https://www.spreadthesign.com/en.us/search/?q=ask)\n[🔬 **STEM Dictionary** - ||ASK||](https://deaftec.org/stem-dictionary/dictionary_term/ask/)\n[📹 **YouGlish** - ASL videos with ||ASK||](https://youglish.com/pronounce/ask/signlanguage/us)\nShare: ||https://howsign.app/?s=ask||\n'), + EmbedProxy(inline=True, name='||NEED||', value='[🍃 **ASLCORE** - ||NEED||](https://aslcore.org/search/?query=need&architecture=1&art=1&biology=1&computerscience=1&engineering=1&literature=1&organicchemistry=1&philosophy=1&physics=1&sustainability=1)\n[📜 **ASL Signbank** - ||NEED||](https://aslsignbank.haskins.yale.edu/signs/search/?translation=need)\n[🤲 **Handspeak** - Search results](https://www.google.com/search?&q=site%3Ahandspeak.com+need)\n[🧬 **Lifeprint** - Search results](https://www.google.com/search?&q=site%3Alifeprint.com+need)\n[🤝 **SigningSavvy** - Sign for ||NEED||](https://www.signingsavvy.com/search/need)\n[🌐 **Spread The Sign** - ||NEED||](https://www.spreadthesign.com/en.us/search/?q=need)\n[🔬 **STEM Dictionary** - ||NEED||](https://deaftec.org/stem-dictionary/dictionary_term/need/)\n[📹 **YouGlish** - ASL videos with ||NEED||](https://youglish.com/pronounce/need/signlanguage/us)\nShare: ||https://howsign.app/?s=need||\n'), + EmbedProxy(inline=True, name='||ASK||', value='[🍃 **ASLCORE** - ||ASK||](https://aslcore.org/search/?query=ask&architecture=1&art=1&biology=1&computerscience=1&engineering=1&literature=1&organicchemistry=1&philosophy=1&physics=1&sustainability=1)\n[📜 **ASL Signbank** - ||ASK||](https://aslsignbank.haskins.yale.edu/signs/search/?translation=ask)\n[🤲 **Handspeak** - Search results](https://www.google.com/search?&q=site%3Ahandspeak.com+ask)\n[🧬 **Lifeprint** - Search results](https://www.google.com/search?&q=site%3Alifeprint.com+ask)\n[🤝 **SigningSavvy** - Sign for ||ASK||](https://www.signingsavvy.com/search/ask)\n[🌐 **Spread The Sign** - ||ASK||](https://www.spreadthesign.com/en.us/search/?q=ask)\n[🔬 **STEM Dictionary** - ||ASK||](https://deaftec.org/stem-dictionary/dictionary_term/ask/)\n[📹 **YouGlish** - ASL videos with ||ASK||](https://youglish.com/pronounce/ask/signlanguage/us)\nShare: ||https://howsign.app/?s=ask||\n'), ]), footer=EmbedProxy(), image=EmbedProxy(), @@ -185,7 +185,7 @@ colour=Embed.Empty, description=''' [🍃 **ASLCORE** - ||TIGER||](https://aslcore.org/search/?query=tiger&architecture=1&art=1&biology=1&computerscience=1&engineering=1&literature=1&organicchemistry=1&philosophy=1&physics=1&sustainability=1) - [📜 **ASL Signbank** - ||TIGER||](https://aslsignbank.haskins.yale.edu/signs/search/?keyword=tiger) + [📜 **ASL Signbank** - ||TIGER||](https://aslsignbank.haskins.yale.edu/signs/search/?translation=tiger) [🤲 **Handspeak** - Search results](https://www.google.com/search?&q=site%3Ahandspeak.com+tiger) [🧬 **Lifeprint** - Search results](https://www.google.com/search?&q=site%3Alifeprint.com+tiger) [🤝 **SigningSavvy** - Sign for ||TIGER||](https://www.signingsavvy.com/search/tiger) @@ -218,7 +218,7 @@ colour=Embed.Empty, description=''' [🍃 **ASLCORE** - ||WHAT'S UP||](https://aslcore.org/search/?query=what%27s+up&architecture=1&art=1&biology=1&computerscience=1&engineering=1&literature=1&organicchemistry=1&philosophy=1&physics=1&sustainability=1) - [📜 **ASL Signbank** - ||WHAT'S UP||](https://aslsignbank.haskins.yale.edu/signs/search/?keyword=what%27s+up) + [📜 **ASL Signbank** - ||WHAT'S UP||](https://aslsignbank.haskins.yale.edu/signs/search/?translation=what%27s+up) [🤲 **Handspeak** - Search results](https://www.google.com/search?&q=site%3Ahandspeak.com+what%27s+up) [🧬 **Lifeprint** - Search results](https://www.google.com/search?&q=site%3Alifeprint.com+what%27s+up) [🤝 **SigningSavvy** - Sign for ||WHAT'S UP||](https://www.signingsavvy.com/search/what%27s+up)