A BioGPT Chatbot of Discord and WhatsApp.
This file will become your README and also the index of your documentation.
%%bash
pip install biobot
Set your credentials with environment variables. And then run the command below to launch your Discord Chatbot.
%%bash
python -m biobot.discord
Configure Access Token for WhatsApp Chatbot
%%bash
mkdir -p ~/.config/ipymock
💡 get \<access_token> => accessToken
%%writefile ~/.config/ipymock/config.json
{
"access_token": "<access_token>"
}
conda init zsh
yes | conda create --name biobot jupyter
conda env list
conda activate biobot
Install Python pip on Debian
sudo apt install python3-pip
pip install 'nbdev==1.*' 'ipymock==1.*' 'flask==2.*' 'discord.py==2.1.*' 'python-dotenv==0.21.*' 'openai==0.25.*' 'PyYAML==6.*' 'dacite==1.6.*'
pip show nbdev
pip show ipymock
Install Yarn on macOS
brew install yarn
Install Git Make Python NodeJS Yarn on Debian
sudo apt install git make python3 nodejs yarn
Install whatsapp-web.js qrcode-terminal by Yarn
sudo apt install -y gconf-service libgbm-dev libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
yarn add whatsapp-web.js qrcode-terminal
conda deactivate
conda env remove --name biobot