The old bot (EranBot) that powered CopyPatrol was written in Python 2 which is now EOL. Our gracious rockstar of a volunteer @JJMC89 has rewritten the bot from scratch in Python 3 (T293688) and it is now ready to be deployed.
Repository for the bot: https://github.com/JJMC89/copypatrol-backend
**Staging checklist**
[x] First [[ https://github.com/JJMC89/copypatrol-backend#toolforge-setup | deploy the bot ]] to staging (`plagiabot`) to ensure everything works smoothly
[x] For now, use the test db `s52615__copypatrol_migrate_test_02_p`
[x] Rework CopyPatrol to interface with the new bot (T340600)
[x] Deploy the new CopyPatrol code to `plagiabot`
[ ] Once we're satisfied it's working well, seek approval from Turnitin. We're currently only using the sandbox version of TCA (Turnitin Core API). This conversation with them could also negotiate a long-term supply of credits (T305318)
**Production checklist**
[ ] Create our new production database with the new schema
[ ] Deploy the bot to the `copypatrol` Toolforge account
[ ] Ask JJMC89 to run the migrations script to backfill historical data
[ ] Merge the new CopyPatrol branch into `master` and pull in the changes on Toolforge
[ ] Have the [[ https://en.wikipedia.org/wiki/User:CopyPatrolBot | new bot ]] replace EranBot as enwiki's [[ https://en.wikipedia.org/w/index.php?title=Special:ListUsers&group=copyviobot | copyvio tagging bot ]] (discussed at T334265)