File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments