If it's a crawling (ie snail, slug or caterpillar) bug, you can wash and crush eggshells and sprinkle them around the base of the plant because the crawling bugs don't like the feeling of the rough edges on their bellies. I find grinding the eggshells in a coffee grinder or with a mortar and pestle is the best way to do it, you want small but not too fine a ground.