How thegamer3514/silly-chat works
Silly Chat is a Discord global-chat bot. Discord users interact with the bot runtime, which handles chat and commands; one documented message path sends image URLs through the Giffy processor before the bot continues handling the result. The bot also exposes a web screenshot command backed by an external screenshot server and uses database collections. Giffy separates URL rules, scraping, downloading, and conversion. The main bot is a large monolith, so unsampled command and relay details are grouped there; database wiring beyond the shown collection access is not inferred.
Main entry points: main.py Bot runtime · giffy.py GIF processor · downloader.py GIF downloader · data.py Source rules
Components 13
Discord Bot
- Bot runtime
main.py - Bot collections
main.py
GIF Processing
- GIF processor
giffy/giffy.py - Source rules
giffy/data.py - Page scraper
giffy/scraper.py - GIF downloader
giffy/downloader.py - Media converter
giffy/converter.py - Temporary files
temp
External Services
- Discord platform
- Screenshot server
- Silly Chat CDN
- Silly Chat API
Other components
- Discord users
Connections 12
- Discord users → Bot runtime: interact with
README.md - Bot runtime → Discord platform: handles events
main.py - Bot runtime → GIF processor: processes image URL
main.py - GIF processor → Source rules: reads rules
giffy/giffy.py - GIF processor → Page scraper: extracts page URL
giffy/giffy.py - GIF processor → GIF downloader: downloads media
giffy/giffy.py - GIF processor → Media converter: converts media
giffy/giffy.py - GIF downloader → Temporary files: writes files
giffy/downloader.py - Bot runtime → Bot collections: queries collections
main.py - Bot runtime → Screenshot server: requests screenshots
main.py - Bot runtime → Silly Chat CDN: uploads media
main.py - Bot runtime → Silly Chat API: checks image content
main.py