Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/l5n0/discord-api-bot
Discord API Bot
https://github.com/l5n0/discord-api-bot
Last synced: 9 days ago
JSON representation
Discord API Bot
- Host: GitHub
- URL: https://github.com/l5n0/discord-api-bot
- Owner: l5n0
- Created: 2024-08-04T14:54:17.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-05T20:42:31.000Z (3 months ago)
- Last Synced: 2024-08-05T23:52:10.150Z (3 months ago)
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Discord User Data Fetcher
## Important
It still has some bugs. I have to fix them, but at the moment it works.## Setup
### Prerequisites
- Python 3.8+
- Discord bot token
- `.env` file with the following:```bash
BOT_TOKEN=your_discord_bot_token
```### Installation
1. Clone the repository.
2. Navigate to the project directory.
3. Install dependencies:
```bash
pip install Flask discord.py python-dotenv aiohttp
```
### Usage1. Run the application:
``` bash
python app.py
```
2. Access the web interface at:```arduino
http://localhost:5000
```3. Enter a Discord user ID to fetch user data.
### Project Structure
- app.py: Main application file.
- templates/index.html: HTML template.
- static/styles.css: CSS for styling.### Notes
- 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.