diff options
| -rw-r--r-- | Cargo.toml | 2 | ||||
| -rw-r--r-- | contrib/_incr_version | 8 | ||||
| -rw-r--r-- | src/commands/meta.rs | 13 | 
3 files changed, 19 insertions, 4 deletions
@@ -1,6 +1,6 @@  [package]  name = "glitch-ng" -version = "0.1.0" +version = "0.4.0"  edition = "2021"  # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/contrib/_incr_version b/contrib/_incr_version new file mode 100644 index 0000000..c2ded2c --- /dev/null +++ b/contrib/_incr_version @@ -0,0 +1,8 @@ +#!/bin/sh -eu +old_version="$1" +new_version="$2" +sed -i "s/version = \"$old_version\"/version = \"$new_version\"/" Cargo.toml + + +git add Cargo.toml +git commit -m "Update version to $new_version" diff --git a/src/commands/meta.rs b/src/commands/meta.rs index 917fbfe..681d5a5 100644 --- a/src/commands/meta.rs +++ b/src/commands/meta.rs @@ -18,10 +18,17 @@ pub async fn about(ctx: Context<'_>) -> Result<(), Error> {          .send(|m| {              m.embed(|e| {                  e.title("Glitch"); +                e.description("A pony who just wants to help out!"); -                e -            }); -            m +                e.field("Creator", "<@118455061222260736>", true); +                e.field("Avatar", "<@678816040146436117>", true); +                e.field("Action GIFs", "<@678816040146436117>", true); +                e.field("Support the author!", "https://ko-fi.com/muirrum", false); + +                e.footer(|f| { +                    f.text(format!("Running version: {}", current_version)) +                }) +            })          })          .await      {  | 
