Skip to content

Commit

Permalink
Merge pull request #247 from davidhozic/develop
Browse files Browse the repository at this point in the history
Multiple accounts support
  • Loading branch information
davidhozic authored Dec 27, 2022
2 parents 5a69a31 + e282f45 commit da3d195
Show file tree
Hide file tree
Showing 76 changed files with 2,424 additions and 2,434 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
pip install .[all]
- name: Install latex
run: sudo apt-get update && sudo apt-get install texlive texlive-publishers texlive-science latexmk cm-super
- name: Install inkscape
run: sudo apt-get install inkscape -y
- name: Build html, latex, pdf
run: cd docs && make html && make latexpdf

2 changes: 1 addition & 1 deletion .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
max-parallel: 1
fail-fast: false
matrix:
python-version: ["3.8", "3.10"]
python-version: ["3.8", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ dist/**
build**
**.egg-info
src/test.py
venv/**
docs/source/ref.rst
docs/source/reference/
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,25 @@ def get_data(storage: list):
return text, daf.FILE(image) # Return message to be sent

now = datetime.now()
servers = [
daf.GUILD(
snowflake=123456789,
messages=[
accounts = [
daf.ACCOUNT(
token="YOUR TOKEN",
is_user=False,
servers=[
daf.GUILD(
snowflake=123456789,
messages=[

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)
],
logging=True
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)
],
logging=True
)
]
)
]


############################################################################################
daf.run( token="YOUR TOKEN", server_list=servers)
daf.run(accounts=accounts)


This file was deleted.

This file was deleted.

Loading

0 comments on commit da3d195

Please sign in to comment.