Skip to content

Conversation

Czdam0
Copy link

@Czdam0 Czdam0 commented Apr 9, 2025

What does this PR do?

Fixes the discord bot template

This pull request includes changes to the python/discord_command_bot to handle ping requests, correct a typo, and improve the handling of interaction commands. Additionally, there is a minor import adjustment in the setup.py file.

Enhancements to interaction handling:

Codebase corrections:

Import adjustments:

Test Plan

Null

Related PRs and Issues

Null

Have you read the Contributing Guidelines on issues?

Yes

Czdam0 added 5 commits April 10, 2025 00:15
Traceback (most recent call last):
  File "/usr/local/build/src/setup.py", line 2, in <module>
    from .utils import throw_if_missing
ImportError: attempted relative import with no known parent package
context.req.body_bianary -->  context.req.body_binary,
Responds to Discord's ping requests to keep the connection alive.
This prevents timeouts and ensures the bot remains responsive.
Removes redundant pong response.
AttributeError  fix
@Czdam0 Czdam0 changed the title Fix 0 python discord command bot Fix python discord command bot Apr 9, 2025
@Czdam0 Czdam0 marked this pull request as ready for review April 9, 2025 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant