From 7d868aedd1147c484d82ea4815c5c53af834eacb Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Mon, 17 Jan 2022 00:28:57 -0500 Subject: meta: Update about command also increment version --- Cargo.toml | 2 +- contrib/_incr_version | 8 ++++++++ src/commands/meta.rs | 13 ++++++++++--- 3 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 contrib/_incr_version diff --git a/Cargo.toml b/Cargo.toml index 44b16bc..6d9e0c4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 { -- cgit v1.2.3