fixed wrong systemctl command

This commit is contained in:
August 2024-10-01 20:03:08 -04:00
parent 5ce52732bb
commit 9a6b374406
Signed by: shibedrill
GPG Key ID: 5FE0CB25945EFAA2
3 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ name = "shibe-bot"
description = "A Discord bot written in Rust, using Poise."
license = "MIT"
readme = "README.md"
version = "0.3.3"
version = "0.3.4"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -1,4 +1,4 @@
# Shibe Bot 0.3.3
# Shibe Bot 0.3.4
[![Rust](https://github.com/shibedrill/shibe-bot/actions/workflows/rust.yml/badge.svg)](https://github.com/shibedrill/shibe-bot/actions/workflows/rust.yml)
[![GitHub License](https://img.shields.io/github/license/shibedrill/shibe-bot)](LICENSE.txt)

View File

@ -6,7 +6,7 @@ use crate::Error;
/// Update the bot remotely (Requires updater systemd service)
#[poise::command(slash_command, owners_only, hide_in_help)]
pub async fn update(ctx: Context<'_>) -> Result<(), Error> {
let command_result = std::process::Command::new("systemd")
let command_result = std::process::Command::new("systemctl")
.arg("--user")
.arg("restart")
.arg("shibe-bot-update.service")