Investment principles bot for Discord. Get daily wisdom from Warren Buffett, Charlie Munger, and more legendary investors.
| Command | Description |
|---|---|
/principle |
Random investment principle |
/principle buffett |
Random Buffett principle |
/principle risk |
Risk management principles |
/quiz |
Investment knowledge quiz |
/scorecard AAPL |
Buffett-style stock scorecard |
/feargreed |
Market fear/greed sentiment advice |
- Go to Discord Developer Portal
- Click New Application and name it
KeepRule - Go to Bot tab, click Add Bot
- Copy the Token (keep it secret!)
- Enable these Privileged Gateway Intents: none needed (we only use slash commands)
- Copy the Application ID from the General Information tab
Replace YOUR_CLIENT_ID with your Application ID:
https://discord.com/api/oauth2/authorize?client_id=YOUR_CLIENT_ID&permissions=2147485696&scope=bot%20applications.commands
Permissions included: Send Messages, Embed Links, Use Slash Commands.
cp .env.example .envEdit .env with your values:
DISCORD_TOKEN- Bot token from step 1CLIENT_ID- Application ID from step 1GUILD_ID- (Optional) Your test server ID for instant command registration
npm install
npm start- Click the "Deploy on Railway" button above
- Set environment variables:
DISCORD_TOKEN,CLIENT_ID - Deploy
- Click the "Deploy to Render" button above
- Set environment variables in the Render dashboard
- Deploy as a Background Worker (not a Web Service)
docker build -t keeprule-discord-bot .
docker run -d --env-file .env keeprule-discord-botnpm install -g pm2
pm2 start bot.js --name keeprule-discord
pm2 savedata/principles.json- 100+ investment principles from legendary investorsdata/quiz-questions.json- 20 investment knowledge quiz questions
KeepRule.com - Investment principles from the world's greatest investors.
MIT
- Investor Personality Quiz - Which legendary investor are you?
- Investment Scorecard - Rate any stock like Buffett
- Portfolio Health Check - Grade your portfolio
- Fear & Greed Calculator - Market sentiment tool
- Decision Tree - Buy/Hold/Sell guidance
- Investment Calculators - Compound interest, retirement, DCA & more
- 30-Day Challenge - Transform your investing
- Free API - 100 principles, 20 authors
- NPM Package -
npm install keeprule - PyPI Package -
pip install keeprule - Chrome Extension
- Discord Bot
- Embeddable Widget
- Master Guides - Buffett, Munger, Graham & more
- Free Ebook - 100 Investment Principles
- Email Course - 7-day Buffett course
- Infographics - Visual investing guides
- Investment Glossary - 100 terms every investor should know
- Annual Report - State of Investment Principles 2026
- SEO Blog - Deep-dive investing articles
- Platform Comparisons - KeepRule vs alternatives
Built by William Wang | All Tools