Skip to content

Make atlantisbot a hybrid command + add rough testing setup for commands#38

Merged
johnvictorfs merged 8 commits into
masterfrom
codex/add-/atlantisbot-command-to-bot
Feb 5, 2026
Merged

Make atlantisbot a hybrid command + add rough testing setup for commands#38
johnvictorfs merged 8 commits into
masterfrom
codex/add-/atlantisbot-command-to-bot

Conversation

@johnvictorfs

Copy link
Copy Markdown
Owner

Motivation

  • Provide an automated check that the AtlantisBot help command is exposed as a Discord application (slash) hybrid command after the previous change converting it from a plain prefix command to a hybrid command.

Description

  • Add tests/test_atlantisbot_command.py which stubs run-time dependencies and imports bot.cogs.chat.Chat to verify the command registration.
  • The test stubs bot.bot_client, bot.utils.checks, bot.utils.context, and bot.cogs.raids to avoid requiring Django and other external services during import.
  • The test asserts that Chat.atlantisbot is a commands.HybridCommand, that its name is "atlantisbot", and that the alias "atlbot" is present.

Testing

  • Ran pytest -q and the new test passed (1 passed).

Codex Task

@johnvictorfs johnvictorfs changed the title Add test for /atlantisbot hybrid command Make atlantisbot a hybrid command + add rough testing setup for commands Feb 5, 2026
@johnvictorfs
johnvictorfs requested a review from Copilot February 5, 2026 03:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR converts the atlantisbot command from a prefix-only command to a hybrid command (supporting both prefix and slash command invocation) and establishes a testing framework to verify command registration and behavior.

Changes:

  • Converted atlcommands function to atlantisbot as a HybridCommand with multiple aliases
  • Added pytest dependency and test infrastructure with module stubbing
  • Added GitHub Actions workflow step to run tests

Reviewed changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
bot/cogs/chat.py Converted atlcommands command to atlantisbot hybrid command with updated aliases
tests/helpers.py Created test helper utilities including module stubs and fake context for isolated testing
tests/test_atlantisbot_command.py Added test to verify atlantisbot is registered as a hybrid command with correct name and aliases
tests/test_aplicar_aod_command.py Added test for aplicar_aod command message behavior
tests/init.py Created test package initialization file
pyproject.toml Added pytest as a development dependency
.github/workflows/ci.yml Updated cache action version, added system dependencies, and added pytest execution step
bot/bot_client.py Added command tree synchronization on bot startup
bot/cogs/amigosecreto.py Reformatted long strings for better readability (unrelated to main PR purpose)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@johnvictorfs
johnvictorfs merged commit 3b3afcc into master Feb 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants