Skip to content

Commit

Permalink
fix: ark stop all down
Browse files Browse the repository at this point in the history
  • Loading branch information
Romira915 committed Apr 15, 2023
1 parent 182fce2 commit 93de93b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions discord_bot_client/src/commands/ark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ async fn stop(ctx: &Context, msg: &Message, mut args: Args) -> CommandResult {
Ok(1) => ArkFirst::ark_command_exec(SystemctlCommand::Stop, ctx, msg).await?,
Ok(2) => ArkSecond::ark_command_exec(SystemctlCommand::Stop, ctx, msg).await?,
Ok(3) => ArkThird::ark_command_exec(SystemctlCommand::Stop, ctx, msg).await?,
Err(_) => {
ArkFirst::ark_command_exec(SystemctlCommand::Stop, ctx, msg).await?;
ArkSecond::ark_command_exec(SystemctlCommand::Stop, ctx, msg).await?;
ArkThird::ark_command_exec(SystemctlCommand::Stop, ctx, msg).await?;
}
_ => (),
}
}
Expand Down

0 comments on commit 93de93b

Please sign in to comment.