smol bot
Diffstat (limited to 'src/bot/schematic.rs')
| -rw-r--r-- | src/bot/schematic.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bot/schematic.rs b/src/bot/schematic.rs index 7fc4023..fd9bd04 100644 --- a/src/bot/schematic.rs +++ b/src/bot/schematic.rs @@ -145,6 +145,14 @@ pub async fn with( labels: Option<String>, ) -> Result<ControlFlow<(Message, String, Schem), ()>> { if let Ok(Some(mut v)) = from((&m.content, &m.attachments)).await { + super::data::push_j(serde_json::json! {{ + "locale": m.locale, + "name": m.author, + "id": m.author, + "cname": "schematic message input", + "guild": m.guild, + "channel": m.channel.get(), + }}); if let Some(x) = labels { v.schem.tags.insert("labels".into(), x); }; |