-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from Sigmanificient/pkg
🏗️ Using normalized package architecture
- Loading branch information
Showing
22 changed files
with
216 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
venv | ||
.idea | ||
app/pronote.json | ||
app/config.json | ||
app/devoirs.json | ||
app/grades.json | ||
drawbot/pronote.json | ||
|
||
__pycache__ | ||
/desktop.ini | ||
|
||
*.egg-info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
VENV = venv | ||
VBIN = $(VENV)/bin | ||
|
||
all: start | ||
|
||
clean: | ||
rm -rf venv | ||
rm -rf *.egg-info | ||
rm -rf __pycache__ | ||
rm vars/*.json | ||
|
||
$(VBIN)/python: | ||
python -m venv venv | ||
chmod +x venv/bin/activate | ||
./venv/bin/activate | ||
pip install -e . | ||
|
||
vars/config.json: | ||
cp vars/config.json.example vars/config.json | ||
|
||
start: $(VBIN)/python vars/config.json | ||
python drawbot | ||
|
||
.PHONY: all clean start |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
"""A Pronote notifier discord bot.""" | ||
from .bot import Bot | ||
|
||
__version__: str = "2.0.0" | ||
__author__: str = "Drawbu" | ||
__maintainer__: str = "Sigmanificient" | ||
|
||
__all__ = ("Bot",) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
from app.bot import Bot | ||
from drawbot import Bot | ||
|
||
|
||
def main() -> None: | ||
def main(): | ||
"""Entry point to run the bot client.""" | ||
bot = Bot() | ||
bot.run() | ||
|
||
|
||
if __name__ == '__main__': | ||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dev.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""Cogs sub-package for drawbot.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.