feat: shorten the /join message and report the git revision in the /info command for more transparency
This commit is contained in:
@@ -295,6 +295,9 @@ async fn main() -> Result<(), MainError> {
|
||||
.map(|command| (command.name.clone(), command)),
|
||||
);
|
||||
|
||||
let discord_info_command = discord_command_name_to_returned_command
|
||||
.remove(&command::info::COMMAND.name)
|
||||
.expect("TODO");
|
||||
let discord_opt_in_command = discord_command_name_to_returned_command
|
||||
.remove(&command::opt_in::COMMAND.name)
|
||||
.expect("TODO");
|
||||
@@ -302,9 +305,11 @@ async fn main() -> Result<(), MainError> {
|
||||
.remove(&command::opt_out::COMMAND.name)
|
||||
.expect("TODO");
|
||||
|
||||
let discord_info_command_id = discord_info_command.id.expect("TODO");
|
||||
let discord_opt_in_command_id = discord_opt_in_command.id.expect("TODO");
|
||||
let discord_opt_out_command_id = discord_opt_out_command.id.expect("TODO");
|
||||
|
||||
let discord_info_command_name = discord_info_command.name.into();
|
||||
let discord_opt_in_command_name = discord_opt_in_command.name.into();
|
||||
let discord_opt_out_command_name = discord_opt_out_command.name.into();
|
||||
|
||||
@@ -348,6 +353,8 @@ async fn main() -> Result<(), MainError> {
|
||||
discord_application_id,
|
||||
discord_bot_owner_user_id,
|
||||
discord_client,
|
||||
discord_info_command_id,
|
||||
discord_info_command_name,
|
||||
discord_opt_in_command_id,
|
||||
discord_opt_in_command_name,
|
||||
discord_opt_out_command_id,
|
||||
|
||||
Reference in New Issue
Block a user