From cfe12fb6c96fc3b03e909a70cd1c0578bf584b42 Mon Sep 17 00:00:00 2001 From: Madpeter <57852827+Madpeterz@users.noreply.github.com> Date: Wed, 9 Jul 2025 20:23:47 +0100 Subject: [PATCH] add rabbitMQ commands support to wiki and add missing arg hint info --- SecondBotEvents/Commands/RabbitMQ.cs | 4 ++-- SecondBotEvents/Static/http_commands_helper.cs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/SecondBotEvents/Commands/RabbitMQ.cs b/SecondBotEvents/Commands/RabbitMQ.cs index 9782e3a..6be05bf 100644 --- a/SecondBotEvents/Commands/RabbitMQ.cs +++ b/SecondBotEvents/Commands/RabbitMQ.cs @@ -11,8 +11,8 @@ namespace SecondBotEvents.Commands public class RabbitMQ(EventsSecondBot setmaster) : CommandsAPI(setmaster) { [About("Fetchs the current region type the bot is in")] - [ArgHints("Qname", "Name of the queue to send the message to")] - [ArgHints("message", "Message to send to the queue")] + [ArgHints("Qname", "Name of the queue to send the message to","TEXT","exampleq")] + [ArgHints("message", "Message to send to the queue","TEXT","Hello world")] [ReturnHints("Message sent to the queue")] [ReturnHintsFailure("Error sending message: ...")] [ReturnHintsFailure("RabbitMQ service not available")] diff --git a/SecondBotEvents/Static/http_commands_helper.cs b/SecondBotEvents/Static/http_commands_helper.cs index 08ec315..3a257d5 100644 --- a/SecondBotEvents/Static/http_commands_helper.cs +++ b/SecondBotEvents/Static/http_commands_helper.cs @@ -28,7 +28,8 @@ namespace SecondBotEvents { "parcel", typeof(ParcelCommands) }, { "self", typeof(Self) }, { "streamadmin", typeof(StreamAdmin) }, - { "services", typeof(SecondBotEvents.Commands.Services) } + { "services", typeof(SecondBotEvents.Commands.Services) }, + { "rabbitmq", typeof(SecondBotEvents.Commands.RabbitMQ) } }; return reply; }