Raised by gamblers propagated by Elon musk he is DogeCoin
I know Doge when gambling so what will happen if DogeCoin is not available at gambling? yes dead

I know this coin is mostly used in gambling I don't see any other function besides that.
Yes Doge is used a lot in gambling however Doge is also used in transferring funds from one exchange to another because of the low fees compared to other cryptocurrencies. I always use Doge to transfer from one exchange to the other as it has saved me a lot in fees over the years and I know a lot of people continue to use Doge for this reason also.
This is being combtted by stablecoins though, cross exchange fees are becoming ever smaller, DOGE will lose most of its utility in the coming years IMO