Bottle to sleep

So .. My boy is 9 months and I have let him develop the worst habit... letting him use the bottle to get to sleep. Soon I'll have to take away the bottle and I have no idea how I'll get him to sleep at night or nap even. Any tips??