From 155bab8e5e614ebfc59d9f86a9d2459f155c0966 Mon Sep 17 00:00:00 2001 From: nobody Date: Mon, 5 Aug 2024 01:53:01 +0200 Subject: [PATCH] reword config descriptions --- src/config_check.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/config_check.rs b/src/config_check.rs index 84b41ba..51bab17 100644 --- a/src/config_check.rs +++ b/src/config_check.rs @@ -28,7 +28,7 @@ const CONFIG_SPEC: CfgSpec<'static> = CfgSpec { CfgField::Default { key: "template-name", default: "plenum-template", description: "Name of the pad containing the template to use." }, // TODO: make these generators? CfgField::Optional { key: "last-id", description: "ID of last plenum's pad." }, - CfgField::Optional { key: "next-id", description: "ID of next plenum's pad." } + CfgField::Optional { key: "next-id", description: "ID of next plenum's pad." }, ], }, CfgGroup { name: "email", @@ -39,17 +39,17 @@ const CONFIG_SPEC: CfgSpec<'static> = CfgSpec { CfgField::Password { key: "password", description: "Password for authenticating with the mail server." }, CfgField::Default { key: "sender", default: "Plenumsbot ", description: "Email address to use for \"From:\"." }, CfgField::Default { key: "to", default: "CCCB Intern ", description: "Recipient of the emails sent." }, - CfgField::Optional { key: "last-message-id", description: "Message-Id of last initial announcement to send In-Reply-To (if applicable)." } + CfgField::Optional { key: "last-message-id", description: "Message-Id of last initial announcement to send In-Reply-To (if applicable)." }, ], }, CfgGroup { name: "wiki", description: "API Settings for Mediawiki", fields: &[ - CfgField::Default { key: "http-user", default: "cccb-wiki", description: "Username that would be needed if you would access the wiki with your web browser" }, - CfgField::Password { key: "http-pass", description: "Password that would be needed if you would access the wiki with your web browser" }, - CfgField::Default { key: "api-user", default: "PlenumBot@PlenumBot-PW1", description: "API Username that was generated in the mediawiki by the PlenumBot-Account" }, - CfgField::Password { key: "api-secret", description: "API Secret that was generated in the mediawiki by the PlenumBot-Account. Example: \"PlenumBot-PW1@mgeg89bgit09q8bjblt5tn5ojj2d4gy\"" }, - CfgField::Default { key: "server-url", default: "https://wiki.berlin.ccc.de/" , description: "Link that is needed for getting the session token" } + CfgField::Default { key: "server-url", default: "https://wiki.berlin.ccc.de/" , description: "Server running the wiki." }, + CfgField::Default { key: "http-user", default: "cccb-wiki", description: "HTTP basic auth user name." }, + CfgField::Password { key: "http-pass", description: "HTTP basic auth password." }, + CfgField::Default { key: "api-user", default: "PlenumBot@PlenumBot-PW1", description: "API Username associated with the bot account used for edits." }, + CfgField::Password { key: "api-secret", description: "API secret / \"password\" used for authenticating as the bot." }, ], }, // TODO: Matrix,