In this repository, you can find the source code for a Discord Bot implemented using FastAPI. This bot utilizes Pycord, a Python library built upon discord.py for accessing the Discord API. FastAPI enhances the bot by providing a web interface for management and operations.
- Create a bot in the Discord Developer Portal.
- Create an
.envfile to store your bot token and other environment variables:
DISCORD_BOT_TOKEN="your_bot_token_here"
STABILITY_API_KEY="your_api_key_here"
- Install the required Python packages from the
requirements.txtfile:
python -m pip install -r requirements.txt
- Start the FastAPI application:
uvicorn main:app --reload
This command will start the FastAPI server with live reloading enabled, making development more efficient. Ensure your main.py file is configured to initialize and run your FastAPI app.
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
