Skip to content

Commit 646afc6

Browse files
authored
Merge pull request #25 from RhinosF1/Version-1-final-pr
Release version 1
2 parents 0025714 + beaf373 commit 646afc6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

main.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ def remove():
3030
except IndexError:
3131
opusername = input("Operator Username: ")
3232
fromheader = input("Bot Email: ")
33+
username = input("Bot Username: ")
3334
headers = {
34-
'User-Agent': 'BOT: ' + opusername + '@TestWikiAutoInactive-v1rc2',
35+
'User-Agent': 'BOT: ' + opusername + '@TestWikiAutoInactive-v1',
3536
'From': fromheader
3637
}
3738
S = Session()
@@ -75,7 +76,7 @@ def remove():
7576
fromheader = EMAIL
7677
print("Your email was replaced with " + fromheader)
7778
headers = {
78-
'User-Agent': 'BOT: ' + opusername + '@TestWikiAutoInactive-v1rc2',
79+
'User-Agent': 'BOT: ' + opusername + '@TestWikiAutoInactive-v1',
7980
'From': fromheader # rewrite header to user email
8081
}
8182
configfile = open('userinfo.cfg', 'w+')
@@ -119,7 +120,8 @@ def remove():
119120
"user": inactiveuser,
120121
"remove": "bot|sysop|bureaucrat|consul|testgroup|autopatrolled|confirmed|rollbacker|interface-admin|flow-bot|checkuser|interwiki-admin|oversight|steward",
121122
"reason": "per [[TestWiki:Inactivity|Inactivity report]]",
122-
"token": USERRIGHTS_TOKEN}
123+
"token": USERRIGHTS_TOKEN
124+
}
123125
count = count + 1
124126
R = S.post(URL, data=PARAMS_4, headers=headers)
125127
DATA = R.json()

0 commit comments

Comments
 (0)