@@ -100,46 +100,46 @@ def check(reaction, user):
100
100
@bot .event
101
101
async def on_ready ():
102
102
activity = discord .Activity (
103
- name = f"{ COMMAND_PREFIX } howsign | { COMMAND_PREFIX } handshapes" ,
103
+ name = f"{ COMMAND_PREFIX } sign | { COMMAND_PREFIX } handshapes" ,
104
104
type = discord .ActivityType .playing ,
105
105
)
106
106
await bot .change_presence (activity = activity )
107
107
108
108
109
109
# -----------------------------------------------------------------------------
110
110
111
- HOWSIGN_TEMPLATE = """[👋 **Handspeak** - Search results]({handspeak})
111
+ SIGN_TEMPLATE = """[👋 **Handspeak** - Search results]({handspeak})
112
112
[🧬 **Lifeprint** - Search results]({lifeprint})
113
113
[🤝 **SigningSavvy** - Sign for {word_uppercased}]({signingsavvy})
114
114
[🌐 **Spread The Sign** - {word_uppercased}]({spread_the_sign})
115
115
[📹 **YouGlish** - Videos containing {word_uppercased}]({youglish})
116
116
"""
117
117
118
- HOWSIGN_SPOILER_TEMPLATE = """[👋 **Handspeak** - Search results]({handspeak})
118
+ SIGN_SPOILER_TEMPLATE = """[👋 **Handspeak** - Search results]({handspeak})
119
119
[🧬 **Lifeprint** - Search results]({lifeprint})
120
120
[🤝 **SigningSavvy** - Sign for ||{word_uppercased}||]({signingsavvy})
121
121
[🌐 **Spread The Sign** - ||{word_uppercased}||]({spread_the_sign})
122
122
[📹 **YouGlish** - Videos containing ||{word_uppercased}||]({youglish})
123
123
"""
124
124
125
- HOWSIGN_HELP = """Look up a word or phrase
125
+ SIGN_HELP = """Look up a word or phrase
126
126
127
127
If the word or phrase is sent in spoiler text, i.e. enclosed in `||`, the word will also be blacked out in the reply.
128
128
To search multiple words/phrases, separate the values with a comma.
129
129
130
130
Examples:
131
- {COMMAND_PREFIX}howsign tiger
132
- {COMMAND_PREFIX}howsign ||tiger||
133
- {COMMAND_PREFIX}howsign what's up
134
- {COMMAND_PREFIX}howsign church, chocolate, computer
131
+ {COMMAND_PREFIX}sign tiger
132
+ {COMMAND_PREFIX}sign ||tiger||
133
+ {COMMAND_PREFIX}sign what's up
134
+ {COMMAND_PREFIX}sign church, chocolate, computer
135
135
""" .format (
136
136
COMMAND_PREFIX = COMMAND_PREFIX
137
137
)
138
138
139
139
140
140
def word_display (word : str , * , has_spoiler : bool ):
141
141
quoted_word = quote_plus (word )
142
- template = HOWSIGN_SPOILER_TEMPLATE if has_spoiler else HOWSIGN_TEMPLATE
142
+ template = SIGN_SPOILER_TEMPLATE if has_spoiler else SIGN_TEMPLATE
143
143
return template .format (
144
144
word_uppercased = word .upper (),
145
145
lifeprint = f"https://www.google.com/search?&q=site%3Alifeprint.com+{ quoted_word } " ,
@@ -172,7 +172,7 @@ def sign_impl(word: str):
172
172
return {"embed" : embed }
173
173
174
174
175
- @bot .command (name = "sign" , aliases = ("howsign" ,), help = HOWSIGN_HELP )
175
+ @bot .command (name = "sign" , aliases = ("howsign" ,), help = SIGN_HELP )
176
176
async def sign_command (ctx : Context , * , word : str ):
177
177
await ctx .send (** sign_impl (word ))
178
178
0 commit comments