Im having a problem with getting a variable from a method to a other method
my code is like this
var fixed;
function getstats(){
cheerioReq("https://donate.renegadeline.com/", (a, body) => {
    var full = (body("h1").text());
    var fixed = full.slice(16, 24);
//var fixed will output a string from a website. 
});
}
2nd part:
function setstats(){
  bot.setPresence({
    game:{
      name: "value of 'fixed here'"
     }
   });
 }
I can't figure out how to get this done...
Thanks in advance!
 
     
    