Added signature, official v0.1.0

This commit is contained in:
Lukas Wölfer
2025-07-24 19:07:48 +02:00
parent 8172d4c769
commit 7ee8fb23d9
5 changed files with 31 additions and 22 deletions

View File

@@ -1,5 +1,6 @@
use std::time::Duration;
use crate::app_signature;
use crate::{wikiinfo::wanted_ids, wikipage::page_from_info, worldsdc::fetch_wsdc_info};
use mwbot::Bot;
use mwbot::SaveOptions;
@@ -50,9 +51,12 @@ pub async fn generate_page(id: u32, page: mwbot::Page) -> bool {
match page
.save(
code,
&SaveOptions::summary("Created WSDC info from worldsdc.com")
.mark_as_bot(true)
.mark_as_minor(false),
&SaveOptions::summary(&format!(
"Created WSDC info from worldsdc.com -- {}",
app_signature()
))
.mark_as_bot(true)
.mark_as_minor(false),
)
.await
{