smol bot
Diffstat (limited to 'src/bot/schematic.rs')
| -rw-r--r-- | src/bot/schematic.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bot/schematic.rs b/src/bot/schematic.rs index 96c1720..bd61a85 100644 --- a/src/bot/schematic.rs +++ b/src/bot/schematic.rs @@ -134,8 +134,14 @@ pub async fn send( { e = e.description(v); } + let f = if v.width == v.height { + format!("{}²={}", v.width, v.width * v.height) + } else { + format!("{}×{}={}", v.height, v.width, v.width * v.height) + }; e.field("req", cost(&v), true) .title(name.clone()) + .footer(CreateEmbedFooter::new(f)) .color(SUCCESS) }); let h = m.channel.send_message(c, msg).await?; |