mirror of
https://github.com/house-of-vanity/desubot.git
synced 2025-08-21 15:27:14 +00:00
Merge
This commit is contained in:
1135
Cargo.lock
generated
1135
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -549,7 +549,7 @@ impl Execute for Omedeto {
|
|||||||
|
|
||||||
#[async_trait]
|
#[async_trait]
|
||||||
impl Execute for Code {
|
impl Execute for Code {
|
||||||
async fn run(&self, api: &Api, message: &Message) -> Result<(), Error> {
|
async fn exec(&self, api: &Api, message: &Message) -> Result<(), Error> {
|
||||||
let lang = "Rust";
|
let lang = "Rust";
|
||||||
let theme = "Dracula";
|
let theme = "Dracula";
|
||||||
let code = &self.data;
|
let code = &self.data;
|
||||||
@@ -562,7 +562,11 @@ impl Execute for Code {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn run_mystem(
|
async fn exec_with_result(&self, api: &Api, message: &Message) -> Result<String, Error> {
|
||||||
|
unimplemented!()
|
||||||
|
}
|
||||||
|
|
||||||
|
async fn exec_mystem(
|
||||||
&self,
|
&self,
|
||||||
api: &Api,
|
api: &Api,
|
||||||
message: &Message,
|
message: &Message,
|
||||||
|
@@ -64,7 +64,7 @@ pub async fn handler(
|
|||||||
Code {
|
Code {
|
||||||
data: s.to_string(),
|
data: s.to_string(),
|
||||||
}
|
}
|
||||||
.run(&api, &message)
|
.exec(&api, &message)
|
||||||
.await?
|
.await?
|
||||||
}
|
}
|
||||||
"/top" => {
|
"/top" => {
|
||||||
|
Reference in New Issue
Block a user