This is a discord bot that replies with "that's what she said" when it can. It's built with discord.js and uses this awesome library for classifying the sentences.
You can add this bot directly to your discord server by clicking here .
To clone and run this application, you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:
# Clone this repository
$ git clone https://github.com/milzar/twss-discord-bot
# Go into the repository
$ cd twss-discord-bot
# Install dependencies
$ npm install
# Add environment variables
Create a file called .env and add the following
BOT_TOKEN=Discord-bot-token
THRESHOLD=0.93
MIN_WORD_COUNT=3
To generate a Discord-bot-token refer https://www.writebots.com/discord-bot-token/
# Run the app
$ npm start
If you're not sure how to generate a Discord-bot-token read this https://www.writebots.com/discord-bot-token/
If you send a message starting with "Question" it will google search the text after and reply the first result
The current model causes a lot of false positives. Need to improve that.