πBittensor Ai Bot
A Discord bot that automates your subnet research & gives key insights on subnet sentiment to propel your Dtao investments!
It provides:
- KOL Monitoring β scrapes relevant X (Twitter) accounts and summarizes daily activity
- Subnet TLDR β summarize any subnet conversation by pasting it into a channel
- News Watcher β listens for official announcements and replies with investor-ready summaries
Feature Walkthrough: Watch the demo
X scrapping Yt Vid : X scraping technique
Shoutout TAOTemplar & R2
Designed by & for Bittensor miners & investors who are looking for quick alpha & sentiment signals.
- Tracks KOL sentiment and posts in
#bittensor-x-kols - Summarizes subnet discussions with copy/paste simplicity
- Converts announcements into structured updates instantly
LLM output is powered by Chutes.ai, using the Kimi-K2-Instruct model.
| File | Description |
|---|---|
bot.py |
Main Discord logic and event handlers |
scraper_twikit.py |
Scrapes X content using cookies (Python 3.11 required) |
login_twikit.py |
Loads X cookies manually |
.env |
Stores your API keys and channel IDs |
cookies.json |
Stores session tokens used for scraping (see .example for format) |
requirements.txt |
Python dependencies |
- Python 3.11 (required for Twikit)
discord.py==2.4.0python-dotenv==1.0.1aiohttp==3.10.5twikit
git clone https://github.com/RadoTSC/bittensor-assistant-bot.git
cd bittensor-assistant-botpython3.11 -m venv .venv
source .venv/bin/activate # or .venv\Scripts\activate on Windowspip install -r requirements.txtDISCORD_TOKEN=your_discord_bot_token
CHUTES_API_TOKEN=your_chutes_api_key
DISCORD_CHANNEL_ID=channel_id_for_manual_input
KOLS_CHANNEL_ID=channel_id_for_kol_summaries
NEWS_UPDATES_CHANNEL_ID=channel_id_for_announcement_monitoringCreate a burner X account using mail.com.
Then open https://x.com, log in, press F12 and extract from Cookies:
auth_tokenct0twid
Save them in cookies.json like:
{
"auth_token": "your_token_here",
"ct0": "your_ct0_value",
"twid": "your_twid"
}Then run:
python login_twikit.pyYou should see:
πͺ Cookies loaded successfully
β
Logged in using cookies (confirmed)
python bot.py
π§ Subnet TLDR
To summarize subnet discussions:
Go to the #bittensor-curation channel.
Post a message starting with the subnet number followed by a dash:
62- Validators are discussing inflation adjustments and incentives.
The bot will:
Detect the subnet (e.g., 62)
Generate a summary with an investor-focused tone
Post the TLDR to the correct channel (e.g., #ridges-62)
β οΈ Important: Make sure all relevant subnet output channels are listed in your bot.py under SUBNET_CHANNELS:
SUBNET_CHANNELS = {
"ridges-62": 123456789012345678,
"chutes-64": 234567890123456789,
# ...
}
π§βπ« KOL Summary
KOL summaries are posted daily at 8:00 AM ET in your configured #bittensor-x-kols channel.
To run it manually, type:
!kol_now
π° News Auto-Summary
Any message posted in your configured #bittensor-news-updates channel will be automatically summarized.
β
Health Check
To check if the bot is online, type:
!hello
β
Example Output
πͺ Cookies loaded successfully
β
Logged in using cookies (confirmed)