It still has some bugs. I have to fix them, but at the moment it works.
- Python 3.8+
- Discord bot token
.env
file with the following:
BOT_TOKEN=your_discord_bot_token
- Clone the repository.
- Navigate to the project directory.
- Install dependencies:
pip install Flask discord.py python-dotenv aiohttp
- Run the application:
python app.py
- Access the web interface at:
http://localhost:5000
- Enter a Discord user ID to fetch user data.
- app.py: Main application file.
- templates/index.html: HTML template.
- static/styles.css: CSS for styling.
- The bot must be in at least one server to fetch guild member data.
- If a user is not in the guild, basic info will be fetched from the Discord API.