Hello there! Thank you for your question  Sorry for the delayed reply due to the weekend and holiday season.  This sounds like a really great project!  You may want to follow my TensorFlow.js Spam detection tutorial. Even though it is for spam, it may help you understand how to use for other things too such as knowing what sentences refer to the bot vs not etc.
Start with this one:

  
      

      Google Developers
  

  
    

TensorFlow.js: Build a comment spam detection system  |  Google... 13

  In this codelab, you’ll learn how to build a simple web page that has commenting ability akin to a blog post article and integrate it with a pre trained machine learning model to detect comment spam posts, enabling you to filter these out before they...


  

  
    
    
  

  


Then try this one to learn how to retrain a Python model and convert it to JS:

  
      

      Google Codelabs
  

  
    

TensorFlow.js: Retrain a comment spam detection model to handle edge cases... 1

  In this codelab you’ll learn how to use Model Maker to retrain a comment spam model to account for edge cases the pre-trained model could not handle, and then re-deploy the new model to the web application.


  

  
    
    
  

  


Using these tutorials you can train a model to learn if a sentence is bot related or not for example and then reply accordingly.
We also have a pre-trained model for toxicity detection so if someone is being rude on the Discord server you could send them a warning or such. I would always get a human to verify vs plain blocking right away as no ML system is perfect 100% of the time but at least you can auto flag the message for moderation or such.

  
      

      github.com
  

  
    tfjs-models/toxicity at master · tensorflow/tfjs-models 1

  master/toxicity

  Pretrained models for TensorFlow.js. Contribute to tensorflow/tfjs-models development by creating an account on GitHub.

  

  
    
    
  

  


For more advanced stuff you may want to check out our Universal Sentence Encoder here:

  
      

      github.com
  

  
    tfjs-models/universal-sentence-encoder at master · tensorflow/tfjs-models

  master/universal-sentence-encoder

  Pretrained models for TensorFlow.js. Contribute to tensorflow/tfjs-models development by creating an account on GitHub.

  

  
    
    
  

  


There is a nice introduction by Yannick who used to be on the TensorFlow.js team here that shows how to use it in a real world use case for understanding language:
Machine Learning Magic for Your JavaScript Application (Google I/O'19)

And finally feel free to come hang out on discord server too given you are probably a discord user  The TensorFlow.js working group use this to keep in touch between our monthly meetings but some content folk share is useful to all (events, new demos, etc) to just keep in touch