An example of how to create bots on Sphinx.
npm install
npm run build
npm run start
Create a bot called Example
.
For local dev on sphinx-stack
, set the Bot Webhook to http://host.docker.internal:3333
. Take the Bot Token, and put it in a .env
file like SPHINX_TOKEN=*******
. Also add PORT=3333
to the .env