ivanhercaz / CanaryBot

CanaryBot works in the Wikimedia projects mainly in maintenance tasks!
1 stars 0 forks source link

Move Utilities class to utils.py #8

Closed ivanhercaz closed 5 years ago

ivanhercaz commented 5 years ago

Make an independent file for the Utilities class (utils.py). Tasks to do:

def removeFullStop(edit):

Code

fsc.checkDesc(query, edit)

if name == 'main':

Code

After the projects prompt

edit = u.editMode()

Before the available tasks prompt

Then, in the specific task it pass edit as an argument:

removeFullStop(edit)


- [x] Update the calls to the Utilities class after the replacement of `u = bot.Utilities()` in `fullstopschecker.py` by `import utils as u`.
ivanhercaz commented 5 years ago

Fixed with 75a3ff709e5abe4c71bcd28c1c99b18d0d4f9622!