A little helper for the Nordic Ashes Wiki. 🤖 https://nordicashes.fandom.com/wiki/Nordic_Ashes_Wiki
  • Python 94.7%
  • Makefile 2.8%
  • Dockerfile 2.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
SethFalco 39bc38a5f6
Some checks failed
ci/woodpecker/manual/ci Pipeline failed
ci/woodpecker/manual/publish Pipeline failed
docs(badges): delete pipeline badge
This is just noise which I used to do because I thought it was cool. And it
kind of still is, but all platforms show the success status in the latest commit
anyway so it's redundant.
2026-09-28 23:10:27 +02:00
.woodpecker chore(forge): migrate .gitlab-ci.yml to .woodpecker 2026-08-30 19:25:20 +01:00
src/nordic_ashes_wiki_bot test: add unit tests, ci, and coverage 2026-05-16 22:35:44 +01:00
tests test: add unit tests, ci, and coverage 2026-05-16 22:35:44 +01:00
.dockerignore chore(forge): migrate .gitlab-ci.yml to .woodpecker 2026-08-30 19:25:20 +01:00
.editorconfig chore(editorconfig): specify a list of file formats instead of * 2026-09-01 09:11:34 +01:00
.gitignore feat: initial commit 2026-05-15 16:25:53 +01:00
cspell.jsonc ci(spelling): add useGitIgnore to settings 2026-08-07 00:41:59 +01:00
Dockerfile chore(forge): migrate .gitlab-ci.yml to .woodpecker 2026-08-30 19:25:20 +01:00
LICENSE feat: initial commit 2026-05-15 16:25:53 +01:00
Makefile test: add unit tests, ci, and coverage 2026-05-16 22:35:44 +01:00
NOTICE feat: initial commit 2026-05-15 16:25:53 +01:00
poetry.lock test: add unit tests, ci, and coverage 2026-05-16 22:35:44 +01:00
poetry.toml feat: initial commit 2026-05-15 16:25:53 +01:00
pyproject.toml chore: replace gitlab.com with codeberg.org 2026-08-30 23:36:10 +01:00
README.md docs(badges): delete pipeline badge 2026-09-28 23:10:27 +02:00

MediaWiki Bot for Nordic Ashes

A little helper for the Nordic Ashes Wiki.

Prerequisites

You should visit Special:BotPasswords to generate an application password for this service. You must grant the following rights:

  • Edit existing pages
  • Upload new files
  • Edit protected pages (Only if the page to update is protected.)

Software

  • Git
  • Python >= v3.13
  • Poetry

Installation

This package is not published anywhere. The only supported installation method is to clone the source code.

# Clone via HTTPS
git clone https://codeberg.org/SethFalco/nordic-ashes-wiki-bot.git

# Or clone via SSH
git clone ssh://git@codeberg.org/SethFalco/nordic-ashes-wiki-bot.git

# Install dependencies with Poetry
poetry install

Usage

You must create the files user-config.py and user-password.py in the directory you'll invoke the application from:

user-config.py

mylang = "en"
usernames["nordicashes"]["en"] = "YOUR_USERNAME"
password_file = "user-password.py"
user_agent_description = "Nordic Ashes Wiki Bot <YOUR@EMAIL.ADDRESS>"

user-password.py

('en', 'nordicashes', 'YOUR_USERNAME', BotPassword('YOUR_BOT_USERNAME', 'YOUR_BOT_PASSWORD'))

Then run the application with:

poetry run nordic-ashes-wiki-bot

By default, Nordic Ashes Wiki Bot will write deltas to a temporary directory, usually /tmp/. To publish changes directly to MediaWiki, pass the --publish flag:

poetry run nordic-ashes-wiki-bot --publish

You must always review the deltas when making changes. Do not run commands that will publish to the wiki without thoroughly testing them, or you may be banned for vandalizing the wiki.

⚠️ Warning

While running Nordic Ashes Wiki Bot, a pywikibot-YOUR_USERNAME.lwp file will be created. The file must be treated like a password. Never ever share it with anyone!