I mean, I just randomly said thanks in the one before the comma, when what should have been said for the sentence to be correct is "thankfully", is it not?
And is the comma required before "but", the coordinating conjunction, because the word thanks is a verb and that makes it a clause?