forgot to register the goddamn update command
This commit is contained in:
parent
255c503374
commit
5ce52732bb
@ -3,7 +3,7 @@ use build_time::build_time_local;
|
|||||||
use crate::Context;
|
use crate::Context;
|
||||||
use crate::Error;
|
use crate::Error;
|
||||||
|
|
||||||
/// Update the bot from anywhere, using systemd service
|
/// Update the bot remotely (Requires updater systemd service)
|
||||||
#[poise::command(slash_command, owners_only, hide_in_help)]
|
#[poise::command(slash_command, owners_only, hide_in_help)]
|
||||||
pub async fn update(ctx: Context<'_>) -> Result<(), Error> {
|
pub async fn update(ctx: Context<'_>) -> Result<(), Error> {
|
||||||
let command_result = std::process::Command::new("systemd")
|
let command_result = std::process::Command::new("systemd")
|
||||||
|
@ -123,6 +123,7 @@ async fn main() {
|
|||||||
shutdown(),
|
shutdown(),
|
||||||
restart(),
|
restart(),
|
||||||
say(),
|
say(),
|
||||||
|
update(),
|
||||||
// Fun
|
// Fun
|
||||||
meow(),
|
meow(),
|
||||||
whack(),
|
whack(),
|
||||||
|
Loading…
Reference in New Issue
Block a user