There isn't enough information here to know exactly what your problem is. You haven't provided a stacktrace or exception, or specified whether the issue is with the bot, downloading from instagram, digital ocean, or something else.
That said: If the issue is downloading from Instagram, it's very likely that Instagram is identifying your connection as coming from a cloud provider and blocking it. Changing your IP address in DigitalOcean would not be enough, because you would need to be coming from an IP which is not a cloud provider's. Using a different library for downloading data from instagram, or even implementing it yourself, would not avoid this issue.
You would need a VPN, or at least to proxy your requests through a host that is not identifiably a cloud provider.