Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit cabccb8

Browse files
committed
fix: use 'sign' in documentation and variable names
1 parent 24bf017 commit cabccb8

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

bot.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -100,46 +100,46 @@ def check(reaction, user):
100100
@bot.event
101101
async def on_ready():
102102
activity = discord.Activity(
103-
name=f"{COMMAND_PREFIX}howsign | {COMMAND_PREFIX}handshapes",
103+
name=f"{COMMAND_PREFIX}sign | {COMMAND_PREFIX}handshapes",
104104
type=discord.ActivityType.playing,
105105
)
106106
await bot.change_presence(activity=activity)
107107

108108

109109
# -----------------------------------------------------------------------------
110110

111-
HOWSIGN_TEMPLATE = """[👋 **Handspeak** - Search results]({handspeak})
111+
SIGN_TEMPLATE = """[👋 **Handspeak** - Search results]({handspeak})
112112
[🧬 **Lifeprint** - Search results]({lifeprint})
113113
[🤝 **SigningSavvy** - Sign for {word_uppercased}]({signingsavvy})
114114
[🌐 **Spread The Sign** - {word_uppercased}]({spread_the_sign})
115115
[📹 **YouGlish** - Videos containing {word_uppercased}]({youglish})
116116
"""
117117

118-
HOWSIGN_SPOILER_TEMPLATE = """[👋 **Handspeak** - Search results]({handspeak})
118+
SIGN_SPOILER_TEMPLATE = """[👋 **Handspeak** - Search results]({handspeak})
119119
[🧬 **Lifeprint** - Search results]({lifeprint})
120120
[🤝 **SigningSavvy** - Sign for ||{word_uppercased}||]({signingsavvy})
121121
[🌐 **Spread The Sign** - ||{word_uppercased}||]({spread_the_sign})
122122
[📹 **YouGlish** - Videos containing ||{word_uppercased}||]({youglish})
123123
"""
124124

125-
HOWSIGN_HELP = """Look up a word or phrase
125+
SIGN_HELP = """Look up a word or phrase
126126
127127
If the word or phrase is sent in spoiler text, i.e. enclosed in `||`, the word will also be blacked out in the reply.
128128
To search multiple words/phrases, separate the values with a comma.
129129
130130
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
135135
""".format(
136136
COMMAND_PREFIX=COMMAND_PREFIX
137137
)
138138

139139

140140
def word_display(word: str, *, has_spoiler: bool):
141141
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
143143
return template.format(
144144
word_uppercased=word.upper(),
145145
lifeprint=f"https://www.google.com/search?&q=site%3Alifeprint.com+{quoted_word}",
@@ -172,7 +172,7 @@ def sign_impl(word: str):
172172
return {"embed": embed}
173173

174174

175-
@bot.command(name="sign", aliases=("howsign",), help=HOWSIGN_HELP)
175+
@bot.command(name="sign", aliases=("howsign",), help=SIGN_HELP)
176176
async def sign_command(ctx: Context, *, word: str):
177177
await ctx.send(**sign_impl(word))
178178

0 commit comments

Comments
 (0)