Skip to content

Commit 73dd60f

Browse files
Merge pull request #22 from evolvewithevan/in-testing
☍ merge in-testing to main
2 parents 94ccbe9 + 77f787b commit 73dd60f

File tree

18 files changed

+1081
-57
lines changed

18 files changed

+1081
-57
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ wheels/
2525
MANIFEST
2626

2727
# Virtual environments
28+
.venv/
2829
venv/
2930
env/
3031
ENV/

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12

BOT_SETUP.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,31 @@ This guide will help you set up the GitCord Discord bot on your server.
44

55
## Prerequisites
66

7-
1. **Python 3.8 or higher** installed on your system
7+
1. **Python 3.9 or higher** installed on your system
88
2. **A Discord bot token** (see [Creating a Discord Bot](#creating-a-discord-bot) below)
99

1010
## Quick Setup
1111

12-
### 1. Install Dependencies
12+
### 1. Install uv
1313

1414
```bash
15-
pip install -r requirements.txt
15+
$ pip install -r requirements.txt
1616
```
1717

18-
### 2. Set Up Environment Variables
18+
### 2. Install the project
19+
20+
```bash
21+
$ uv build
22+
$ pip install dist/*.whl
23+
```
24+
25+
### 3. Set Up Environment Variables
1926

2027
You have two options:
2128

2229
#### Option A: Use the Setup Script (Recommended)
2330
```bash
24-
python setup.py
31+
python setup-env.py
2532
```
2633
This will guide you through creating the `.env` file with your bot token.
2734

@@ -34,7 +41,7 @@ DISCORD_TOKEN=your_discord_bot_token_here
3441
### 3. Run the Bot
3542

3643
```bash
37-
python bot.py
44+
python3 -m gitcord
3845
```
3946

4047
If everything is set up correctly, you should see:

pyproject.toml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[build-system]
2+
requires = ["setuptools"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "gitcord"
7+
version = "0.6.0"
8+
description = "A Discord bot for GitOps based server structure"
9+
readme = "README.md"
10+
license = "GPL-3.0"
11+
license-files = ["LICENSE"]
12+
requires-python = ">=3.9"
13+
authors = [
14+
{name = "Evelyn", email = "[email protected]"}
15+
]
16+
dependencies = [
17+
"discord.py>=2.5.2",
18+
"python-dotenv==1.0.0",
19+
"requests>=2.31.0",
20+
"beautifulsoup4>=4.12.0",
21+
"PyYAML>=6.0.2",
22+
"pylint>=3.3.7",
23+
"setuptools>=80.9.0",
24+
]
25+
classifiers = [
26+
"Development Status :: 3 - Alpha",
27+
"Intended Audience :: Developers",
28+
"Operating System :: OS Independent",
29+
"Programming Language :: Python :: 3",
30+
"Programming Language :: Python :: 3.8",
31+
"Programming Language :: Python :: 3.9",
32+
"Programming Language :: Python :: 3.10",
33+
"Programming Language :: Python :: 3.11",
34+
]
35+
36+
[project.urls]
37+
Homepage = "https://github.com/evolvewithevan/gitcord"
38+
39+
[project.scripts]
40+
gitcord = "gitcord.bot:run_bot"

requirements-dev.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

requirements.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
discord.py>=2.5.2
2-
python-dotenv==1.0.0
3-
requests>=2.31.0
4-
beautifulsoup4>=4.12.0
5-
PyYAML>=6.0.2
1+
uv==0.7.21

setup.py

Lines changed: 0 additions & 43 deletions
This file was deleted.

main.py renamed to src/gitcord/__main__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python3
21
"""
32
Main entry point for GitCord bot.
43
"""
File renamed without changes.

0 commit comments

Comments
 (0)