I'm not really a bass player so this is kinda an idiotic reply. For my bass lines I mimic the left hand of the piano player. I love boogie woogie (barrel house) music so it involves a lot of repeating figures following the root of the chord progressions. I suppose you could try looking at the piano sheets and ignore the treble staff and just play the bass staff.
.