dunno
This commit is contained in:
@@ -7,6 +7,7 @@ edition = "2021"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
dotenv = "0.15.0"
|
dotenv = "0.15.0"
|
||||||
|
indoc = "1.0.7"
|
||||||
serde = "1.0.148"
|
serde = "1.0.148"
|
||||||
serenity = "0.11"
|
serenity = "0.11"
|
||||||
strip-ansi-escapes = "0.1.1"
|
strip-ansi-escapes = "0.1.1"
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
mod mindus;
|
mod mindus;
|
||||||
use crate::mindus::*;
|
use crate::mindus::*;
|
||||||
// use std::{env};
|
|
||||||
use serenity::async_trait;
|
use serenity::async_trait;
|
||||||
use serenity::model::prelude::{UserId, RoleId};
|
use serenity::model::prelude::{UserId, RoleId};
|
||||||
use serenity::prelude::*;
|
use serenity::prelude::*;
|
||||||
@@ -97,7 +96,7 @@ async fn pong(ctx: &Context, msg: &Message) -> CommandResult {
|
|||||||
#[command]
|
#[command]
|
||||||
#[aliases("c", "cons")]
|
#[aliases("c", "cons")]
|
||||||
#[description("Send a command to the mindustry server console")]
|
#[description("Send a command to the mindustry server console")]
|
||||||
#[example("c status")]
|
#[example("status")]
|
||||||
#[min_args(1)]
|
#[min_args(1)]
|
||||||
async fn console(ctx: &Context, msg: &Message, args: Args) -> CommandResult {
|
async fn console(ctx: &Context, msg: &Message, args: Args) -> CommandResult {
|
||||||
|
|
||||||
@@ -133,7 +132,7 @@ async fn console(ctx: &Context, msg: &Message, args: Args) -> CommandResult {
|
|||||||
#[num_args(1)]
|
#[num_args(1)]
|
||||||
#[aliases("a")]
|
#[aliases("a")]
|
||||||
#[description("Give youself permissions to build in the mindustry server")]
|
#[description("Give youself permissions to build in the mindustry server")]
|
||||||
#[example("a ErkDog")]
|
#[example("ErkDog")]
|
||||||
async fn auth(ctx: &Context, msg: &Message, args: Args) -> CommandResult {
|
async fn auth(ctx: &Context, msg: &Message, args: Args) -> CommandResult {
|
||||||
|
|
||||||
let data = ctx.data.read().await;
|
let data = ctx.data.read().await;
|
||||||
|
|||||||
Reference in New Issue
Block a user