1.0.7 • Published 3 months ago
@skillfulai/discord-template v1.0.7
@skillfulai/discord-template
A Discord bot integration for Skillful AI agents with intelligent conversation engagement.
Quick Start
npm install @skillfulai/discord-template
const SkillfulDiscordBot = require('@skillfulai/discord-template');
// Basic usage
const bot = new SkillfulDiscordBot({
discordToken: 'your_discord_token',
skillfulApiKey: 'your_skillful_api_key'
});
// Start the bot
bot.start()
.then(() => console.log('Bot started'))
.catch(console.error);
// Handle graceful shutdown
process.on('SIGINT', async () => {
await bot.stop();
process.exit(0);
});
Features
- 🤖 Easy Discord bot setup
- 💬 Intelligent conversation engagement
- 👥 User mention handling
- 📊 Activity-based response system
Configuration
const bot = new SkillfulDiscordBot({
// Required
discordToken: 'your_discord_token',
skillfulApiKey: 'your_skillful_api_key',
// Optional
agentName: 'Wojak', // Default: 'Wojak'
debug: false, // Default: false
proactive: false, // Default: false
proactiveThreshold: 50 // Default: 50
});
Proactive Mode
Enable intelligent conversation engagement:
const bot = new SkillfulDiscordBot({
discordToken: 'your_discord_token',
skillfulApiKey: 'your_skillful_api_key',
proactive: true,
proactiveThreshold: 50 // Engagement threshold (0-100)
});
Prerequisites
Discord Bot Token
- Create at Discord Developer Portal
- Enable required intents:
- MESSAGE CONTENT INTENT
- SERVER MEMBERS INTENT
- PRESENCE INTENT
Skillful AI API Key
- Reach out here
Documentation
For detailed documentation, visit:
Support
- Discord: Join Our Community