Deploy virtual souls in 2 minutes via a Telegram interface.
... with typing indications.
... and logging of the Virtual Soul's thoughts.
git clone git@github.com:roevsky/social-tele-bot.git
cd social-tele-bot
npm install
cp env.sample .env
Edit the two variables in .env
, to use your OpenAI API and Telegram bot API key you retrieved from Step 3.
e.g.
TELEGRAM_TOKEN=123456:aBcDeF_gHiJkLmNoP-q
OPENAI_API_KEY=sk-1242149218214:aBcDeF_gHiJkLmNoP-q
npm run dev
You should be able to interact with your Telegram bot directly on Telegram (@[NameOfYourBot]). You should be able to read the thoughts your SocialAI is generating in your Terminal window as well.
The main app is running through bot.ts and demos the use of the socialAGI library.
To add and experiment with your own personalities, you can modify your instance of the Library directly (search for personality.js
). You will also have to update the type declarations in personality.d.ts
.
composed of SocialAGI and using the GrammY framework