kroxy 0.1.0__py3-none-any.whl

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.
@@ -0,0 +1,147 @@
1
+ Metadata-Version: 2.4
2
+ Name: kroxy
3
+ Version: 0.1.0
4
+ Summary: A professional Discord utility library by @kroxy
5
+ Author-email: kroxy <kroxy@example.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://pypi.org/project/kroxy
8
+ Project-URL: Repository, https://github.com/kroxy/kroxy
9
+ Keywords: discord,bot,antinuke,giveaway,music,utility
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.9
12
+ Classifier: Programming Language :: Python :: 3.10
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Topic :: Communications :: Chat
17
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
18
+ Requires-Python: >=3.9
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: aiohttp>=3.8.0
22
+ Provides-Extra: dev
23
+ Requires-Dist: build; extra == "dev"
24
+ Requires-Dist: twine; extra == "dev"
25
+ Dynamic: license-file
26
+
27
+ # kroxy
28
+
29
+ A professional Discord utility library by **@kroxy**.
30
+
31
+ ## Install
32
+
33
+ ```bash
34
+ pip install kroxy
35
+ ```
36
+
37
+ ## Modules
38
+
39
+ ### `kroxy.discord`
40
+
41
+ | Module | Description |
42
+ |---|---|
43
+ | `api` | Async Discord REST API client |
44
+ | `commands` | Slash & prefix command builders |
45
+ | `utils` | Embed builder, mentions, timestamps, permissions |
46
+ | `antinuke` | Anti-nuke protection with rate-limit tracking |
47
+ | `checkers` | Permission & role checks with hierarchy validation |
48
+ | `giveaway` | Full-featured weighted giveaway system |
49
+ | `music` | Queue-based music player state manager |
50
+
51
+ ### `kroxy.website` *(coming soon)*
52
+
53
+ ---
54
+
55
+ ## Quick Examples
56
+
57
+ ### Anti-Nuke
58
+
59
+ ```python
60
+ from kroxy.discord import AntiNuke
61
+
62
+ antinuke = AntiNuke(whitelist=[OWNER_ID])
63
+
64
+ async def punish(action, user_id, guild):
65
+ print(f"NUKE DETECTED: {action} by {user_id}")
66
+
67
+ antinuke.on_trigger = punish
68
+ antinuke.punishment = "ban"
69
+
70
+ # In your event handler:
71
+ await antinuke.on_member_ban(user_id=some_user_id, guild=guild)
72
+ ```
73
+
74
+ ### Giveaway
75
+
76
+ ```python
77
+ from kroxy.discord.giveaway import GiveawayManager
78
+
79
+ manager = GiveawayManager()
80
+
81
+ async def on_giveaway_end(giveaway, winners):
82
+ print(f"Winners of {giveaway.prize}: {winners}")
83
+
84
+ manager.on_end = on_giveaway_end
85
+
86
+ giveaway = await manager.create(
87
+ prize="Discord Nitro",
88
+ host_id=123456789,
89
+ channel_id=987654321,
90
+ guild_id=111111111,
91
+ duration=3600, # 1 hour
92
+ winner_count=2,
93
+ )
94
+ ```
95
+
96
+ ### Embed Builder
97
+
98
+ ```python
99
+ from kroxy.discord import Utils
100
+
101
+ embed = Utils.build_embed(
102
+ title="Hello from kroxy!",
103
+ description="This is a professional embed.",
104
+ color=0x5865F2,
105
+ fields=[{"name": "Field", "value": "Value", "inline": True}],
106
+ footer="kroxy library",
107
+ timestamp=True,
108
+ )
109
+ ```
110
+
111
+ ### Slash Command
112
+
113
+ ```python
114
+ from kroxy.discord.commands import SlashCommand, Option
115
+
116
+ @SlashCommand.decorator(
117
+ name="ping",
118
+ description="Check bot latency",
119
+ )
120
+ async def ping(interaction):
121
+ await interaction.response.send_message("Pong!")
122
+ ```
123
+
124
+ ### Music Player
125
+
126
+ ```python
127
+ from kroxy.discord.music import MusicPlayerManager, Track
128
+
129
+ manager = MusicPlayerManager()
130
+ player = manager.get_or_create(guild_id=111111111, channel_id=222222222)
131
+
132
+ track = Track(
133
+ title="My Song",
134
+ url="https://youtube.com/...",
135
+ stream_url="https://...",
136
+ duration=240,
137
+ requester_id=123456789,
138
+ )
139
+ player.queue.add(track)
140
+ await player.play_next()
141
+ ```
142
+
143
+ ---
144
+
145
+ ## License
146
+
147
+ MIT © kroxy
@@ -0,0 +1,15 @@
1
+ kroxy/__init__.py,sha256=38QdIhF228Lwdq5aVFYapqTNSZM_eYi2cOVSyp_4k8M,221
2
+ kroxy/discord/__init__.py,sha256=dIR8xIWp2cBABAWwmC6iHM2I9UHerocXJSvNPoKL2wo,541
3
+ kroxy/discord/antinuke.py,sha256=1Q7huLfO_sCCMfpqGCOyZlv1a_HPoz_5YrBioxV4Y0I,5224
4
+ kroxy/discord/api.py,sha256=2zwc_YG-MZaGmx6r3PkXu5XNjW6-1lck2JdRdksw-Wg,5277
5
+ kroxy/discord/checkers.py,sha256=faLW4pcN-pY9aIXNc4BRgspCtJrqWwAg4dn-VYenZDI,6721
6
+ kroxy/discord/commands.py,sha256=lxIZwMULLRsUUjVQYVVCoLoQ_OHI9o8wff1eD_Uotow,6144
7
+ kroxy/discord/giveaway.py,sha256=U4rmb3pRf3Aa0xqr-wg0IyOwK3n1jjatVysn5tUQjdQ,7149
8
+ kroxy/discord/music.py,sha256=KA8Dwfp6bHgBNEIuYvd9bM8-p7eOwaHB91IN_5zRJD0,7280
9
+ kroxy/discord/utils.py,sha256=zQuSJDNnlf5jLgprCi0sszvEnu9lSQIH3C60jrQvmxo,6872
10
+ kroxy/website/__init__.py,sha256=msXmOfRoX3n3e7wfuVXBpTmpIxQeEHqFA0dJ1iUt7e8,71
11
+ kroxy-0.1.0.dist-info/licenses/LICENSE,sha256=X1rPvxtO8DUCyBvDRqxWeZuylz2oIF0LW-iDEsiitqg,1062
12
+ kroxy-0.1.0.dist-info/METADATA,sha256=P1q5rBRzpcurwGYCC96O-uV4XllD-WCBPLKQ1bsjxsE,3372
13
+ kroxy-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
14
+ kroxy-0.1.0.dist-info/top_level.txt,sha256=qRxK8_vKmSk29ULL149K7OzjOyuiyMEXmWKEUJghmJE,6
15
+ kroxy-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 kroxy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ 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 FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ kroxy