Roy Smith <r...@panix.com> ezt írta (időpont: 2023. febr. 24., P, 0:42):
> My bot needs to be able to run as either of two different accounts > depending on the task. DYKToolsBot for most things, DYKToolsAdminBot for > specific tasks that need admin rights. How do I do this? > I just got up to quickly wirite somewhere that we need separate user-fixes.pys per user, best defined in config.py, and this mail waited me here. :-) So we should have per user configs. An ugly workaround by that time what I did with logins: a Windows batch. ren other.lwp temp.lwp ren pywikibot.lwp other.lwp ren temp.lwp pywikibot.lwp If you start your scripts froma batch (or Linux script), this is no extra pain with user-config.py.
_______________________________________________ pywikibot mailing list -- pywikibot@lists.wikimedia.org Public archives at https://lists.wikimedia.org/hyperkitty/list/pywikibot@lists.wikimedia.org/message/34WRSZ4QTOB4ORFPNHINUJHJQQ5DQOKI/ To unsubscribe send an email to pywikibot-le...@lists.wikimedia.org