Okay, there's probably a law preventing it, but.....
One bike, one motor, one battery.
To recharge the battery, one must connect it to a mains supply, well, the one we have needs to be.
But.... since a motor works both ways, why can't the motor be used to recharge the battery when on the move...