mirror of
https://github.com/house-of-vanity/desubot.git
synced 2025-07-06 20:24:08 +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]
|
||||
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 theme = "Dracula";
|
||||
let code = &self.data;
|
||||
@ -562,7 +562,11 @@ impl Execute for Code {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
async fn run_mystem(
|
||||
async fn exec_with_result(&self, api: &Api, message: &Message) -> Result<String, Error> {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
async fn exec_mystem(
|
||||
&self,
|
||||
api: &Api,
|
||||
message: &Message,
|
||||
|
@ -64,7 +64,7 @@ pub async fn handler(
|
||||
Code {
|
||||
data: s.to_string(),
|
||||
}
|
||||
.run(&api, &message)
|
||||
.exec(&api, &message)
|
||||
.await?
|
||||
}
|
||||
"/top" => {
|
||||
|
Reference in New Issue
Block a user