A Detroit man has been charged with threatening to blow up an automotive plant, allegedly texting a supervisor that he was at the "end of (his) rope" and that if anyone intervened, he would " just do a mass shooting."

"This is revenge for the two guys that work in you(r) factory (who) bullied me," the man allegedly stated in a text to a supervisor. "Now I'm going to end it all."

The alleged threats were disclosed In a criminal complaint filed Friday, in which a federal agent detailed how Antoine Thomas allegedly sent threatening texts to a workplace supervisor from a home on Guilford Street.

According to an affidavit filed by  a special agent with the Bureau of Alcohol, Tobacco, Firearms and Explosives, here is what landed Thomas on the feds' radar:

On July 17, Highland Park police received a call about a bomb threat at the Faurecia Automotive Seating plant on Oakland Boulevard. A supervisor with a temporary staffing agency that provides work to the plant received the bomb threat via text, and then forwarded the information to police.

Read more: Detroit Free Press