Edit credentials from the About command

This commit is contained in:
Victor Mignot 2025-01-02 16:38:44 +01:00
parent 0a5a3d366b
commit 66561cb9fa
Signed by: dala
SSH key fingerprint: SHA256:+3O9MhlDc2tJL0n+E+Myr7nL+74DP9AXdIXHmIqZTkY
2 changed files with 14 additions and 6 deletions

View file

@ -5,6 +5,7 @@ version = "0.2.1"
authors = [ "Victor Mignot <dala@dalaran.fr>" ]
license = "EUPL-1.2"
readme = "README.md"
repository = "https://git.dalaran.fr/dala/yorokobot"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -61,13 +61,20 @@ impl EmbedMessageBuilder {
pub fn create_bot_credentials_embed(&self) -> CreateEmbed {
self.create_embed_base()
.title("Credentials")
.title("Yorokobot")
.fields(vec![
("Creator", "This bot was created by Victor Mignot (aka Dala).\nMastodon link: https://fosstodon.org/@Dala", false),
("License", "The source code is under the GNU Affero General Public License v3.0", false),
("Source code", "https://sr.ht/~dala/yorokobot/", false),
("Illustrator's Twitter", "https://twitter.com/MaewenMitzuki", false),
("Developer's Discord Server", "https://discord.gg/e8Q4zQbJb3", false),
("Version", env!("CARGO_PKG_VERSION"), false),
(
"License",
"The source code is under the European Union Public License v1.2",
false,
),
("Source code", env!("CARGO_PKG_REPOSITORY"), false),
(
"Illustrator's Twitter",
"https://twitter.com/MaewenMitzuki",
false,
),
])
.to_owned()
}