Skip to content

Commit 55d8047

Browse files
committed
Fix typos.
1 parent 22caf35 commit 55d8047

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Below are explanations for each variable:
115115
* `BOT_ACCEPT_INVITE_URL`: a URL to visit to accept the Ghostty invite
116116
* `BOT_WEBHOOK_NAME`: the name of the webhook used for all webhook messages sent
117117
by the bot. You do not have to manually create this webhook.
118-
* channel/role IDs from [step 3](#3-preparing-a-discord-server):
118+
* Channel/role IDs from [step 3](#3-preparing-a-discord-server):
119119
* `BOT_HELP_CHANNEL_ID`
120120
* `BOT_HELP_CHANNEL_TAG_IDS`: a comma-separated list of `tag_name:tag_id`
121121
pairs. The tag names are `moved`, `solved`, `stale` and `duplicate`.

app/components/github_integration/mentions/resolution.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ async def resolve_repo_signatures(
7575
# A touch of personalization
7676
yield config.GITHUB_ORG, config.GITHUB_REPOS["bot"], number
7777
case None, "xkcd":
78-
# Ignore the xkcd prefix, as it is handled by xkcd_mentions.py.
78+
# Ignore the XKCD prefix, as it is handled by xkcd_mentions.py.
7979
continue
8080
case None, repo:
8181
# Only a name provided, e.g. uv#8020.

app/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ async def on_message(message: discord.Message) -> None:
9797
reply_with_code(message), # Look for GitHub code links and reply with contents
9898
reply_with_comments(message), # Check for entity comments and reply with embeds
9999
check_for_old_posts(message), # Check for bumps of old help posts and lock them
100-
handle_xkcd_mentions(message), # Reply to xkcd mentions with the URL
100+
handle_xkcd_mentions(message), # Reply to XKCD mentions with the URL
101101
]
102102

103103
# Look for issue/PR/discussion mentions and name/link them

app/utils/webhooks.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async def _get_reference(message: discord.Message) -> discord.Message | None:
7373
# And now, we have a forward. Discord doesn't collapse forwarded forwards,
7474
# so we shall do it ourselves. This loop should not run for replies, as if
7575
# that happens we would end up dereferencing all the way back to the start
76-
# of a reply chain, which would be a horendous idea.
76+
# of a reply chain, which would be a horrendous idea.
7777
message = ref
7878
while (ref := await _get_original_message(message)) is not None:
7979
if ref is discord.utils.MISSING:
@@ -444,8 +444,8 @@ async def move_message_via_webhook( # noqa: PLR0913
444444

445445
if (
446446
message.poll is None
447-
# Discord does not like negative poll durations. Polls created by
448-
# a Webhook cannot be ended manually, so simply discard polls which
447+
# Discord does not like polls with a negative duration. Polls created
448+
# by a webhook cannot be ended manually, so simply discard polls which
449449
# have ended.
450450
or message.poll.expires_at is None
451451
or dt.datetime.now(tz=dt.UTC) >= message.poll.expires_at
@@ -573,11 +573,11 @@ def _find_snowflake(
573573

574574

575575
def get_moved_message_author_id(message: discord.WebhookMessage) -> int | None:
576-
# NOTE: This function takes a discord.WebhookMessage instead of
576+
# NOTE: this function takes a discord.WebhookMessage instead of
577577
# a discord.Message to force the caller to ensure that the requested
578578
# message is actually from a webhook.
579579

580-
# HACK: As far as I know, Discord does not provide any way to attach
580+
# HACK: as far as I know, Discord does not provide any way to attach
581581
# a hidden number to a webhook message, nor does it provide a way to link
582582
# a webhook message to a user. Thus, this information is extracted from the
583583
# subtext of moved messages.

tests/test_message_moving.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
# special, so it's a false positive in the context that this function
4646
# is used in. This would have to be handled by the caller, and won't be
4747
# as this is deemed "too difficult" for a corner case that wouldn't
48-
# even materialise in practice because the subtext will never contain
48+
# even materialize in practice because the subtext will never contain
4949
# code blocks with snowflakes contained within.
5050
("`<@192849172497>`", "@", (192849172497, 1)),
5151
("```<@192849172497>```", "@", (192849172497, 3)),

tests/utils/kitposer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __call__(self, *a: object, **kw: object) -> Any:
5757
raise PoserSetupError(msg)
5858

5959
blackbox = self.responses[self._context]
60-
# HACK: Fetching the original key instead of doing "Call(*a, **kw) in blackbox"
60+
# HACK: fetching the original key instead of doing "Call(*a, **kw) in blackbox"
6161
# to preserve the __kitposer_*__ settings.
6262
arg_store = next((call for call in blackbox if call == Call(*a, **kw)), None)
6363
if arg_store is None:

0 commit comments

Comments
 (0)