Skip to content

Commit e3923c3

Browse files
authored
Merge pull request #182 from davidhozic/develop
SQL Dependancy fix, documentation
2 parents 00f78fc + 18159aa commit e3923c3

File tree

9 files changed

+47
-104
lines changed

9 files changed

+47
-104
lines changed

README.md

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

README.rst

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
=========================================================
2+
DAF (v2.1.rc1)
3+
=========================================================
4+
.. image:: docs/source/images/logo.png
5+
:width: 100
6+
7+
The Discord advertisement framework is a **shilling tool** that allows easy advertising on Discord.
8+
9+
----------------------
10+
Other information
11+
----------------------
12+
For more information see the project's `Webpage <https://daf.davidhozic.top>`_.
13+
14+
----------------------
15+
Key features
16+
----------------------
17+
- Ability to run on **user** accounts (against discord's ToS) or **bot** accounts
18+
- Periodic advertisement to **Direct (Private) Messages**, **Text channels** and **Voice channels**
19+
- Advertising with either static data (text, embed, files, audio) or **dynamic data** (the data is obtained thru a function dynamically)
20+
- Logging of send attempts with **JSON** file logs or to a **SQL** server (Microsoft SQL Server only)
21+
- Ability to add additional application layers with help of asyncio
22+
- Easy to setup
23+
24+
.. caution::
25+
While running this on user accounts is possible, it is :strong:`not recommended` since it is against Discord's ToS.
26+
I am not responsible if your account get's disabled for using self-bots, however there are some protections to make
27+
it harder for the API to detect a self-bot.
28+
29+
--------------------
30+
Basic example
31+
--------------------
32+
For basic example see `main_send_string.py <Examples/Message%20Types/TextMESSAGE/main_send_string.py>`_

docs/source/changelog.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,11 @@ Releases
3131

3232
v2.1
3333
===========
34+
- Changed the import ``import framework`` to ``import daf``. Using ``import framework`` is now deprecated.
3435
- ``remove_after`` parameter:
3536
Classes: :class:`daf.guild.GUILD`, :class:`daf.guild.USER`, :class:`daf.message.TextMESSAGE`, :class:`daf.message.VoiceMESSAGE`, :class:`daf.message.DirectMESSAGE`
3637

3738
now support the remove_after parameter which will remove the object from the shilling list when conditions met.
38-
39-
4039
- Proxies:
4140
Added support for using proxies.
4241
To use a proxy pass the :func:`daf.run` function with a ``proxy`` parameter
@@ -62,6 +61,9 @@ v2.1
6261

6362
Time slippage correction
6463

64+
Slow mode correction:
65+
Whenever a channel was in slow mode, it was not properly handled. This is now fixed.
66+
6567

6668
v2.0
6769
===========

docs/source/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@
7474

7575
# ----------- HTML ----------- #
7676
html_title = project
77+
html_logo = "images/logo.png"
78+
html_favicon = html_logo
7779
html_theme = 'furo'
7880
html_static_path = ['_static']
7981
html_theme_options = {

docs/source/images/logo.png

245 KB
Loading

docs/source/index.rst

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The Discord advertisement framework is a **shilling tool** that allows easy adv
66

77

88

9-
----------------------
9+
---------------------
1010
Links
1111
----------------------
1212
.. tab-set::
@@ -46,18 +46,17 @@ Links
4646
Key features
4747
----------------------
4848
- Ability to run on **user** accounts or **bot** accounts
49+
50+
.. caution::
51+
While running this on user accounts is possible, it is :strong:`not recommended` since it is against Discord's ToS.
52+
I am not responsible if your account get's disabled for using self-bots!
53+
4954
- Periodic advertisement to **Direct (Private) Messages**, **Text channels** and **Voice channels**
5055
- Advertising with either static data (text, embed, files, audio) or **dynamic data** (the data is obtained thru a function dynamically)
5156
- Logging of send attempts with **JSON** file logs or to a **SQL** server (Microsoft SQL Server only)
5257
- Ability to add additional application layers with help of asyncio
5358
- Easy to setup
5459

55-
.. caution::
56-
While running this on user accounts is possible, it is :strong:`not recommended` since it is against Discord's ToS.
57-
I am not responsible if your account get's disabled for using self-bots, however there are some protections to make
58-
it harder for the API to detect a self-bot.
59-
60-
6160
----------------------
6261
Installation
6362
----------------------

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55

66
long_description = None
7-
with open("./README.md", "r", encoding="utf-8") as fh:
7+
with open("./README.rst", "r", encoding="utf-8") as fh:
88
long_description = fh.read()
99

1010
req = None

src/daf/sql.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,13 +1017,11 @@ async def initialize(mgr_object: LoggerSQL) -> bool:
10171017
try:
10181018
await mgr_object.initialize()
10191019
_ret = True
1020+
trace("[SQL]: Initialization was successful!", TraceLEVELS.NORMAL)
10201021
except DAFSQLError as exc:
10211022
trace(f"[SQL:] Unable to initialize manager, reason\n: {exc}", TraceLEVELS.ERROR)
1022-
else:
1023-
mgr_object = LoggerSQL("", "", "", "")
10241023

10251024
GLOBALS.manager = mgr_object
1026-
trace("[SQL]: Initialization was successful!", TraceLEVELS.NORMAL)
10271025
return _ret
10281026

10291027

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2.1.rc1
1+
v2.1.rc1-1

0 commit comments

Comments
 (0)