discord-py-darkself 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. discord_py_darkself-1.0.0/LICENSE +21 -0
  2. discord_py_darkself-1.0.0/MANIFEST.in +5 -0
  3. discord_py_darkself-1.0.0/PKG-INFO +145 -0
  4. discord_py_darkself-1.0.0/README.rst +58 -0
  5. discord_py_darkself-1.0.0/discord_py_darkself.egg-info/PKG-INFO +145 -0
  6. discord_py_darkself-1.0.0/discord_py_darkself.egg-info/SOURCES.txt +161 -0
  7. discord_py_darkself-1.0.0/discord_py_darkself.egg-info/dependency_links.txt +1 -0
  8. discord_py_darkself-1.0.0/discord_py_darkself.egg-info/requires.txt +56 -0
  9. discord_py_darkself-1.0.0/discord_py_darkself.egg-info/top_level.txt +1 -0
  10. discord_py_darkself-1.0.0/discord_self/__init__.py +105 -0
  11. discord_py_darkself-1.0.0/discord_self/__main__.py +354 -0
  12. discord_py_darkself-1.0.0/discord_self/abc.py +2985 -0
  13. discord_py_darkself-1.0.0/discord_self/activity.py +2130 -0
  14. discord_py_darkself-1.0.0/discord_self/affinity.py +193 -0
  15. discord_py_darkself-1.0.0/discord_self/application.py +4124 -0
  16. discord_py_darkself-1.0.0/discord_self/asset.py +604 -0
  17. discord_py_darkself-1.0.0/discord_self/audit_logs.py +907 -0
  18. discord_py_darkself-1.0.0/discord_self/automod.py +664 -0
  19. discord_py_darkself-1.0.0/discord_self/backoff.py +105 -0
  20. discord_py_darkself-1.0.0/discord_self/billing.py +391 -0
  21. discord_py_darkself-1.0.0/discord_self/calls.py +496 -0
  22. discord_py_darkself-1.0.0/discord_self/channel.py +4823 -0
  23. discord_py_darkself-1.0.0/discord_self/client.py +6002 -0
  24. discord_py_darkself-1.0.0/discord_self/collectible.py +109 -0
  25. discord_py_darkself-1.0.0/discord_self/colour.py +593 -0
  26. discord_py_darkself-1.0.0/discord_self/commands.py +1003 -0
  27. discord_py_darkself-1.0.0/discord_self/components.py +571 -0
  28. discord_py_darkself-1.0.0/discord_self/connections.py +346 -0
  29. discord_py_darkself-1.0.0/discord_self/context_managers.py +105 -0
  30. discord_py_darkself-1.0.0/discord_self/directory.py +192 -0
  31. discord_py_darkself-1.0.0/discord_self/embeds.py +777 -0
  32. discord_py_darkself-1.0.0/discord_self/emoji.py +280 -0
  33. discord_py_darkself-1.0.0/discord_self/entitlements.py +626 -0
  34. discord_py_darkself-1.0.0/discord_self/enums.py +1970 -0
  35. discord_py_darkself-1.0.0/discord_self/errors.py +343 -0
  36. discord_py_darkself-1.0.0/discord_self/experiment.py +1157 -0
  37. discord_py_darkself-1.0.0/discord_self/ext/commands/__init__.py +20 -0
  38. discord_py_darkself-1.0.0/discord_self/ext/commands/_types.py +72 -0
  39. discord_py_darkself-1.0.0/discord_self/ext/commands/bot.py +1311 -0
  40. discord_py_darkself-1.0.0/discord_self/ext/commands/cog.py +526 -0
  41. discord_py_darkself-1.0.0/discord_self/ext/commands/context.py +534 -0
  42. discord_py_darkself-1.0.0/discord_self/ext/commands/converter.py +1391 -0
  43. discord_py_darkself-1.0.0/discord_self/ext/commands/cooldowns.py +403 -0
  44. discord_py_darkself-1.0.0/discord_self/ext/commands/core.py +2592 -0
  45. discord_py_darkself-1.0.0/discord_self/ext/commands/errors.py +1211 -0
  46. discord_py_darkself-1.0.0/discord_self/ext/commands/flags.py +687 -0
  47. discord_py_darkself-1.0.0/discord_self/ext/commands/help.py +1604 -0
  48. discord_py_darkself-1.0.0/discord_self/ext/commands/parameters.py +324 -0
  49. discord_py_darkself-1.0.0/discord_self/ext/commands/view.py +196 -0
  50. discord_py_darkself-1.0.0/discord_self/ext/tasks/__init__.py +849 -0
  51. discord_py_darkself-1.0.0/discord_self/file.py +326 -0
  52. discord_py_darkself-1.0.0/discord_self/flags.py +3483 -0
  53. discord_py_darkself-1.0.0/discord_self/gateway.py +1332 -0
  54. discord_py_darkself-1.0.0/discord_self/guild.py +5915 -0
  55. discord_py_darkself-1.0.0/discord_self/guild_premium.py +336 -0
  56. discord_py_darkself-1.0.0/discord_self/http.py +5139 -0
  57. discord_py_darkself-1.0.0/discord_self/integrations.py +398 -0
  58. discord_py_darkself-1.0.0/discord_self/interactions.py +221 -0
  59. discord_py_darkself-1.0.0/discord_self/invite.py +752 -0
  60. discord_py_darkself-1.0.0/discord_self/library.py +289 -0
  61. discord_py_darkself-1.0.0/discord_self/member.py +1292 -0
  62. discord_py_darkself-1.0.0/discord_self/mentions.py +153 -0
  63. discord_py_darkself-1.0.0/discord_self/message.py +2930 -0
  64. discord_py_darkself-1.0.0/discord_self/metadata.py +151 -0
  65. discord_py_darkself-1.0.0/discord_self/mixins.py +46 -0
  66. discord_py_darkself-1.0.0/discord_self/modal.py +140 -0
  67. discord_py_darkself-1.0.0/discord_self/oauth2.py +235 -0
  68. discord_py_darkself-1.0.0/discord_self/object.py +117 -0
  69. discord_py_darkself-1.0.0/discord_self/oggparse.py +117 -0
  70. discord_py_darkself-1.0.0/discord_self/onboarding.py +369 -0
  71. discord_py_darkself-1.0.0/discord_self/opus.py +504 -0
  72. discord_py_darkself-1.0.0/discord_self/partial_emoji.py +317 -0
  73. discord_py_darkself-1.0.0/discord_self/payments.py +247 -0
  74. discord_py_darkself-1.0.0/discord_self/permissions.py +1074 -0
  75. discord_py_darkself-1.0.0/discord_self/player.py +837 -0
  76. discord_py_darkself-1.0.0/discord_self/poll.py +672 -0
  77. discord_py_darkself-1.0.0/discord_self/primary_guild.py +96 -0
  78. discord_py_darkself-1.0.0/discord_self/profile.py +693 -0
  79. discord_py_darkself-1.0.0/discord_self/promotions.py +593 -0
  80. discord_py_darkself-1.0.0/discord_self/py.typed +0 -0
  81. discord_py_darkself-1.0.0/discord_self/raw_models.py +546 -0
  82. discord_py_darkself-1.0.0/discord_self/reaction.py +296 -0
  83. discord_py_darkself-1.0.0/discord_self/read_state.py +285 -0
  84. discord_py_darkself-1.0.0/discord_self/relationship.py +453 -0
  85. discord_py_darkself-1.0.0/discord_self/role.py +894 -0
  86. discord_py_darkself-1.0.0/discord_self/scheduled_event.py +751 -0
  87. discord_py_darkself-1.0.0/discord_self/settings.py +2459 -0
  88. discord_py_darkself-1.0.0/discord_self/stage_instance.py +262 -0
  89. discord_py_darkself-1.0.0/discord_self/state.py +3834 -0
  90. discord_py_darkself-1.0.0/discord_self/sticker.py +565 -0
  91. discord_py_darkself-1.0.0/discord_self/store.py +2367 -0
  92. discord_py_darkself-1.0.0/discord_self/subscriptions.py +975 -0
  93. discord_py_darkself-1.0.0/discord_self/team.py +632 -0
  94. discord_py_darkself-1.0.0/discord_self/template.py +307 -0
  95. discord_py_darkself-1.0.0/discord_self/threads.py +1046 -0
  96. discord_py_darkself-1.0.0/discord_self/tracking.py +977 -0
  97. discord_py_darkself-1.0.0/discord_self/tutorial.py +115 -0
  98. discord_py_darkself-1.0.0/discord_self/types/__init__.py +10 -0
  99. discord_py_darkself-1.0.0/discord_self/types/activity.py +143 -0
  100. discord_py_darkself-1.0.0/discord_self/types/application.py +345 -0
  101. discord_py_darkself-1.0.0/discord_self/types/audit_log.py +373 -0
  102. discord_py_darkself-1.0.0/discord_self/types/automod.py +132 -0
  103. discord_py_darkself-1.0.0/discord_self/types/billing.py +84 -0
  104. discord_py_darkself-1.0.0/discord_self/types/channel.py +236 -0
  105. discord_py_darkself-1.0.0/discord_self/types/command.py +235 -0
  106. discord_py_darkself-1.0.0/discord_self/types/components.py +93 -0
  107. discord_py_darkself-1.0.0/discord_self/types/directory.py +79 -0
  108. discord_py_darkself-1.0.0/discord_self/types/embed.py +95 -0
  109. discord_py_darkself-1.0.0/discord_self/types/emoji.py +55 -0
  110. discord_py_darkself-1.0.0/discord_self/types/entitlements.py +93 -0
  111. discord_py_darkself-1.0.0/discord_self/types/error.py +59 -0
  112. discord_py_darkself-1.0.0/discord_self/types/experiment.py +142 -0
  113. discord_py_darkself-1.0.0/discord_self/types/gateway.py +723 -0
  114. discord_py_darkself-1.0.0/discord_self/types/guild.py +207 -0
  115. discord_py_darkself-1.0.0/discord_self/types/hub.py +52 -0
  116. discord_py_darkself-1.0.0/discord_self/types/integration.py +86 -0
  117. discord_py_darkself-1.0.0/discord_self/types/interactions.py +192 -0
  118. discord_py_darkself-1.0.0/discord_self/types/invite.py +86 -0
  119. discord_py_darkself-1.0.0/discord_self/types/library.py +44 -0
  120. discord_py_darkself-1.0.0/discord_self/types/member.py +76 -0
  121. discord_py_darkself-1.0.0/discord_self/types/message.py +324 -0
  122. discord_py_darkself-1.0.0/discord_self/types/oauth2.py +68 -0
  123. discord_py_darkself-1.0.0/discord_self/types/onboarding.py +72 -0
  124. discord_py_darkself-1.0.0/discord_self/types/payments.py +65 -0
  125. discord_py_darkself-1.0.0/discord_self/types/poll.py +88 -0
  126. discord_py_darkself-1.0.0/discord_self/types/profile.py +95 -0
  127. discord_py_darkself-1.0.0/discord_self/types/promotions.py +117 -0
  128. discord_py_darkself-1.0.0/discord_self/types/read_state.py +54 -0
  129. discord_py_darkself-1.0.0/discord_self/types/role.py +61 -0
  130. discord_py_darkself-1.0.0/discord_self/types/scheduled_event.py +113 -0
  131. discord_py_darkself-1.0.0/discord_self/types/snowflake.py +28 -0
  132. discord_py_darkself-1.0.0/discord_self/types/sticker.py +83 -0
  133. discord_py_darkself-1.0.0/discord_self/types/store.py +185 -0
  134. discord_py_darkself-1.0.0/discord_self/types/subscriptions.py +191 -0
  135. discord_py_darkself-1.0.0/discord_self/types/team.py +59 -0
  136. discord_py_darkself-1.0.0/discord_self/types/template.py +49 -0
  137. discord_py_darkself-1.0.0/discord_self/types/threads.py +92 -0
  138. discord_py_darkself-1.0.0/discord_self/types/user.py +313 -0
  139. discord_py_darkself-1.0.0/discord_self/types/voice.py +96 -0
  140. discord_py_darkself-1.0.0/discord_self/types/webhook.py +71 -0
  141. discord_py_darkself-1.0.0/discord_self/types/welcome_screen.py +40 -0
  142. discord_py_darkself-1.0.0/discord_self/types/widget.py +65 -0
  143. discord_py_darkself-1.0.0/discord_self/user.py +1316 -0
  144. discord_py_darkself-1.0.0/discord_self/utils.py +1786 -0
  145. discord_py_darkself-1.0.0/discord_self/voice_client.py +607 -0
  146. discord_py_darkself-1.0.0/discord_self/voice_state.py +839 -0
  147. discord_py_darkself-1.0.0/discord_self/webhook/__init__.py +13 -0
  148. discord_py_darkself-1.0.0/discord_self/webhook/async_.py +1808 -0
  149. discord_py_darkself-1.0.0/discord_self/webhook/sync.py +1247 -0
  150. discord_py_darkself-1.0.0/discord_self/welcome_screen.py +214 -0
  151. discord_py_darkself-1.0.0/discord_self/widget.py +343 -0
  152. discord_py_darkself-1.0.0/pyproject.toml +141 -0
  153. discord_py_darkself-1.0.0/requirements.txt +5 -0
  154. discord_py_darkself-1.0.0/setup.cfg +4 -0
  155. discord_py_darkself-1.0.0/tests/test_annotated_annotation.py +53 -0
  156. discord_py_darkself-1.0.0/tests/test_colour.py +130 -0
  157. discord_py_darkself-1.0.0/tests/test_embed.py +275 -0
  158. discord_py_darkself-1.0.0/tests/test_ext_commands_description.py +130 -0
  159. discord_py_darkself-1.0.0/tests/test_ext_tasks.py +180 -0
  160. discord_py_darkself-1.0.0/tests/test_files.py +129 -0
  161. discord_py_darkself-1.0.0/tests/test_info_retrieval.py +59 -0
  162. discord_py_darkself-1.0.0/tests/test_permissions_all.py +8 -0
  163. discord_py_darkself-1.0.0/tests/test_utils.py +336 -0
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015-present Rapptz
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a
6
+ copy of this software and associated documentation files (the "Software"),
7
+ to deal in the Software without restriction, including without limitation
8
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
9
+ and/or sell copies of the Software, and to permit persons to whom the
10
+ Software is furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,5 @@
1
+ include README.rst
2
+ include LICENSE
3
+ include requirements.txt
4
+ include discord/bin/*
5
+ include discord/py.typed
@@ -0,0 +1,145 @@
1
+ Metadata-Version: 2.4
2
+ Name: discord-py-darkself
3
+ Version: 1.0.0
4
+ Summary: A Python wrapper for the Discord user API (Custom DarkSelf Fork)
5
+ Author-email: Tecno <stepansergienko42@gmail.com>
6
+ License: The MIT License (MIT)
7
+
8
+ Copyright (c) 2015-present Rapptz
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a
11
+ copy of this software and associated documentation files (the "Software"),
12
+ to deal in the Software without restriction, including without limitation
13
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
14
+ and/or sell copies of the Software, and to permit persons to whom the
15
+ Software is furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in
18
+ all copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26
+ DEALINGS IN THE SOFTWARE.
27
+
28
+ Project-URL: Issue tracker, https://github.com/Darknife339/discord.py-darkself/issues
29
+ Classifier: Development Status :: 5 - Production/Stable
30
+ Classifier: License :: OSI Approved :: MIT License
31
+ Classifier: Intended Audience :: Developers
32
+ Classifier: Natural Language :: English
33
+ Classifier: Operating System :: OS Independent
34
+ Classifier: Programming Language :: Python :: 3.10
35
+ Classifier: Programming Language :: Python :: 3.11
36
+ Classifier: Programming Language :: Python :: 3.12
37
+ Classifier: Programming Language :: Python :: 3.13
38
+ Classifier: Programming Language :: Python :: 3.14
39
+ Classifier: Topic :: Internet
40
+ Classifier: Topic :: Software Development :: Libraries
41
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
42
+ Classifier: Topic :: Utilities
43
+ Classifier: Typing :: Typed
44
+ Requires-Python: >=3.10
45
+ Description-Content-Type: text/x-rst
46
+ License-File: LICENSE
47
+ Requires-Dist: aiohttp<4,>=3.7.4
48
+ Requires-Dist: curl_cffi<1,>=0.14.0
49
+ Requires-Dist: tzlocal<6,>=4.0.0
50
+ Requires-Dist: discord_protos<2.0.0
51
+ Requires-Dist: audioop-lts; python_version >= "3.13"
52
+ Provides-Extra: voice
53
+ Requires-Dist: PyNaCl<1.6,>=1.5.0; extra == "voice"
54
+ Requires-Dist: davey==0.1.0; extra == "voice"
55
+ Provides-Extra: docs
56
+ Requires-Dist: sphinx==4.4.0; extra == "docs"
57
+ Requires-Dist: sphinxcontrib_trio==1.1.2; extra == "docs"
58
+ Requires-Dist: sphinxcontrib-websupport==1.2.4; extra == "docs"
59
+ Requires-Dist: sphinxcontrib-applehelp==1.0.4; extra == "docs"
60
+ Requires-Dist: sphinxcontrib-devhelp==1.0.2; extra == "docs"
61
+ Requires-Dist: sphinxcontrib-htmlhelp==2.0.1; extra == "docs"
62
+ Requires-Dist: sphinxcontrib-jsmath==1.0.1; extra == "docs"
63
+ Requires-Dist: sphinxcontrib-qthelp==1.0.3; extra == "docs"
64
+ Requires-Dist: sphinxcontrib-serializinghtml==1.1.5; extra == "docs"
65
+ Requires-Dist: typing-extensions<5,>=4.3; extra == "docs"
66
+ Requires-Dist: sphinx-inline-tabs==2023.4.21; extra == "docs"
67
+ Requires-Dist: imghdr-lts==1.0.0; python_version >= "3.13" and extra == "docs"
68
+ Provides-Extra: speed
69
+ Requires-Dist: orjson>=3.5.4; extra == "speed"
70
+ Requires-Dist: aiodns>=1.1; sys_platform != "win32" and extra == "speed"
71
+ Requires-Dist: Brotli; extra == "speed"
72
+ Requires-Dist: cchardet==2.1.7; python_version < "3.10" and extra == "speed"
73
+ Requires-Dist: mmh3>=2.5; extra == "speed"
74
+ Requires-Dist: zstandard>=0.23.0; python_version <= "3.13" and extra == "speed"
75
+ Provides-Extra: test
76
+ Requires-Dist: coverage[toml]; extra == "test"
77
+ Requires-Dist: pytest; extra == "test"
78
+ Requires-Dist: pytest-asyncio; extra == "test"
79
+ Requires-Dist: pytest-cov; extra == "test"
80
+ Requires-Dist: pytest-mock; extra == "test"
81
+ Requires-Dist: typing-extensions<5,>=4.3; extra == "test"
82
+ Requires-Dist: tzdata; sys_platform == "win32" and extra == "test"
83
+ Provides-Extra: dev
84
+ Requires-Dist: ruff==0.12; extra == "dev"
85
+ Requires-Dist: typing_extensions<5,>=4.3; extra == "dev"
86
+ Dynamic: license-file
87
+
88
+ discord-py-darkself
89
+ ===================
90
+
91
+ A modern, easy-to-use, feature-rich, and async-ready API wrapper for Discord's user API written in Python.
92
+
93
+ About the Project
94
+ -----------------
95
+
96
+ **discord-py-darkself** is a customized fork of the `discord.py-self` library.
97
+
98
+ The primary feature of this fork is the complete isolation of its namespace. In this version, the standard ``discord`` package namespace and all its internal/external imports have been renamed to ``discord_self``.
99
+
100
+ This allows you to install and use this library concurrently alongside the official, upstream ``discord.py`` library (used for regular bot accounts) within the same Python environment without experiencing any naming conflicts or dependency collisions.
101
+
102
+ How to Use
103
+ ----------
104
+
105
+ Instead of using the standard ``discord`` import, use ``discord_self`` and ``discord_self.ext`` for commands and tasks:
106
+
107
+ .. code:: py
108
+
109
+ import discord_self
110
+ from discord_self.ext import commands
111
+
112
+ bot = commands.Bot(command_prefix='!', self_bot=True)
113
+
114
+ @bot.event
115
+ async def on_ready():
116
+ print(f'Logged on as {bot.user} (ID: {bot.user.id})')
117
+
118
+ @bot.command()
119
+ async def ping(ctx):
120
+ await ctx.send('pong')
121
+
122
+ bot.run('YOUR_ACCOUNT_TOKEN_HERE')
123
+
124
+ Installation
125
+ ------------
126
+
127
+ **Python 3.10 or higher is required.**
128
+
129
+ You can install the library directly from your GitHub repository using ``pip``:
130
+
131
+ .. code:: sh
132
+
133
+ pip install git+https://github.com/Darknife339/discord.py-darkself.git
134
+
135
+ If you have cloned the repository locally and wish to install it in editable mode for development:
136
+
137
+ .. code:: sh
138
+
139
+ cd discord.py-darkself
140
+ pip install -e .
141
+
142
+ Disclaimer
143
+ ----------
144
+
145
+ Automating user accounts (self-botting) is against the Discord Terms of Service (ToS). This library is a proof of concept and is intended strictly for educational and research purposes. The author of this fork assumes no responsibility for any account terminations or penalties incurred while using this software. Use it entirely at your own risk.
@@ -0,0 +1,58 @@
1
+ discord-py-darkself
2
+ ===================
3
+
4
+ A modern, easy-to-use, feature-rich, and async-ready API wrapper for Discord's user API written in Python.
5
+
6
+ About the Project
7
+ -----------------
8
+
9
+ **discord-py-darkself** is a customized fork of the `discord.py-self` library.
10
+
11
+ The primary feature of this fork is the complete isolation of its namespace. In this version, the standard ``discord`` package namespace and all its internal/external imports have been renamed to ``discord_self``.
12
+
13
+ This allows you to install and use this library concurrently alongside the official, upstream ``discord.py`` library (used for regular bot accounts) within the same Python environment without experiencing any naming conflicts or dependency collisions.
14
+
15
+ How to Use
16
+ ----------
17
+
18
+ Instead of using the standard ``discord`` import, use ``discord_self`` and ``discord_self.ext`` for commands and tasks:
19
+
20
+ .. code:: py
21
+
22
+ import discord_self
23
+ from discord_self.ext import commands
24
+
25
+ bot = commands.Bot(command_prefix='!', self_bot=True)
26
+
27
+ @bot.event
28
+ async def on_ready():
29
+ print(f'Logged on as {bot.user} (ID: {bot.user.id})')
30
+
31
+ @bot.command()
32
+ async def ping(ctx):
33
+ await ctx.send('pong')
34
+
35
+ bot.run('YOUR_ACCOUNT_TOKEN_HERE')
36
+
37
+ Installation
38
+ ------------
39
+
40
+ **Python 3.10 or higher is required.**
41
+
42
+ You can install the library directly from your GitHub repository using ``pip``:
43
+
44
+ .. code:: sh
45
+
46
+ pip install git+https://github.com/Darknife339/discord.py-darkself.git
47
+
48
+ If you have cloned the repository locally and wish to install it in editable mode for development:
49
+
50
+ .. code:: sh
51
+
52
+ cd discord.py-darkself
53
+ pip install -e .
54
+
55
+ Disclaimer
56
+ ----------
57
+
58
+ Automating user accounts (self-botting) is against the Discord Terms of Service (ToS). This library is a proof of concept and is intended strictly for educational and research purposes. The author of this fork assumes no responsibility for any account terminations or penalties incurred while using this software. Use it entirely at your own risk.
@@ -0,0 +1,145 @@
1
+ Metadata-Version: 2.4
2
+ Name: discord-py-darkself
3
+ Version: 1.0.0
4
+ Summary: A Python wrapper for the Discord user API (Custom DarkSelf Fork)
5
+ Author-email: Tecno <stepansergienko42@gmail.com>
6
+ License: The MIT License (MIT)
7
+
8
+ Copyright (c) 2015-present Rapptz
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a
11
+ copy of this software and associated documentation files (the "Software"),
12
+ to deal in the Software without restriction, including without limitation
13
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
14
+ and/or sell copies of the Software, and to permit persons to whom the
15
+ Software is furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in
18
+ all copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26
+ DEALINGS IN THE SOFTWARE.
27
+
28
+ Project-URL: Issue tracker, https://github.com/Darknife339/discord.py-darkself/issues
29
+ Classifier: Development Status :: 5 - Production/Stable
30
+ Classifier: License :: OSI Approved :: MIT License
31
+ Classifier: Intended Audience :: Developers
32
+ Classifier: Natural Language :: English
33
+ Classifier: Operating System :: OS Independent
34
+ Classifier: Programming Language :: Python :: 3.10
35
+ Classifier: Programming Language :: Python :: 3.11
36
+ Classifier: Programming Language :: Python :: 3.12
37
+ Classifier: Programming Language :: Python :: 3.13
38
+ Classifier: Programming Language :: Python :: 3.14
39
+ Classifier: Topic :: Internet
40
+ Classifier: Topic :: Software Development :: Libraries
41
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
42
+ Classifier: Topic :: Utilities
43
+ Classifier: Typing :: Typed
44
+ Requires-Python: >=3.10
45
+ Description-Content-Type: text/x-rst
46
+ License-File: LICENSE
47
+ Requires-Dist: aiohttp<4,>=3.7.4
48
+ Requires-Dist: curl_cffi<1,>=0.14.0
49
+ Requires-Dist: tzlocal<6,>=4.0.0
50
+ Requires-Dist: discord_protos<2.0.0
51
+ Requires-Dist: audioop-lts; python_version >= "3.13"
52
+ Provides-Extra: voice
53
+ Requires-Dist: PyNaCl<1.6,>=1.5.0; extra == "voice"
54
+ Requires-Dist: davey==0.1.0; extra == "voice"
55
+ Provides-Extra: docs
56
+ Requires-Dist: sphinx==4.4.0; extra == "docs"
57
+ Requires-Dist: sphinxcontrib_trio==1.1.2; extra == "docs"
58
+ Requires-Dist: sphinxcontrib-websupport==1.2.4; extra == "docs"
59
+ Requires-Dist: sphinxcontrib-applehelp==1.0.4; extra == "docs"
60
+ Requires-Dist: sphinxcontrib-devhelp==1.0.2; extra == "docs"
61
+ Requires-Dist: sphinxcontrib-htmlhelp==2.0.1; extra == "docs"
62
+ Requires-Dist: sphinxcontrib-jsmath==1.0.1; extra == "docs"
63
+ Requires-Dist: sphinxcontrib-qthelp==1.0.3; extra == "docs"
64
+ Requires-Dist: sphinxcontrib-serializinghtml==1.1.5; extra == "docs"
65
+ Requires-Dist: typing-extensions<5,>=4.3; extra == "docs"
66
+ Requires-Dist: sphinx-inline-tabs==2023.4.21; extra == "docs"
67
+ Requires-Dist: imghdr-lts==1.0.0; python_version >= "3.13" and extra == "docs"
68
+ Provides-Extra: speed
69
+ Requires-Dist: orjson>=3.5.4; extra == "speed"
70
+ Requires-Dist: aiodns>=1.1; sys_platform != "win32" and extra == "speed"
71
+ Requires-Dist: Brotli; extra == "speed"
72
+ Requires-Dist: cchardet==2.1.7; python_version < "3.10" and extra == "speed"
73
+ Requires-Dist: mmh3>=2.5; extra == "speed"
74
+ Requires-Dist: zstandard>=0.23.0; python_version <= "3.13" and extra == "speed"
75
+ Provides-Extra: test
76
+ Requires-Dist: coverage[toml]; extra == "test"
77
+ Requires-Dist: pytest; extra == "test"
78
+ Requires-Dist: pytest-asyncio; extra == "test"
79
+ Requires-Dist: pytest-cov; extra == "test"
80
+ Requires-Dist: pytest-mock; extra == "test"
81
+ Requires-Dist: typing-extensions<5,>=4.3; extra == "test"
82
+ Requires-Dist: tzdata; sys_platform == "win32" and extra == "test"
83
+ Provides-Extra: dev
84
+ Requires-Dist: ruff==0.12; extra == "dev"
85
+ Requires-Dist: typing_extensions<5,>=4.3; extra == "dev"
86
+ Dynamic: license-file
87
+
88
+ discord-py-darkself
89
+ ===================
90
+
91
+ A modern, easy-to-use, feature-rich, and async-ready API wrapper for Discord's user API written in Python.
92
+
93
+ About the Project
94
+ -----------------
95
+
96
+ **discord-py-darkself** is a customized fork of the `discord.py-self` library.
97
+
98
+ The primary feature of this fork is the complete isolation of its namespace. In this version, the standard ``discord`` package namespace and all its internal/external imports have been renamed to ``discord_self``.
99
+
100
+ This allows you to install and use this library concurrently alongside the official, upstream ``discord.py`` library (used for regular bot accounts) within the same Python environment without experiencing any naming conflicts or dependency collisions.
101
+
102
+ How to Use
103
+ ----------
104
+
105
+ Instead of using the standard ``discord`` import, use ``discord_self`` and ``discord_self.ext`` for commands and tasks:
106
+
107
+ .. code:: py
108
+
109
+ import discord_self
110
+ from discord_self.ext import commands
111
+
112
+ bot = commands.Bot(command_prefix='!', self_bot=True)
113
+
114
+ @bot.event
115
+ async def on_ready():
116
+ print(f'Logged on as {bot.user} (ID: {bot.user.id})')
117
+
118
+ @bot.command()
119
+ async def ping(ctx):
120
+ await ctx.send('pong')
121
+
122
+ bot.run('YOUR_ACCOUNT_TOKEN_HERE')
123
+
124
+ Installation
125
+ ------------
126
+
127
+ **Python 3.10 or higher is required.**
128
+
129
+ You can install the library directly from your GitHub repository using ``pip``:
130
+
131
+ .. code:: sh
132
+
133
+ pip install git+https://github.com/Darknife339/discord.py-darkself.git
134
+
135
+ If you have cloned the repository locally and wish to install it in editable mode for development:
136
+
137
+ .. code:: sh
138
+
139
+ cd discord.py-darkself
140
+ pip install -e .
141
+
142
+ Disclaimer
143
+ ----------
144
+
145
+ Automating user accounts (self-botting) is against the Discord Terms of Service (ToS). This library is a proof of concept and is intended strictly for educational and research purposes. The author of this fork assumes no responsibility for any account terminations or penalties incurred while using this software. Use it entirely at your own risk.
@@ -0,0 +1,161 @@
1
+ LICENSE
2
+ MANIFEST.in
3
+ README.rst
4
+ pyproject.toml
5
+ requirements.txt
6
+ discord_py_darkself.egg-info/PKG-INFO
7
+ discord_py_darkself.egg-info/SOURCES.txt
8
+ discord_py_darkself.egg-info/dependency_links.txt
9
+ discord_py_darkself.egg-info/requires.txt
10
+ discord_py_darkself.egg-info/top_level.txt
11
+ discord_self/__init__.py
12
+ discord_self/__main__.py
13
+ discord_self/abc.py
14
+ discord_self/activity.py
15
+ discord_self/affinity.py
16
+ discord_self/application.py
17
+ discord_self/asset.py
18
+ discord_self/audit_logs.py
19
+ discord_self/automod.py
20
+ discord_self/backoff.py
21
+ discord_self/billing.py
22
+ discord_self/calls.py
23
+ discord_self/channel.py
24
+ discord_self/client.py
25
+ discord_self/collectible.py
26
+ discord_self/colour.py
27
+ discord_self/commands.py
28
+ discord_self/components.py
29
+ discord_self/connections.py
30
+ discord_self/context_managers.py
31
+ discord_self/directory.py
32
+ discord_self/embeds.py
33
+ discord_self/emoji.py
34
+ discord_self/entitlements.py
35
+ discord_self/enums.py
36
+ discord_self/errors.py
37
+ discord_self/experiment.py
38
+ discord_self/file.py
39
+ discord_self/flags.py
40
+ discord_self/gateway.py
41
+ discord_self/guild.py
42
+ discord_self/guild_premium.py
43
+ discord_self/http.py
44
+ discord_self/integrations.py
45
+ discord_self/interactions.py
46
+ discord_self/invite.py
47
+ discord_self/library.py
48
+ discord_self/member.py
49
+ discord_self/mentions.py
50
+ discord_self/message.py
51
+ discord_self/metadata.py
52
+ discord_self/mixins.py
53
+ discord_self/modal.py
54
+ discord_self/oauth2.py
55
+ discord_self/object.py
56
+ discord_self/oggparse.py
57
+ discord_self/onboarding.py
58
+ discord_self/opus.py
59
+ discord_self/partial_emoji.py
60
+ discord_self/payments.py
61
+ discord_self/permissions.py
62
+ discord_self/player.py
63
+ discord_self/poll.py
64
+ discord_self/primary_guild.py
65
+ discord_self/profile.py
66
+ discord_self/promotions.py
67
+ discord_self/py.typed
68
+ discord_self/raw_models.py
69
+ discord_self/reaction.py
70
+ discord_self/read_state.py
71
+ discord_self/relationship.py
72
+ discord_self/role.py
73
+ discord_self/scheduled_event.py
74
+ discord_self/settings.py
75
+ discord_self/stage_instance.py
76
+ discord_self/state.py
77
+ discord_self/sticker.py
78
+ discord_self/store.py
79
+ discord_self/subscriptions.py
80
+ discord_self/team.py
81
+ discord_self/template.py
82
+ discord_self/threads.py
83
+ discord_self/tracking.py
84
+ discord_self/tutorial.py
85
+ discord_self/user.py
86
+ discord_self/utils.py
87
+ discord_self/voice_client.py
88
+ discord_self/voice_state.py
89
+ discord_self/welcome_screen.py
90
+ discord_self/widget.py
91
+ discord_self/ext/commands/__init__.py
92
+ discord_self/ext/commands/_types.py
93
+ discord_self/ext/commands/bot.py
94
+ discord_self/ext/commands/cog.py
95
+ discord_self/ext/commands/context.py
96
+ discord_self/ext/commands/converter.py
97
+ discord_self/ext/commands/cooldowns.py
98
+ discord_self/ext/commands/core.py
99
+ discord_self/ext/commands/errors.py
100
+ discord_self/ext/commands/flags.py
101
+ discord_self/ext/commands/help.py
102
+ discord_self/ext/commands/parameters.py
103
+ discord_self/ext/commands/view.py
104
+ discord_self/ext/tasks/__init__.py
105
+ discord_self/types/__init__.py
106
+ discord_self/types/activity.py
107
+ discord_self/types/application.py
108
+ discord_self/types/audit_log.py
109
+ discord_self/types/automod.py
110
+ discord_self/types/billing.py
111
+ discord_self/types/channel.py
112
+ discord_self/types/command.py
113
+ discord_self/types/components.py
114
+ discord_self/types/directory.py
115
+ discord_self/types/embed.py
116
+ discord_self/types/emoji.py
117
+ discord_self/types/entitlements.py
118
+ discord_self/types/error.py
119
+ discord_self/types/experiment.py
120
+ discord_self/types/gateway.py
121
+ discord_self/types/guild.py
122
+ discord_self/types/hub.py
123
+ discord_self/types/integration.py
124
+ discord_self/types/interactions.py
125
+ discord_self/types/invite.py
126
+ discord_self/types/library.py
127
+ discord_self/types/member.py
128
+ discord_self/types/message.py
129
+ discord_self/types/oauth2.py
130
+ discord_self/types/onboarding.py
131
+ discord_self/types/payments.py
132
+ discord_self/types/poll.py
133
+ discord_self/types/profile.py
134
+ discord_self/types/promotions.py
135
+ discord_self/types/read_state.py
136
+ discord_self/types/role.py
137
+ discord_self/types/scheduled_event.py
138
+ discord_self/types/snowflake.py
139
+ discord_self/types/sticker.py
140
+ discord_self/types/store.py
141
+ discord_self/types/subscriptions.py
142
+ discord_self/types/team.py
143
+ discord_self/types/template.py
144
+ discord_self/types/threads.py
145
+ discord_self/types/user.py
146
+ discord_self/types/voice.py
147
+ discord_self/types/webhook.py
148
+ discord_self/types/welcome_screen.py
149
+ discord_self/types/widget.py
150
+ discord_self/webhook/__init__.py
151
+ discord_self/webhook/async_.py
152
+ discord_self/webhook/sync.py
153
+ tests/test_annotated_annotation.py
154
+ tests/test_colour.py
155
+ tests/test_embed.py
156
+ tests/test_ext_commands_description.py
157
+ tests/test_ext_tasks.py
158
+ tests/test_files.py
159
+ tests/test_info_retrieval.py
160
+ tests/test_permissions_all.py
161
+ tests/test_utils.py
@@ -0,0 +1,56 @@
1
+ aiohttp<4,>=3.7.4
2
+ curl_cffi<1,>=0.14.0
3
+ tzlocal<6,>=4.0.0
4
+ discord_protos<2.0.0
5
+
6
+ [:python_version >= "3.13"]
7
+ audioop-lts
8
+
9
+ [dev]
10
+ ruff==0.12
11
+ typing_extensions<5,>=4.3
12
+
13
+ [docs]
14
+ sphinx==4.4.0
15
+ sphinxcontrib_trio==1.1.2
16
+ sphinxcontrib-websupport==1.2.4
17
+ sphinxcontrib-applehelp==1.0.4
18
+ sphinxcontrib-devhelp==1.0.2
19
+ sphinxcontrib-htmlhelp==2.0.1
20
+ sphinxcontrib-jsmath==1.0.1
21
+ sphinxcontrib-qthelp==1.0.3
22
+ sphinxcontrib-serializinghtml==1.1.5
23
+ typing-extensions<5,>=4.3
24
+ sphinx-inline-tabs==2023.4.21
25
+
26
+ [docs:python_version >= "3.13"]
27
+ imghdr-lts==1.0.0
28
+
29
+ [speed]
30
+ orjson>=3.5.4
31
+ Brotli
32
+ mmh3>=2.5
33
+
34
+ [speed:python_version < "3.10"]
35
+ cchardet==2.1.7
36
+
37
+ [speed:python_version <= "3.13"]
38
+ zstandard>=0.23.0
39
+
40
+ [speed:sys_platform != "win32"]
41
+ aiodns>=1.1
42
+
43
+ [test]
44
+ coverage[toml]
45
+ pytest
46
+ pytest-asyncio
47
+ pytest-cov
48
+ pytest-mock
49
+ typing-extensions<5,>=4.3
50
+
51
+ [test:sys_platform == "win32"]
52
+ tzdata
53
+
54
+ [voice]
55
+ PyNaCl<1.6,>=1.5.0
56
+ davey==0.1.0