Skip to content

Commit

Permalink
Merge pull request #16 from phoenixpereira/docs/readme
Browse files Browse the repository at this point in the history
docs: Update readme and load environment variables properly
  • Loading branch information
phoenixpereira authored Jul 10, 2024
2 parents 619b35c + a5d1007 commit 3af0459
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ DuckBot is a Discord bot written in Python using the discord.py library for the

To get started, please follow these steps:

1. Install Poetry if not already installed:
1. Install Poetry and add it to your PATH if not already installed:

Linux, macOS, Windows (WSL)
```bash
curl -sSL https://install.python-poetry.org | python3 -
export PATH="$HOME/.local/bin:$PATH"
```
Windows (Powershell)
```bash
```powershell
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -
setx PATH "%APPDATA%\Python\Scripts;%PATH%"
```

2. Install the dependencies.
Expand Down
4 changes: 4 additions & 0 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
import pkgutil
from discord import Intents, app_commands, Object, Interaction, Embed, Message, Color
from discord.ext import commands
from dotenv import load_dotenv

# Load environment variables from .env file
load_dotenv()

# Retrieve guild ID and bot token from environment variables
GUILD_ID = int(os.environ["GUILD_ID"])
Expand Down

0 comments on commit 3af0459

Please sign in to comment.