Welcome to the Tensor Discord Template!
This demo provides a simple foundation for working with the Tensor API, use it to get started building NOW!
- Node v18.18.0 or higher
- Tensor API Key Request Page
- Discord API Key Discord Developers
git clone tensor-hq/discord-salesbot-template
cd discord-salesbot-template
npm install
// Tensor API Key
API_KEY=
// Secret token of your Bot
BOT_TOKEN=
// Guild ID (Discord Server ID)
GUILD_ID=
// Channel ID of the Server
CHANNEL_ID=
// Tensor WSS URL
WSS_URL=
// Collection slug you want to listen to
SLUG=
npx ts-node main.ts
Review the Discord documentation to see how to join your bot to a discord