It doesn't seem that hard. Easiest approach I believe is for a mechanical type bell with the brake cable from the lever attached to the lever of the bell which is mounted in a position that the vertical pull of the lever rings the bell.
Yup, it appears this is exactly the way adriana did it:
Just manipulate the tension/ length of the brake cable in the process.