Skip to content

Commit

Permalink
Change MediaWiki api link and scale AutoWiki icons (#867)
Browse files Browse the repository at this point in the history
Меняет ссылку на апи с оффовского вики на наше.
Автовики не будет работать пока @larentoun или хэдэдэ, не добавят в
сикреты репы, логин и пароль аккаунта

Запустил автовики со своей репы,
[работает](https://tg.ss220.club/index.php/%D0%A1%D0%BB%D1%83%D0%B6%D0%B5%D0%B1%D0%BD%D0%B0%D1%8F:%D0%92%D0%BA%D0%BB%D0%B0%D0%B4/AutoWiki220)
  • Loading branch information
AyIong authored Dec 12, 2024
1 parent 7dfe6ff commit 85c64c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion code/modules/autowiki/pages/base.dm
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@
if(uploaded_icons["[name]"])
CRASH("We tried uploading an icon, but the name \"[name]\" was already taken!")

fcopy(icon, "data/autowiki_files/[name].png")
// BANDASTATION EDIT - START
var/icon/scaled_icon = icon
scaled_icon.Scale(64, 64)
fcopy(scaled_icon, "data/autowiki_files/[name].png") // icon -> scaled_icon
// BANDASTATION EDIT - END
uploaded_icons["[name]"] = TRUE

/// Escape a parameter such that it can be correctly put inside a wiki output
Expand Down
2 changes: 1 addition & 1 deletion tools/autowiki/autowiki.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async function main() {
const bot = new MWBot()

await bot.loginGetEditToken({
apiUrl: "https://tgstation13.org/wiki/api.php",
apiUrl: "https://tg.ss220.club/api.php",
username: USERNAME,
password: PASSWORD,
})
Expand Down

0 comments on commit 85c64c5

Please sign in to comment.