A bot that direct messages Twitter customer support accounts with public DMs (i.e. Wendys) and negotiates deals
This was coded on my Youtube live stream in sub 5 hours. I tried chaptering it so you can follow
The bot army part 2 stream is here
The bot runs off of an API coded in colab that's running flask/ngrok. The API is in front of LLama 2 currently. You can run the colab here. Remember you have to copy the ngrok url to the karen-bot.js file
Update this url with the new ngrok url from flask
const apiUrl = "http://6bf4-34-143-150-41.ngrok.io"; // change this line
Use the *.ngrok.io link as it shows here
Tbe bot will first initiate a complaint utilizing the company name. Then it will keep rerunning in a time series (1 minute) and checking for any new DMs from the company. Upon seeing a new DM the bot will generate a response to negotiate with the company.
First create a config with your bot info and the company accounts you want to Karen out on
{
"bot_accounts": [
{ "username": "everydaytechbro" , "password": "********" }
],
"company_accounts": ["Wendys", "Walmart"],
"notification_email": "email@domain.com",
"proxies": []
}
You can run the karen bot army script or the simple karen bot script. The army will simply run the many company accounts in parallel.
Running karen-bot.js directly for one account
$ node karen-bot.js <company twitter account>
Running karen-bot-army.js to run many in parallel
$ node karen-bot-army.js
You can choose to run the API from the colab I have available which is a simple Flask app or simply download the code from the colab and run it locally if you'd prefer (if you have a quality GPU)