maybe if you writeini to store the !bet data, then you could readini to use the data and remove the ini file or maybe clear the file at the end of the script

Im very unsure if this would work but maybe its a start