-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Integration] - Create a Discord CLI Tool in Rust Integrated with the Command API #62
Comments
miguelcsx
added a commit
that referenced
this issue
Sep 26, 2024
- used serenity lib to build discord bot - made http requests with reqwest - updated .gitignore and pre-commit for rust integration
miguelcsx
added a commit
that referenced
this issue
Sep 26, 2024
miguelcsx
added a commit
that referenced
this issue
Oct 1, 2024
- updated dependencies to build slash commands - made command for `ping` endpoint - loaded config from environment
miguelcsx
added a commit
that referenced
this issue
Oct 1, 2024
- updated dependencies to build slash commands - made command for `ping` endpoint - loaded config from environment
miguelcsx
added a commit
that referenced
this issue
Oct 2, 2024
- updated dependencies to build slash commands - made command for `ping` endpoint - loaded config from environment
miguelcsx
added a commit
that referenced
this issue
Oct 2, 2024
- updated dependencies to build slash commands - made command for `ping` endpoint - loaded config from environment For more info look at: #62
miguelcsx
added a commit
that referenced
this issue
Oct 17, 2024
## Description This PR adds an event handler to the Discord bot that prints a message to the console when the server is ready. ### Changes Made - Implemented the `on_ready` event to log the bot's status with the message: "Logged in as {bot_name}!" ### Related Issues - #62
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
We want to develop a CLI tool in Rust that integrates with our existing command API, allowing users to interact with the commands and data from a terminal. This will broaden accessibility beyond Discord and provide a command-line interface for easier automation, scripting, and integration into other workflows.
Background
As we are externalizing the commands through a RESTful API, it's important to provide users with additional ways to interact with the commands. A command-line interface (CLI) will allow developers and users to access the API from their terminal, enabling more flexible usage scenarios without needing to rely on Discord. This CLI should be easy to use, well-documented, and support the same commands and functionality that the API offers.
Proposal
CLI Implementation in Rust:
Command Mapping:
Data Access:
Authentication:
Documentation and Help Commands:
--help
commands for easy access to usage information for each CLI command.Extensibility:
Benefits
Potential Challenges
Conclusion
By creating a Discord CLI integrated with our API using Rust, we can significantly expand the tool’s accessibility, making it a powerful tool for developers and users who prefer command-line interaction. This will also open up new use cases for automation and system integrations, driving further growth and flexibility for the tool.
The text was updated successfully, but these errors were encountered: