nuremberg command
This commit is contained in:
parent
7086e700dc
commit
2997c7ac7d
|
@ -46,7 +46,7 @@ async fn callback(bot: Bot, msg: Message, commands: Commands) -> ResponseResult<
|
||||||
Commands::Help => {
|
Commands::Help => {
|
||||||
bot.send_message(msg.chat.id, Commands::descriptions().to_string()).await?;
|
bot.send_message(msg.chat.id, Commands::descriptions().to_string()).await?;
|
||||||
},
|
},
|
||||||
Commands::Nurnberg(reason) => {
|
Commands::Nuremberg(reason) => {
|
||||||
if is_admin_check(&msg, &bot).await {
|
if is_admin_check(&msg, &bot).await {
|
||||||
let reason_result = if reason.is_empty() { None } else { Some(reason) };
|
let reason_result = if reason.is_empty() { None } else { Some(reason) };
|
||||||
let _ = ban_user(
|
let _ = ban_user(
|
||||||
|
|
Reference in New Issue