summaryrefslogtreecommitdiff
path: root/src/commands/general/convert.rs
diff options
context:
space:
mode:
authorseth <[email protected]>2023-12-15 02:04:28 -0500
committerseth <[email protected]>2023-12-15 16:41:13 -0500
commit32d42d5fbab9c74dbe59fbdb94a29112f8766e27 (patch)
tree79111090bf837fc97fc5303f1fe93e6a550e6b06 /src/commands/general/convert.rs
parente38a441e37ec1a1dff07cf8bcff3e36a411709aa (diff)
commands: improve descriptions
Diffstat (limited to 'src/commands/general/convert.rs')
-rw-r--r--src/commands/general/convert.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/commands/general/convert.rs b/src/commands/general/convert.rs
index cbbf8dc..c00b4b8 100644
--- a/src/commands/general/convert.rs
+++ b/src/commands/general/convert.rs
@@ -11,44 +11,44 @@ pub async fn convert(_ctx: Context<'_>) -> Result<()> {
Ok(())
}
-/// ask teawie to convert °F to °C
+/// Ask teawie to convert °F to °C
#[poise::command(slash_command)]
pub async fn to_celsius(
ctx: Context<'_>,
- #[description = "what teawie will convert"] degrees_fahrenheit: f32,
+ #[description = "What teawie will convert"] degrees_fahrenheit: f32,
) -> Result<()> {
let temp = (degrees_fahrenheit - 32.0) * (5.0 / 9.0);
ctx.say(temp.to_string()).await?;
Ok(())
}
-/// ask teawie to convert °C to °F
+/// Ask teawie to convert °C to °F
#[poise::command(slash_command)]
pub async fn to_fahrenheit(
ctx: Context<'_>,
- #[description = "what teawie will convert"] degrees_celsius: f32,
+ #[description = "What teawie will convert"] degrees_celsius: f32,
) -> Result<()> {
let temp = (degrees_celsius * (9.0 / 5.0)) + 32.0;
ctx.say(temp.to_string()).await?;
Ok(())
}
-/// teawie will translate to bottom 🥺
+/// Teawie will translate to bottom 🥺
#[poise::command(slash_command)]
pub async fn to_bottom(
ctx: Context<'_>,
- #[description = "what teawie will translate into bottom"] message: String,
+ #[description = "What teawie will translate into bottom"] message: String,
) -> Result<()> {
let encoded = bottom::encode_string(&message);
ctx.say(encoded).await?;
Ok(())
}
-/// teawie will translate from bottom 🥸
+/// Teawie will translate from bottom 🥸
#[poise::command(slash_command)]
pub async fn from_bottom(
ctx: Context<'_>,
- #[description = "what teawie will translate from bottom"] message: String,
+ #[description = "What teawie will translate from bottom"] message: String,
) -> Result<()> {
let decoded = bottom::decode_string(&message)?;
ctx.say(decoded).await?;