Skip to content

Commit

Permalink
Restructure project
Browse files Browse the repository at this point in the history
- Start using __init__.py
- Remove the "bot" directory from root and move everything from inside to root
- Adjust .gitignore to ignore pycharm files
- Use discord.utils to setup logging
- Change boot up art and version display
- Remove version.py, start.sh
- Add colorlog
  • Loading branch information
jackra1n committed Mar 14, 2024
1 parent 3f18629 commit 8eda8ce
Show file tree
Hide file tree
Showing 34 changed files with 358 additions and 389 deletions.
15 changes: 13 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,21 @@ dmypy.json
# Cython debug symbols
cython_debug/

### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf


# substiify custom
bot/core/version.toml
bot/core/config.py
core/version.toml
config.py
postgres-data

logs/
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ RUN pip install --no-cache-dir -r requirements.txt

COPY . .

CMD ["python", "bot/main.py"]
CMD ["python", "main.py"]
54 changes: 0 additions & 54 deletions bot/core/version.py

This file was deleted.

82 changes: 0 additions & 82 deletions bot/main.py

This file was deleted.

6 changes: 0 additions & 6 deletions bot/start.sh

This file was deleted.

6 changes: 0 additions & 6 deletions bot/utils/art.txt

This file was deleted.

85 changes: 0 additions & 85 deletions bot/utils/db.py

This file was deleted.

47 changes: 0 additions & 47 deletions bot/utils/util.py

This file was deleted.

4 changes: 2 additions & 2 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ services:
- postgres
restart: unless-stopped
volumes:
- ./bot/logs:/bot/logs
- ./bot/core/version.toml:/bot/core/version.toml
- ./logs:/bot/logs
- ./core/version.toml:/bot/core/version.toml
- /etc/localtime:/etc/localtime:ro
6 changes: 6 additions & 0 deletions core/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from .bot import Substiify
from .config import *
from .constants import *

__version__ = "0.96"
__author__ = "jackra1n"
Loading

0 comments on commit 8eda8ce

Please sign in to comment.