mirror of
https://github.com/house-of-vanity/desubot.git
synced 2026-11-08 15:08:49 +00:00
Merge
This commit is contained in:
1 parent
d14aa3beb4
commit
ed32bd9195
3 files changed
+1135
-10
No files matched your search
Generated
+1128
-7
File diff suppressed because it is too large.
Load diff
+6
-2
@@ -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,
|
||||
|
||||
+1
-1
@@ -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