James Comey, the former director of the FBI, tweeted at President Donald Trump on Saturday and hinted at his upcoming book about their interactions.

The tweet came after Trump slammed former FBI deputy director Andrew McCabe and accused Comey of being complicit in purported corruption and bias within the top ranks of the FBI and Department of Justice.

Comey's tweet also comes as he is expected to embark on a major book tour starting next month.

Former FBI Director James Comey took to Twitter to weigh in after President Donald Trump celebrated former FBI deputy director Andrew McCabe's firing and accused him and Comey of being complicit in alleged corruption within the FBI.

"Andrew McCabe FIRED, a great day for the hard working men and women of the FBI - A great day for Democracy," Trump tweeted Friday night, shortly after McCabe was fired. "Sanctimonious James Comey was his boss and made McCabe look like a choirboy. He knew all about the lies and corruption going on at the highest levels of the FBI!"

On Saturday, Trump tacked on, "The Fake News is beside themselves that McCabe was caught, called out and fired. How many hundreds of thousands of dollars was given to wife's campaign by Crooked H friend, Terry M, who was also under investigation? How many lies? How many leaks? Comey knew it all, and much more!"

"Mr. President, the American people will hear my story very soon," Comey replied in a tweet on Saturday. "And they can judge for themselves who is honorable and who is not."

Comey's tweet comes as he prepares to kick off a major PR campaign for an upcoming book about his time at the FBI and his interactions with Trump. He is expected to launch a book tour starting sometime next month.

Attorney General Jeff Sessions ordered McCabe's firing on Friday based on an investigation by the Office of Inspector General (OIG) into potential wrongdoing by McCabe. Sessions said the OIG report concluded that McCabe "lacked candor" and approved unauthorized disclosures to the news media that related to the FBI's investigation into Hillary Clinton's email use as secretary of state. The report has not yet been released to the public.

Several current and former US intelligence officials criticized the move to fire McCabe just one day before he was set to formally retire from his post.

"It is hard for me to find the words to express my anger at the moment," Frank Montoya, Jr., a former FBI agent who worked closely with McCabe, previously told Business Insider. "This is a political assassination on a good man and public servant. It is also a savage broadside on the institution he served."

Former intelligence chiefs John Brennan and Gen. Michael Hayden — both of whom are frequent Trump critics — also weighed in.

"When the full extent of your venality, moral turpitude, and political corruption becomes known, you will take your rightful place as a disgraced demagogue in the dustbin of history," Brennan said in a tweet Saturday. "You may scapegoat Andy McCabe, but you will not destroy America...America will triumph over you."