Skip to content

Commit da3d195

Browse files
authored
Merge pull request #247 from davidhozic/develop
Multiple accounts support
2 parents 5a69a31 + e282f45 commit da3d195

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+2424
-2434
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
pip install .[all]
3030
- name: Install latex
3131
run: sudo apt-get update && sudo apt-get install texlive texlive-publishers texlive-science latexmk cm-super
32+
- name: Install inkscape
33+
run: sudo apt-get install inkscape -y
3234
- name: Build html, latex, pdf
3335
run: cd docs && make html && make latexpdf
3436

.github/workflows/python-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
max-parallel: 1
1515
fail-fast: false
1616
matrix:
17-
python-version: ["3.8", "3.10"]
17+
python-version: ["3.8", "3.11"]
1818
steps:
1919
- uses: actions/checkout@v3
2020
- name: Set up Python ${{ matrix.python-version }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ dist/**
44
build**
55
**.egg-info
66
src/test.py
7+
venv/**
8+
docs/source/ref.rst
9+
docs/source/reference/

Examples/Additional Application Layer Example/Coffee/main_coffee.py

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,25 @@ def get_data(storage: list):
2020
return text, daf.FILE(image) # Return message to be sent
2121

2222
now = datetime.now()
23-
servers = [
24-
daf.GUILD(
25-
snowflake=123456789,
26-
messages=[
23+
accounts = [
24+
daf.ACCOUNT(
25+
token="YOUR TOKEN",
26+
is_user=False,
27+
servers=[
28+
daf.GUILD(
29+
snowflake=123456789,
30+
messages=[
2731

28-
daf.TextMESSAGE(start_period=None, end_period=timedelta(days=1), data=get_data([]), channels=[123456789], mode="send", start_in=now.replace(second=0, microsecond=0, minute=0, hour=10) + timedelta(days=1) - now)
29-
],
30-
logging=True
32+
daf.TextMESSAGE(start_period=None, end_period=timedelta(days=1), data=get_data([]), channels=[123456789], mode="send", start_in=now.replace(second=0, microsecond=0, minute=0, hour=10) + timedelta(days=1) - now)
33+
],
34+
logging=True
35+
)
36+
]
3137
)
3238
]
3339

3440

3541
############################################################################################
36-
daf.run( token="YOUR TOKEN", server_list=servers)
42+
daf.run(accounts=accounts)
3743

3844

Examples/Additional Application Layer Example/Scheduled messages/BOT/conf.py

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

Examples/Additional Application Layer Example/Scheduled messages/BOT/main_obv.py

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

0 commit comments

Comments
 (0)