nextbotclow 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 (139) hide show
  1. nextbotclow-1.0.0/CHANGELOG.md +17 -0
  2. nextbotclow-1.0.0/LICENSE +21 -0
  3. nextbotclow-1.0.0/PKG-INFO +340 -0
  4. nextbotclow-1.0.0/README.md +251 -0
  5. nextbotclow-1.0.0/docker-compose.yml +22 -0
  6. nextbotclow-1.0.0/docs/adding-a-command.md +32 -0
  7. nextbotclow-1.0.0/docs/adding-a-module.md +8 -0
  8. nextbotclow-1.0.0/docs/antinuke-internals.md +14 -0
  9. nextbotclow-1.0.0/docs/architecture.md +14 -0
  10. nextbotclow-1.0.0/docs/automod-wordlists.md +36 -0
  11. nextbotclow-1.0.0/docs/database-backends.md +35 -0
  12. nextbotclow-1.0.0/docs/ui-kit.md +18 -0
  13. nextbotclow-1.0.0/lavalink/application.yml +94 -0
  14. nextbotclow-1.0.0/nextbotclow/__init__.py +42 -0
  15. nextbotclow-1.0.0/nextbotclow/__main__.py +8 -0
  16. nextbotclow-1.0.0/nextbotclow/assets/README.txt +7 -0
  17. nextbotclow-1.0.0/nextbotclow/assets/wordlists/allowlist.json +84 -0
  18. nextbotclow-1.0.0/nextbotclow/assets/wordlists/en_default.json +61 -0
  19. nextbotclow-1.0.0/nextbotclow/assets/wordlists/hinglish.json +27 -0
  20. nextbotclow-1.0.0/nextbotclow/assets/wordlists/scam_domains.json +63 -0
  21. nextbotclow-1.0.0/nextbotclow/cli.py +487 -0
  22. nextbotclow-1.0.0/nextbotclow/config/__init__.py +12 -0
  23. nextbotclow-1.0.0/nextbotclow/config/loader.py +241 -0
  24. nextbotclow-1.0.0/nextbotclow/config/schema.py +696 -0
  25. nextbotclow-1.0.0/nextbotclow/core/__init__.py +28 -0
  26. nextbotclow-1.0.0/nextbotclow/core/bot.py +420 -0
  27. nextbotclow-1.0.0/nextbotclow/core/checks.py +123 -0
  28. nextbotclow-1.0.0/nextbotclow/core/commands.py +157 -0
  29. nextbotclow-1.0.0/nextbotclow/core/errors.py +205 -0
  30. nextbotclow-1.0.0/nextbotclow/core/identity.py +179 -0
  31. nextbotclow-1.0.0/nextbotclow/core/intents.py +363 -0
  32. nextbotclow-1.0.0/nextbotclow/core/logging.py +146 -0
  33. nextbotclow-1.0.0/nextbotclow/core/noprefix.py +64 -0
  34. nextbotclow-1.0.0/nextbotclow/core/registry.py +992 -0
  35. nextbotclow-1.0.0/nextbotclow/core/runner.py +110 -0
  36. nextbotclow-1.0.0/nextbotclow/db/__init__.py +20 -0
  37. nextbotclow-1.0.0/nextbotclow/db/adapters/__init__.py +15 -0
  38. nextbotclow-1.0.0/nextbotclow/db/adapters/mongodb_adapter.py +236 -0
  39. nextbotclow-1.0.0/nextbotclow/db/adapters/mysql_adapter.py +298 -0
  40. nextbotclow-1.0.0/nextbotclow/db/adapters/postgres_adapter.py +287 -0
  41. nextbotclow-1.0.0/nextbotclow/db/adapters/redis_adapter.py +263 -0
  42. nextbotclow-1.0.0/nextbotclow/db/adapters/resilient.py +328 -0
  43. nextbotclow-1.0.0/nextbotclow/db/adapters/sqlite_adapter.py +346 -0
  44. nextbotclow-1.0.0/nextbotclow/db/base.py +155 -0
  45. nextbotclow-1.0.0/nextbotclow/db/cache.py +130 -0
  46. nextbotclow-1.0.0/nextbotclow/db/engine.py +160 -0
  47. nextbotclow-1.0.0/nextbotclow/db/factory.py +78 -0
  48. nextbotclow-1.0.0/nextbotclow/db/migrations/__init__.py +25 -0
  49. nextbotclow-1.0.0/nextbotclow/db/migrations/v001_initial.py +601 -0
  50. nextbotclow-1.0.0/nextbotclow/db/repos/__init__.py +33 -0
  51. nextbotclow-1.0.0/nextbotclow/db/repos/antinuke_repo.py +116 -0
  52. nextbotclow-1.0.0/nextbotclow/db/repos/automod_repo.py +191 -0
  53. nextbotclow-1.0.0/nextbotclow/db/repos/base.py +41 -0
  54. nextbotclow-1.0.0/nextbotclow/db/repos/blacklist_repo.py +46 -0
  55. nextbotclow-1.0.0/nextbotclow/db/repos/extras_repo.py +57 -0
  56. nextbotclow-1.0.0/nextbotclow/db/repos/feature_repo.py +78 -0
  57. nextbotclow-1.0.0/nextbotclow/db/repos/guild_repo.py +136 -0
  58. nextbotclow-1.0.0/nextbotclow/db/repos/identity_repo.py +51 -0
  59. nextbotclow-1.0.0/nextbotclow/db/repos/moderation_repo.py +97 -0
  60. nextbotclow-1.0.0/nextbotclow/db/repos/music_repo.py +39 -0
  61. nextbotclow-1.0.0/nextbotclow/db/repos/noprefix_repo.py +45 -0
  62. nextbotclow-1.0.0/nextbotclow/db/repos/utility_repo.py +185 -0
  63. nextbotclow-1.0.0/nextbotclow/db/repos/vanity_repo.py +51 -0
  64. nextbotclow-1.0.0/nextbotclow/db/repos/verify_repo.py +80 -0
  65. nextbotclow-1.0.0/nextbotclow/db/sql_schema.py +728 -0
  66. nextbotclow-1.0.0/nextbotclow/db/transfer.py +56 -0
  67. nextbotclow-1.0.0/nextbotclow/modules/__init__.py +0 -0
  68. nextbotclow-1.0.0/nextbotclow/modules/antinuke/__init__.py +19 -0
  69. nextbotclow-1.0.0/nextbotclow/modules/antinuke/cog.py +753 -0
  70. nextbotclow-1.0.0/nextbotclow/modules/antinuke/engine.py +183 -0
  71. nextbotclow-1.0.0/nextbotclow/modules/antinuke/recovery.py +202 -0
  72. nextbotclow-1.0.0/nextbotclow/modules/antinuke/views.py +129 -0
  73. nextbotclow-1.0.0/nextbotclow/modules/automod/__init__.py +44 -0
  74. nextbotclow-1.0.0/nextbotclow/modules/automod/antilink.py +276 -0
  75. nextbotclow-1.0.0/nextbotclow/modules/automod/cog.py +820 -0
  76. nextbotclow-1.0.0/nextbotclow/modules/automod/engine.py +742 -0
  77. nextbotclow-1.0.0/nextbotclow/modules/automod/matcher.py +272 -0
  78. nextbotclow-1.0.0/nextbotclow/modules/automod/native.py +104 -0
  79. nextbotclow-1.0.0/nextbotclow/modules/automod/normalizer.py +139 -0
  80. nextbotclow-1.0.0/nextbotclow/modules/automod/views.py +153 -0
  81. nextbotclow-1.0.0/nextbotclow/modules/community/__init__.py +1 -0
  82. nextbotclow-1.0.0/nextbotclow/modules/community/cog.py +714 -0
  83. nextbotclow-1.0.0/nextbotclow/modules/economy/__init__.py +1 -0
  84. nextbotclow-1.0.0/nextbotclow/modules/economy/cog.py +361 -0
  85. nextbotclow-1.0.0/nextbotclow/modules/extras/__init__.py +0 -0
  86. nextbotclow-1.0.0/nextbotclow/modules/extras/cog.py +820 -0
  87. nextbotclow-1.0.0/nextbotclow/modules/extras/views.py +115 -0
  88. nextbotclow-1.0.0/nextbotclow/modules/fun/__init__.py +1 -0
  89. nextbotclow-1.0.0/nextbotclow/modules/fun/cog.py +541 -0
  90. nextbotclow-1.0.0/nextbotclow/modules/giveaways/__init__.py +1 -0
  91. nextbotclow-1.0.0/nextbotclow/modules/giveaways/cog.py +241 -0
  92. nextbotclow-1.0.0/nextbotclow/modules/help/__init__.py +0 -0
  93. nextbotclow-1.0.0/nextbotclow/modules/help/cog.py +608 -0
  94. nextbotclow-1.0.0/nextbotclow/modules/leveling/__init__.py +1 -0
  95. nextbotclow-1.0.0/nextbotclow/modules/leveling/cog.py +247 -0
  96. nextbotclow-1.0.0/nextbotclow/modules/moderation/__init__.py +3 -0
  97. nextbotclow-1.0.0/nextbotclow/modules/moderation/cog.py +1266 -0
  98. nextbotclow-1.0.0/nextbotclow/modules/moderation/views.py +33 -0
  99. nextbotclow-1.0.0/nextbotclow/modules/music/__init__.py +20 -0
  100. nextbotclow-1.0.0/nextbotclow/modules/music/cog.py +827 -0
  101. nextbotclow-1.0.0/nextbotclow/modules/music/filters.py +66 -0
  102. nextbotclow-1.0.0/nextbotclow/modules/music/providers.py +103 -0
  103. nextbotclow-1.0.0/nextbotclow/modules/music/views.py +186 -0
  104. nextbotclow-1.0.0/nextbotclow/modules/owner/__init__.py +0 -0
  105. nextbotclow-1.0.0/nextbotclow/modules/owner/cog.py +710 -0
  106. nextbotclow-1.0.0/nextbotclow/modules/owner/views.py +82 -0
  107. nextbotclow-1.0.0/nextbotclow/modules/social/__init__.py +1 -0
  108. nextbotclow-1.0.0/nextbotclow/modules/social/cog.py +344 -0
  109. nextbotclow-1.0.0/nextbotclow/modules/tickets/__init__.py +1 -0
  110. nextbotclow-1.0.0/nextbotclow/modules/tickets/cog.py +298 -0
  111. nextbotclow-1.0.0/nextbotclow/modules/utility/__init__.py +3 -0
  112. nextbotclow-1.0.0/nextbotclow/modules/utility/cog.py +1606 -0
  113. nextbotclow-1.0.0/nextbotclow/modules/utility/views.py +257 -0
  114. nextbotclow-1.0.0/nextbotclow/modules/vanity/__init__.py +0 -0
  115. nextbotclow-1.0.0/nextbotclow/modules/vanity/cog.py +254 -0
  116. nextbotclow-1.0.0/nextbotclow/modules/vanity/views.py +59 -0
  117. nextbotclow-1.0.0/nextbotclow/modules/verify/__init__.py +3 -0
  118. nextbotclow-1.0.0/nextbotclow/modules/verify/captcha.py +145 -0
  119. nextbotclow-1.0.0/nextbotclow/modules/verify/cog.py +515 -0
  120. nextbotclow-1.0.0/nextbotclow/modules/verify/views.py +210 -0
  121. nextbotclow-1.0.0/nextbotclow/py.typed +0 -0
  122. nextbotclow-1.0.0/nextbotclow/ui/__init__.py +27 -0
  123. nextbotclow-1.0.0/nextbotclow/ui/kit.py +620 -0
  124. nextbotclow-1.0.0/nextbotclow/ui/limits.py +169 -0
  125. nextbotclow-1.0.0/nextbotclow/ui/symbols.py +90 -0
  126. nextbotclow-1.0.0/pyproject.toml +129 -0
  127. nextbotclow-1.0.0/tests/__init__.py +0 -0
  128. nextbotclow-1.0.0/tests/test_antinuke_thresholds.py +78 -0
  129. nextbotclow-1.0.0/tests/test_automod_advanced.py +187 -0
  130. nextbotclow-1.0.0/tests/test_automod_rules.py +140 -0
  131. nextbotclow-1.0.0/tests/test_bot_name.py +48 -0
  132. nextbotclow-1.0.0/tests/test_commands_and_colour.py +98 -0
  133. nextbotclow-1.0.0/tests/test_db_backends.py +336 -0
  134. nextbotclow-1.0.0/tests/test_feature_registry.py +232 -0
  135. nextbotclow-1.0.0/tests/test_intent_manager.py +114 -0
  136. nextbotclow-1.0.0/tests/test_migrations.py +136 -0
  137. nextbotclow-1.0.0/tests/test_noprefix.py +41 -0
  138. nextbotclow-1.0.0/tests/test_settings_loader.py +68 -0
  139. nextbotclow-1.0.0/tests/test_ui_limits.py +91 -0
@@ -0,0 +1,17 @@
1
+ # Changelog
2
+
3
+ All notable changes to NextBotClow will be documented in this file.
4
+
5
+ ## [1.0.0] - 2026-12-06
6
+
7
+ ### Added
8
+ - Initial production release of `nextbotclow` (NextBotClow).
9
+ - Single-import public API (`settings`, `run`, `run_async`, `__version__`) with code > env > file > defaults configuration precedence.
10
+ - CLI commands: `nextbotclow init`, `nextbotclow run`, `nextbotclow doctor`, `nextbotclow version`.
11
+ - Monochrome, emoji-free Components V2 UI kit (`LayoutView`, `Container`, `TextDisplay`, `Section`, `Thumbnail`, `Separator`, `MediaGallery`, `ActionRow`) with automatic limit measuring and pagination.
12
+ - Unified command system supporting slash commands, prefix commands, mention prefix, and safe no-prefix allowlist.
13
+ - Automatic developer identity resolution and 24-hour cached background refresh for `dev.model` and `dev.core` from Discord user ID `1032944901412880394`.
14
+ - Async SQLite database engine with WAL mode, versioned migrations, and repository pattern.
15
+ - Complete modules: Music (Lavalink v4 via Wavelink 3.5+), Utility, Moderation, Automod, Verify, Vanity, Antinuke, Extras, Help, and Owner.
16
+ - Lavalink v4 `application.yml` and `docker-compose.yml` templates.
17
+ - Unit test suite and architecture documentation.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 NextBotClow Contributors
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,340 @@
1
+ Metadata-Version: 2.5
2
+ Name: nextbotclow
3
+ Version: 1.0.0
4
+ Summary: NextBotClow — A premium, monochrome Components V2 Discord bot model with music, advanced automod, verify, vanity, antinuke, multi-database backends, and utilities.
5
+ Project-URL: Homepage, https://github.com/nextbotclow/nextbotclow
6
+ Project-URL: Documentation, https://github.com/nextbotclow/nextbotclow#readme
7
+ Project-URL: Repository, https://github.com/nextbotclow/nextbotclow
8
+ Project-URL: Issues, https://github.com/nextbotclow/nextbotclow/issues
9
+ Author: NextBotClow Contributors
10
+ License: MIT License
11
+
12
+ Copyright (c) 2026 NextBotClow Contributors
13
+
14
+ Permission is hereby granted, free of charge, to any person obtaining a copy
15
+ of this software and associated documentation files (the "Software"), to deal
16
+ in the Software without restriction, including without limitation the rights
17
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
18
+ copies of the Software, and to permit persons to whom the Software is
19
+ furnished to do so, subject to the following conditions:
20
+
21
+ The above copyright notice and this permission notice shall be included in all
22
+ copies or substantial portions of the Software.
23
+
24
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
25
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
27
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
29
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30
+ SOFTWARE.
31
+ License-File: LICENSE
32
+ Keywords: antinuke,automod,components-v2,discord,discord-bot,discord.py,lavalink,wavelink
33
+ Classifier: Development Status :: 5 - Production/Stable
34
+ Classifier: Framework :: AsyncIO
35
+ Classifier: Intended Audience :: Developers
36
+ Classifier: License :: OSI Approved :: MIT License
37
+ Classifier: Operating System :: OS Independent
38
+ Classifier: Programming Language :: Python :: 3
39
+ Classifier: Programming Language :: Python :: 3.10
40
+ Classifier: Programming Language :: Python :: 3.11
41
+ Classifier: Programming Language :: Python :: 3.12
42
+ Classifier: Programming Language :: Python :: 3.13
43
+ Classifier: Topic :: Communications :: Chat
44
+ Classifier: Typing :: Typed
45
+ Requires-Python: >=3.10
46
+ Requires-Dist: aiosqlite<1.0,>=0.22.1
47
+ Requires-Dist: discord-py<3.0,>=2.7.1
48
+ Requires-Dist: pydantic<3.0,>=2.14.4
49
+ Requires-Dist: tomli>=2.0.0; python_version < '3.11'
50
+ Provides-Extra: all-db
51
+ Requires-Dist: aiomysql<1.0,>=0.32.0; extra == 'all-db'
52
+ Requires-Dist: asyncpg<1.0,>=0.32.0; extra == 'all-db'
53
+ Requires-Dist: pymongo<5.0,>=4.20.2; extra == 'all-db'
54
+ Requires-Dist: redis<9.0,>=8.2.0; extra == 'all-db'
55
+ Provides-Extra: automod
56
+ Requires-Dist: publicsuffix2>=2.20191221; extra == 'automod'
57
+ Provides-Extra: captcha
58
+ Requires-Dist: pillow<14.0,>=13.0.0; extra == 'captcha'
59
+ Provides-Extra: dev
60
+ Requires-Dist: aiomysql<1.0,>=0.3.2; extra == 'dev'
61
+ Requires-Dist: asyncpg<1.0,>=0.32.0; extra == 'dev'
62
+ Requires-Dist: build>=1.2.0; extra == 'dev'
63
+ Requires-Dist: mypy>=1.14.0; extra == 'dev'
64
+ Requires-Dist: pillow<14.0,>=13.0.0; extra == 'dev'
65
+ Requires-Dist: publicsuffix2>=2.20191221; extra == 'dev'
66
+ Requires-Dist: pymongo<5.0,>=4.20.2; extra == 'dev'
67
+ Requires-Dist: pytest-asyncio>=0.24.0; extra == 'dev'
68
+ Requires-Dist: pytest>=8.3.0; extra == 'dev'
69
+ Requires-Dist: redis<9.0,>=8.2.0; extra == 'dev'
70
+ Requires-Dist: ruff>=0.9.0; extra == 'dev'
71
+ Requires-Dist: twine>=6.0.0; extra == 'dev'
72
+ Requires-Dist: wavelink<4.0,>=3.5.2; extra == 'dev'
73
+ Provides-Extra: full
74
+ Requires-Dist: pillow<14.0,>=13.0.0; extra == 'full'
75
+ Requires-Dist: publicsuffix2>=2.20191221; extra == 'full'
76
+ Requires-Dist: redis<9.0,>=8.2.0; extra == 'full'
77
+ Requires-Dist: wavelink<4.0,>=3.5.2; extra == 'full'
78
+ Provides-Extra: mongodb
79
+ Requires-Dist: pymongo<5.0,>=4.20.2; extra == 'mongodb'
80
+ Provides-Extra: music
81
+ Requires-Dist: wavelink<4.0,>=3.5.2; extra == 'music'
82
+ Provides-Extra: mysql
83
+ Requires-Dist: aiomysql<1.0,>=0.3.2; extra == 'mysql'
84
+ Provides-Extra: postgres
85
+ Requires-Dist: asyncpg<1.0,>=0.32.0; extra == 'postgres'
86
+ Provides-Extra: redis
87
+ Requires-Dist: redis<9.0,>=8.2.0; extra == 'redis'
88
+ Description-Content-Type: text/markdown
89
+
90
+ # NextBotClow
91
+
92
+ ![Python 3.10+](https://img.shields.io/badge/python-3.10%2B-111111?style=flat-square)
93
+ ![discord.py 2.7.1+](https://img.shields.io/badge/discord.py-2.7.1%2B-111111?style=flat-square)
94
+ ![Lavalink v4](https://img.shields.io/badge/lavalink-v4-111111?style=flat-square)
95
+ ![License MIT](https://img.shields.io/badge/license-MIT-111111?style=flat-square)
96
+
97
+ NextBotClow is a pip-installable, production-ready Discord bot model. Install the package, set a few values on `nextbotclow.settings`, call `nextbotclow.run()`, and a full-featured, monochrome Components V2 Discord bot comes online with zero boilerplate.
98
+
99
+ ---
100
+
101
+ ## Quick Start
102
+
103
+ ```bash
104
+ pip install "nextbotclow[full]"
105
+ ```
106
+
107
+ ```python
108
+ import nextbotclow as model
109
+
110
+ model.settings.token = "YOUR_BOT_TOKEN"
111
+ model.settings.dev.user = "MyName"
112
+ model.settings.prefix = "!"
113
+ model.settings.owners = [123456789012345678]
114
+
115
+ model.run()
116
+ ```
117
+
118
+ Or use the CLI:
119
+
120
+ ```bash
121
+ nextbotclow init
122
+ nextbotclow doctor
123
+ nextbotclow run
124
+ ```
125
+
126
+ ---
127
+
128
+ ## Feature Matrix
129
+
130
+ | Module | Capabilities | Interactive UI |
131
+ | :--- | :--- | :--- |
132
+ | Core & Commands | Slash + Prefix + safe No-Prefix, global/guild blacklist, per-channel command toggles, cooldowns, Error IDs | Help category select browser |
133
+ | Identity | Auto-fetches `dev.model` and `dev.core` from Discord ID `1032944901412880394` with 24h SQLite cache and safe fallback | Shown in `about` and footers |
134
+ | UI Kit | 100% Components V2 (`LayoutView`, single colour-free `Container`, `TextDisplay`, `Section`, `MediaGallery`, `ActionRow`), zero emoji | Auto-pagination and limit guards |
135
+ | Music | Lavalink v4 via Wavelink 3.5+, multi-node failover, YouTube/Spotify/SoundCloud/Apple/Deezer/URL, filters, lyrics, playlists | Live Now Playing panel & search menu |
136
+ | Utility | Ping, stats, uptime, user/server/role/channel/emoji-text info, snipe, editsnipe, AFK, persistent reminders, timers, poll, suggest, calc, color, snowflake | Poll buttons, Suggest votes, Settings dashboard |
137
+ | Moderation | Ban, tempban, softban, unban, kick, timeout, untimeout, warn, warnings, clearwarns, purge, slowmode, lock/unlock, hide/unhide, nick, role add/remove, cases | Case modlog panels |
138
+ | Automod | Anti-spam, duplicate, link, invite, caps, mass mention, emoji spam, zalgo, bad words (wildcards + NFKC), attachment flood, anti-raid, strike escalation, dry-run | Rule selector and toggles panel |
139
+ | Verify | Button, text captcha, local PNG image captcha, question gate, account-age gate, DM mode, auto-kick unverified, persistent panels | Persistent Verify button + modal |
140
+ | Vanity | Status keyword role reward (`presences` intent checked) and Vanity URL audit monitor | Vanity toggle panel |
141
+ | Antinuke | 20 monitored triggers, audit-log deduplication, per-guild serialization lock, 4 whitelist tiers, auto-recovery, panic mode & restore | Antinuke setup & health dashboard |
142
+ | Extras | Event logging, welcome/leave panels, autorole, reaction-free role panels (buttons/select) | Persistent role panels |
143
+ | Owner | Reload modules, safe diagnostics, shutdown, blacklist, no-prefix allowlist, guilds list, broadcast | Confirm dialogs |
144
+
145
+ ---
146
+
147
+ ## Settings Reference
148
+
149
+ Priority order: **Python code assignment > Environment variables (`NEXTBOTCLOW_*`) > `nextbotclow.toml` / `.env` > Defaults**.
150
+
151
+ | Setting | Default | Description |
152
+ | :--- | :--- | :--- |
153
+ | `settings.token` | `""` | Discord bot token (required) |
154
+ | `settings.prefix` | `"!"` | Default command prefix (1-10 chars) |
155
+ | `settings.owners` | `[]` | List of bot owner Discord user IDs |
156
+ | `settings.dev.user` | `"Developer"` | Bot operator display name |
157
+ | `settings.dev.model` | `"Unknown"` (auto) | Auto-fetched from Discord ID `1032944901412880394` |
158
+ | `settings.dev.core` | `"Unknown"` (auto) | Auto-fetched from Discord ID `1032944901412880394` |
159
+ | `settings.modes.slash` | `True` | Enable slash command tree sync |
160
+ | `settings.modes.prefix` | `True` | Enable prefix commands |
161
+ | `settings.modes.no_prefix` | `True` | Enable safe no-prefix allowlist |
162
+ | `settings.modes.mention_prefix` | `True` | Allow `@Bot command` prefix |
163
+ | `settings.categories.*` | All `True` | Global toggle per category (`music`, `utility`, `moderation`, `automod`, `verify`, `vanity`, `antinuke`, `extras`) |
164
+ | `settings.commands.disabled` | `[]` | List of disabled commands or `"category.group.command"` paths |
165
+ | `settings.commands.enabled_only` | `[]` | Optional whitelist of commands allowed to run (plus core protected commands) |
166
+ | `settings.commands.aliases_disabled` | `[]` | Disable specific command aliases without hiding the command |
167
+ | `settings.intents.*` | `preset="auto"` | All gateway intents + `preset` (`auto`, `minimal`, `standard`, `full`, `custom`) |
168
+ | `settings.sharding.enabled` | `False` | Enable AutoShardedBot multi-shard mode |
169
+ | `settings.sharding.auto` | `True` | Automatic shard count from Discord gateway |
170
+ | `settings.sharding.shard_count` | `None` | Manual shard count when `auto=False` |
171
+ | `settings.database.type` | `"sqlite"` | Backend: `sqlite`, `postgres`, `mysql`, `mongodb`, or `redis` |
172
+ | `settings.database.url` | `None` | Connection URL for `postgres`, `mysql`, `mongodb`, `redis` |
173
+ | `settings.database.path` | User data dir | SQLite database file path |
174
+ | `settings.database.pool_size` | `10` | Connection pool max size |
175
+ | `settings.database.timeout` | `10` | Command timeout in seconds |
176
+ | `settings.database.ssl` | `False` | Require TLS/SSL for remote database connections |
177
+ | `settings.cache.type` | `"memory"` | Cache layer: `memory` or `redis` |
178
+ | `settings.cache.url` | `None` | Redis cache URL when `cache.type = "redis"` |
179
+ | `settings.cache.ttl` | `300` | Default cache TTL in seconds |
180
+ | `settings.lavalink.nodes` | 1 local node | List of `{host, port, password, secure, name}` |
181
+ | `settings.lavalink.default_volume` | `80` | Initial player volume (0-200) |
182
+ | `settings.music.*` | `enabled=True` | `max_queue`, `stay_24_7`, `autoplay`, `vote_skip`, `dj_role`, `empty_timeout_seconds` |
183
+ | `settings.automod.*` | `enabled=True` | Default thresholds for new servers |
184
+ | `settings.antinuke.*` | `enabled=True` | Module switch and default antinuke thresholds |
185
+ | `settings.verify.*` | `enabled=True` | Default verification method and retry/age limits |
186
+ | `settings.vanity.*` | `enabled=True` | Default vanity status and URL monitor switches |
187
+ | `settings.ui.*` | Colour-free V2 | `footer_text`, `separator_style`, `symbol_set`, `colour_free=True` |
188
+ | `settings.logging.*` | `level="INFO"` | `level`, `file`, `webhook` |
189
+ | `settings.status.*` | `online` | `text`, `activity_type`, `status`, `rotating`, `interval_seconds` |
190
+ | `settings.cooldowns.*` | `1 / 3.0s` | `default_rate`, `default_per`, `bucket` |
191
+ | `settings.support.url` | `""` | Support server invite URL |
192
+ | `settings.invite.url` | Auto-generated | Custom bot invite URL override |
193
+
194
+ ---
195
+
196
+ ## Command List
197
+
198
+ ### Help & Server Module Control
199
+ - `help [command]` — Interactive category browser or detailed command inspection
200
+ - `about` (`info`, `credits`) — Protected core info & developer credits panel
201
+ - `modules`, `module <enable|disable> <category> [channel] [role]`, `command <enable|disable> <name> [channel] [role]` — Per-server feature control within developer ceiling
202
+
203
+ ### Music
204
+ - `join`, `leave`, `play <query>`, `search <query>`, `playnext <query>`, `queue`, `nowplaying`, `pause`, `resume`, `skip`, `previous`, `stop`, `seek <pos>`, `volume <0-150>`, `loop <off|track|queue>`, `shuffle`, `remove <index>`, `move <from> <to>`, `clearqueue`, `jump <index>`, `autoplay`, `247`, `filter <preset>`, `lyrics [query]`, `node`, `playlist <save|load|list|delete>`
205
+
206
+ ### Utility
207
+ - `ping`, `stats`, `uptime`, `invite`, `support`, `userinfo`, `serverinfo`, `avatar`, `banner`, `roleinfo`, `channelinfo`, `emojis`, `snipe`, `editsnipe`, `afk`, `remind`, `timer`, `poll`, `suggest`, `calc`, `color`, `snowflake`, `prefix`, `settings`, `cmdtoggle`, `cmdstats`
208
+
209
+ ### Moderation
210
+ - `ban`, `tempban`, `softban`, `unban`, `kick`, `timeout`, `untimeout`, `warn`, `warnings`, `clearwarns`, `purge`, `slowmode`, `lock`, `unlock`, `hide`, `unhide`, `nick`, `role <add|remove>`, `case`, `modlogs`, `modlogchannel`
211
+
212
+ ### Automod
213
+ - `automod`, `automod panel`, `automod preset <off|light|standard|strict|maximum>`, `automod rule <name> <enabled> [action] [threshold]`, `automod words <action> [value]`, `automod links <mode|allow|block|preset> [value]`, `automod test <text>`, `automod strikes <member> [reset]`, `automod logs`, `automod export`, `automod import <json>`, `automod sync_native`, `automod whitelist`, `automod log`
214
+
215
+ ### Verify
216
+ - `verify`, `verify setup`, `verify panel`, `verify question`, `verify age`, `verify log`
217
+
218
+ ### Vanity
219
+ - `vanity`, `vanity panel`, `vanity setup`, `vanity thank`, `vanity log`, `vanity url`
220
+
221
+ ### Antinuke
222
+ - `antinuke`, `antinuke setup`, `antinuke status`, `antinuke whitelist <add|remove|list>`, `antinuke log`, `antinuke panic`, `antinuke restore`, `antinuke cases`
223
+
224
+ ### Extras
225
+ - `eventlog`, `autorole`, `welcome <set|disable>`, `leave <set|disable>`, `rolepanel <buttons|select>`
226
+
227
+ ### Owner
228
+ - `reload`, `shutdown`, `diag`, `intents`, `wordlist <info|update>`, `noprefix <add|remove|list>`, `blacklist <add|remove|list>`, `guilds`, `broadcast`
229
+
230
+ ---
231
+
232
+ ## Feature & Category Control
233
+
234
+ Disable entire categories or single commands/subcommands globally:
235
+
236
+ ```python
237
+ import nextbotclow as model
238
+
239
+ model.settings.categories.vanity = False
240
+ model.settings.commands.disabled = ["lyrics", "snipe", "music.filters.8d"]
241
+ model.settings.commands.aliases_disabled = ["p"]
242
+ ```
243
+
244
+ Or via environment variables / TOML:
245
+ - `NEXTBOTCLOW_CATEGORIES_VANITY=false`
246
+ - `[categories]` and `[commands]` tables in `nextbotclow.toml`
247
+ - Inspect status anytime with `nextbotclow features` or `nextbotclow doctor`.
248
+
249
+ **Notes & Platform Limitations**:
250
+ - Core categories (`help`, `owner`) and `about`/`credits` are protected and cannot be disabled.
251
+ - Globally disabled categories are never loaded, migrated, synced to Discord, or shown anywhere.
252
+ - Server admins can further disable globally-enabled modules/commands per server, channel, or role (`modules`, `module`, `command`), but cannot override a developer-disabled ceiling.
253
+ - Because Discord's API does not hide global slash commands on a per-guild basis, commands disabled per-guild remain in the global slash picker for that server and reply silently-ephemeral with a neutral "Not Available" panel when invoked.
254
+
255
+ ---
256
+
257
+ ## Lavalink v4 Setup
258
+
259
+ NextBotClow uses **Lavalink v4** for audio playback.
260
+
261
+ ### Option A: Docker Compose (Recommended)
262
+
263
+ A ready-to-use `docker-compose.yml` and `lavalink/application.yml` are included:
264
+
265
+ ```bash
266
+ docker compose up -d
267
+ ```
268
+
269
+ ### Option B: Standalone JAR
270
+
271
+ 1. Install Java 17 or Java 21.
272
+ 2. Download the latest `Lavalink.jar` (v4.x) from `https://github.com/lavalink-devs/Lavalink/releases`.
273
+ 3. Copy `lavalink/application.yml` beside `Lavalink.jar`.
274
+ 4. Run:
275
+
276
+ ```bash
277
+ java -jar Lavalink.jar
278
+ ```
279
+
280
+ ---
281
+
282
+ ## Discord Developer Portal Checklist
283
+
284
+ 1. Open the Discord Developer Portal and select your application.
285
+ 2. Under **Bot -> Privileged Gateway Intents**:
286
+ - **Server Members Intent**: Turn ON (required by Verify, Moderation, Antinuke, Vanity, Extras).
287
+ - **Message Content Intent**: Turn ON (required by Prefix commands, No-Prefix commands, Automod).
288
+ - **Presence Intent**: Turn ON only if using Vanity custom-status role rewards (`settings.intents.presences = True`).
289
+ 3. Under **OAuth2 -> URL Generator**:
290
+ - Scopes: `bot`, `applications.commands`.
291
+ - Bot Permissions: `Administrator` (or granular: `View Audit Log`, `Manage Guild`, `Manage Roles`, `Manage Channels`, `Manage Webhooks`, `Kick Members`, `Ban Members`, `Moderate Members`, `Manage Messages`, `Send Messages`, `Embed Links`, `Attach Files`, `Connect`, `Speak`).
292
+ 4. **100+ Servers Scale Notice**: Once a bot reaches 100+ servers, Discord requires formal approval for `Server Members Intent`, `Presence Intent`, and `Message Content Intent`. If Discord rejects a privileged intent at startup, NextBotClow logs the exact Developer Portal toggle to enable and restarts automatically with that intent removed and dependent features auto-disabled.
293
+ 5. Invite URL template:
294
+ `https://discord.com/oauth2/authorize?client_id=YOUR_CLIENT_ID&permissions=8&scope=bot%20applications.commands`
295
+
296
+ ---
297
+
298
+ ## Building and Publishing to PyPI
299
+
300
+ ```bash
301
+ pip install -e ".[dev]"
302
+ pytest
303
+ python -m build
304
+ twine check dist/*
305
+ twine upload dist/*
306
+ ```
307
+
308
+ For GitHub Actions Trusted Publishing, configure an OIDC publisher on PyPI pointing to your repository workflow and run `pypa/gh-action-pypi-publish@release/v1`.
309
+
310
+ ---
311
+
312
+ ## Troubleshooting & FAQ
313
+
314
+ - **Slash commands do not appear immediately**: Global application command sync can take a few minutes to propagate; ensure `applications.commands` scope was included in the invite URL and `settings.modes.slash = True`.
315
+ - **Antinuke says `Audit Log Perm: MISSING`**: Grant the bot `View Audit Log` and place the bot's highest role near the top of the server role hierarchy.
316
+ - **Vanity status role does not update**: Enable **Presence Intent** in the Discord Developer Portal and set `model.settings.intents.presences = True`.
317
+ - **Lavalink connection refused**: Ensure Lavalink v4 is running on `127.0.0.1:2333` with matching password (`youshallnotpass`), or run `nextbotclow doctor`.
318
+
319
+ ---
320
+
321
+ ## Security Notes
322
+
323
+ - Bot tokens and secrets are automatically redacted from log output via `TokenRedactFilter`.
324
+ - `eval` / `exec` commands are intentionally omitted; `diag` provides safe read-only runtime metrics.
325
+ - Antinuke never punishes the server owner, never targets itself, and serializes audit log checks per guild to avoid race conditions.
326
+
327
+ ---
328
+
329
+ ## Contributing
330
+
331
+ 1. Fork the repository and create a feature branch.
332
+ 2. Install dev dependencies: `pip install -e ".[dev]"`.
333
+ 3. Keep all responses 100% Components V2 inside a single colour-free `Container` with zero emoji.
334
+ 4. Run `pytest`, `ruff check .`, and `mypy nextbotclow` before opening a pull request.
335
+
336
+ ---
337
+
338
+ ## License
339
+
340
+ MIT License. See [LICENSE](LICENSE).
@@ -0,0 +1,251 @@
1
+ # NextBotClow
2
+
3
+ ![Python 3.10+](https://img.shields.io/badge/python-3.10%2B-111111?style=flat-square)
4
+ ![discord.py 2.7.1+](https://img.shields.io/badge/discord.py-2.7.1%2B-111111?style=flat-square)
5
+ ![Lavalink v4](https://img.shields.io/badge/lavalink-v4-111111?style=flat-square)
6
+ ![License MIT](https://img.shields.io/badge/license-MIT-111111?style=flat-square)
7
+
8
+ NextBotClow is a pip-installable, production-ready Discord bot model. Install the package, set a few values on `nextbotclow.settings`, call `nextbotclow.run()`, and a full-featured, monochrome Components V2 Discord bot comes online with zero boilerplate.
9
+
10
+ ---
11
+
12
+ ## Quick Start
13
+
14
+ ```bash
15
+ pip install "nextbotclow[full]"
16
+ ```
17
+
18
+ ```python
19
+ import nextbotclow as model
20
+
21
+ model.settings.token = "YOUR_BOT_TOKEN"
22
+ model.settings.dev.user = "MyName"
23
+ model.settings.prefix = "!"
24
+ model.settings.owners = [123456789012345678]
25
+
26
+ model.run()
27
+ ```
28
+
29
+ Or use the CLI:
30
+
31
+ ```bash
32
+ nextbotclow init
33
+ nextbotclow doctor
34
+ nextbotclow run
35
+ ```
36
+
37
+ ---
38
+
39
+ ## Feature Matrix
40
+
41
+ | Module | Capabilities | Interactive UI |
42
+ | :--- | :--- | :--- |
43
+ | Core & Commands | Slash + Prefix + safe No-Prefix, global/guild blacklist, per-channel command toggles, cooldowns, Error IDs | Help category select browser |
44
+ | Identity | Auto-fetches `dev.model` and `dev.core` from Discord ID `1032944901412880394` with 24h SQLite cache and safe fallback | Shown in `about` and footers |
45
+ | UI Kit | 100% Components V2 (`LayoutView`, single colour-free `Container`, `TextDisplay`, `Section`, `MediaGallery`, `ActionRow`), zero emoji | Auto-pagination and limit guards |
46
+ | Music | Lavalink v4 via Wavelink 3.5+, multi-node failover, YouTube/Spotify/SoundCloud/Apple/Deezer/URL, filters, lyrics, playlists | Live Now Playing panel & search menu |
47
+ | Utility | Ping, stats, uptime, user/server/role/channel/emoji-text info, snipe, editsnipe, AFK, persistent reminders, timers, poll, suggest, calc, color, snowflake | Poll buttons, Suggest votes, Settings dashboard |
48
+ | Moderation | Ban, tempban, softban, unban, kick, timeout, untimeout, warn, warnings, clearwarns, purge, slowmode, lock/unlock, hide/unhide, nick, role add/remove, cases | Case modlog panels |
49
+ | Automod | Anti-spam, duplicate, link, invite, caps, mass mention, emoji spam, zalgo, bad words (wildcards + NFKC), attachment flood, anti-raid, strike escalation, dry-run | Rule selector and toggles panel |
50
+ | Verify | Button, text captcha, local PNG image captcha, question gate, account-age gate, DM mode, auto-kick unverified, persistent panels | Persistent Verify button + modal |
51
+ | Vanity | Status keyword role reward (`presences` intent checked) and Vanity URL audit monitor | Vanity toggle panel |
52
+ | Antinuke | 20 monitored triggers, audit-log deduplication, per-guild serialization lock, 4 whitelist tiers, auto-recovery, panic mode & restore | Antinuke setup & health dashboard |
53
+ | Extras | Event logging, welcome/leave panels, autorole, reaction-free role panels (buttons/select) | Persistent role panels |
54
+ | Owner | Reload modules, safe diagnostics, shutdown, blacklist, no-prefix allowlist, guilds list, broadcast | Confirm dialogs |
55
+
56
+ ---
57
+
58
+ ## Settings Reference
59
+
60
+ Priority order: **Python code assignment > Environment variables (`NEXTBOTCLOW_*`) > `nextbotclow.toml` / `.env` > Defaults**.
61
+
62
+ | Setting | Default | Description |
63
+ | :--- | :--- | :--- |
64
+ | `settings.token` | `""` | Discord bot token (required) |
65
+ | `settings.prefix` | `"!"` | Default command prefix (1-10 chars) |
66
+ | `settings.owners` | `[]` | List of bot owner Discord user IDs |
67
+ | `settings.dev.user` | `"Developer"` | Bot operator display name |
68
+ | `settings.dev.model` | `"Unknown"` (auto) | Auto-fetched from Discord ID `1032944901412880394` |
69
+ | `settings.dev.core` | `"Unknown"` (auto) | Auto-fetched from Discord ID `1032944901412880394` |
70
+ | `settings.modes.slash` | `True` | Enable slash command tree sync |
71
+ | `settings.modes.prefix` | `True` | Enable prefix commands |
72
+ | `settings.modes.no_prefix` | `True` | Enable safe no-prefix allowlist |
73
+ | `settings.modes.mention_prefix` | `True` | Allow `@Bot command` prefix |
74
+ | `settings.categories.*` | All `True` | Global toggle per category (`music`, `utility`, `moderation`, `automod`, `verify`, `vanity`, `antinuke`, `extras`) |
75
+ | `settings.commands.disabled` | `[]` | List of disabled commands or `"category.group.command"` paths |
76
+ | `settings.commands.enabled_only` | `[]` | Optional whitelist of commands allowed to run (plus core protected commands) |
77
+ | `settings.commands.aliases_disabled` | `[]` | Disable specific command aliases without hiding the command |
78
+ | `settings.intents.*` | `preset="auto"` | All gateway intents + `preset` (`auto`, `minimal`, `standard`, `full`, `custom`) |
79
+ | `settings.sharding.enabled` | `False` | Enable AutoShardedBot multi-shard mode |
80
+ | `settings.sharding.auto` | `True` | Automatic shard count from Discord gateway |
81
+ | `settings.sharding.shard_count` | `None` | Manual shard count when `auto=False` |
82
+ | `settings.database.type` | `"sqlite"` | Backend: `sqlite`, `postgres`, `mysql`, `mongodb`, or `redis` |
83
+ | `settings.database.url` | `None` | Connection URL for `postgres`, `mysql`, `mongodb`, `redis` |
84
+ | `settings.database.path` | User data dir | SQLite database file path |
85
+ | `settings.database.pool_size` | `10` | Connection pool max size |
86
+ | `settings.database.timeout` | `10` | Command timeout in seconds |
87
+ | `settings.database.ssl` | `False` | Require TLS/SSL for remote database connections |
88
+ | `settings.cache.type` | `"memory"` | Cache layer: `memory` or `redis` |
89
+ | `settings.cache.url` | `None` | Redis cache URL when `cache.type = "redis"` |
90
+ | `settings.cache.ttl` | `300` | Default cache TTL in seconds |
91
+ | `settings.lavalink.nodes` | 1 local node | List of `{host, port, password, secure, name}` |
92
+ | `settings.lavalink.default_volume` | `80` | Initial player volume (0-200) |
93
+ | `settings.music.*` | `enabled=True` | `max_queue`, `stay_24_7`, `autoplay`, `vote_skip`, `dj_role`, `empty_timeout_seconds` |
94
+ | `settings.automod.*` | `enabled=True` | Default thresholds for new servers |
95
+ | `settings.antinuke.*` | `enabled=True` | Module switch and default antinuke thresholds |
96
+ | `settings.verify.*` | `enabled=True` | Default verification method and retry/age limits |
97
+ | `settings.vanity.*` | `enabled=True` | Default vanity status and URL monitor switches |
98
+ | `settings.ui.*` | Colour-free V2 | `footer_text`, `separator_style`, `symbol_set`, `colour_free=True` |
99
+ | `settings.logging.*` | `level="INFO"` | `level`, `file`, `webhook` |
100
+ | `settings.status.*` | `online` | `text`, `activity_type`, `status`, `rotating`, `interval_seconds` |
101
+ | `settings.cooldowns.*` | `1 / 3.0s` | `default_rate`, `default_per`, `bucket` |
102
+ | `settings.support.url` | `""` | Support server invite URL |
103
+ | `settings.invite.url` | Auto-generated | Custom bot invite URL override |
104
+
105
+ ---
106
+
107
+ ## Command List
108
+
109
+ ### Help & Server Module Control
110
+ - `help [command]` — Interactive category browser or detailed command inspection
111
+ - `about` (`info`, `credits`) — Protected core info & developer credits panel
112
+ - `modules`, `module <enable|disable> <category> [channel] [role]`, `command <enable|disable> <name> [channel] [role]` — Per-server feature control within developer ceiling
113
+
114
+ ### Music
115
+ - `join`, `leave`, `play <query>`, `search <query>`, `playnext <query>`, `queue`, `nowplaying`, `pause`, `resume`, `skip`, `previous`, `stop`, `seek <pos>`, `volume <0-150>`, `loop <off|track|queue>`, `shuffle`, `remove <index>`, `move <from> <to>`, `clearqueue`, `jump <index>`, `autoplay`, `247`, `filter <preset>`, `lyrics [query]`, `node`, `playlist <save|load|list|delete>`
116
+
117
+ ### Utility
118
+ - `ping`, `stats`, `uptime`, `invite`, `support`, `userinfo`, `serverinfo`, `avatar`, `banner`, `roleinfo`, `channelinfo`, `emojis`, `snipe`, `editsnipe`, `afk`, `remind`, `timer`, `poll`, `suggest`, `calc`, `color`, `snowflake`, `prefix`, `settings`, `cmdtoggle`, `cmdstats`
119
+
120
+ ### Moderation
121
+ - `ban`, `tempban`, `softban`, `unban`, `kick`, `timeout`, `untimeout`, `warn`, `warnings`, `clearwarns`, `purge`, `slowmode`, `lock`, `unlock`, `hide`, `unhide`, `nick`, `role <add|remove>`, `case`, `modlogs`, `modlogchannel`
122
+
123
+ ### Automod
124
+ - `automod`, `automod panel`, `automod preset <off|light|standard|strict|maximum>`, `automod rule <name> <enabled> [action] [threshold]`, `automod words <action> [value]`, `automod links <mode|allow|block|preset> [value]`, `automod test <text>`, `automod strikes <member> [reset]`, `automod logs`, `automod export`, `automod import <json>`, `automod sync_native`, `automod whitelist`, `automod log`
125
+
126
+ ### Verify
127
+ - `verify`, `verify setup`, `verify panel`, `verify question`, `verify age`, `verify log`
128
+
129
+ ### Vanity
130
+ - `vanity`, `vanity panel`, `vanity setup`, `vanity thank`, `vanity log`, `vanity url`
131
+
132
+ ### Antinuke
133
+ - `antinuke`, `antinuke setup`, `antinuke status`, `antinuke whitelist <add|remove|list>`, `antinuke log`, `antinuke panic`, `antinuke restore`, `antinuke cases`
134
+
135
+ ### Extras
136
+ - `eventlog`, `autorole`, `welcome <set|disable>`, `leave <set|disable>`, `rolepanel <buttons|select>`
137
+
138
+ ### Owner
139
+ - `reload`, `shutdown`, `diag`, `intents`, `wordlist <info|update>`, `noprefix <add|remove|list>`, `blacklist <add|remove|list>`, `guilds`, `broadcast`
140
+
141
+ ---
142
+
143
+ ## Feature & Category Control
144
+
145
+ Disable entire categories or single commands/subcommands globally:
146
+
147
+ ```python
148
+ import nextbotclow as model
149
+
150
+ model.settings.categories.vanity = False
151
+ model.settings.commands.disabled = ["lyrics", "snipe", "music.filters.8d"]
152
+ model.settings.commands.aliases_disabled = ["p"]
153
+ ```
154
+
155
+ Or via environment variables / TOML:
156
+ - `NEXTBOTCLOW_CATEGORIES_VANITY=false`
157
+ - `[categories]` and `[commands]` tables in `nextbotclow.toml`
158
+ - Inspect status anytime with `nextbotclow features` or `nextbotclow doctor`.
159
+
160
+ **Notes & Platform Limitations**:
161
+ - Core categories (`help`, `owner`) and `about`/`credits` are protected and cannot be disabled.
162
+ - Globally disabled categories are never loaded, migrated, synced to Discord, or shown anywhere.
163
+ - Server admins can further disable globally-enabled modules/commands per server, channel, or role (`modules`, `module`, `command`), but cannot override a developer-disabled ceiling.
164
+ - Because Discord's API does not hide global slash commands on a per-guild basis, commands disabled per-guild remain in the global slash picker for that server and reply silently-ephemeral with a neutral "Not Available" panel when invoked.
165
+
166
+ ---
167
+
168
+ ## Lavalink v4 Setup
169
+
170
+ NextBotClow uses **Lavalink v4** for audio playback.
171
+
172
+ ### Option A: Docker Compose (Recommended)
173
+
174
+ A ready-to-use `docker-compose.yml` and `lavalink/application.yml` are included:
175
+
176
+ ```bash
177
+ docker compose up -d
178
+ ```
179
+
180
+ ### Option B: Standalone JAR
181
+
182
+ 1. Install Java 17 or Java 21.
183
+ 2. Download the latest `Lavalink.jar` (v4.x) from `https://github.com/lavalink-devs/Lavalink/releases`.
184
+ 3. Copy `lavalink/application.yml` beside `Lavalink.jar`.
185
+ 4. Run:
186
+
187
+ ```bash
188
+ java -jar Lavalink.jar
189
+ ```
190
+
191
+ ---
192
+
193
+ ## Discord Developer Portal Checklist
194
+
195
+ 1. Open the Discord Developer Portal and select your application.
196
+ 2. Under **Bot -> Privileged Gateway Intents**:
197
+ - **Server Members Intent**: Turn ON (required by Verify, Moderation, Antinuke, Vanity, Extras).
198
+ - **Message Content Intent**: Turn ON (required by Prefix commands, No-Prefix commands, Automod).
199
+ - **Presence Intent**: Turn ON only if using Vanity custom-status role rewards (`settings.intents.presences = True`).
200
+ 3. Under **OAuth2 -> URL Generator**:
201
+ - Scopes: `bot`, `applications.commands`.
202
+ - Bot Permissions: `Administrator` (or granular: `View Audit Log`, `Manage Guild`, `Manage Roles`, `Manage Channels`, `Manage Webhooks`, `Kick Members`, `Ban Members`, `Moderate Members`, `Manage Messages`, `Send Messages`, `Embed Links`, `Attach Files`, `Connect`, `Speak`).
203
+ 4. **100+ Servers Scale Notice**: Once a bot reaches 100+ servers, Discord requires formal approval for `Server Members Intent`, `Presence Intent`, and `Message Content Intent`. If Discord rejects a privileged intent at startup, NextBotClow logs the exact Developer Portal toggle to enable and restarts automatically with that intent removed and dependent features auto-disabled.
204
+ 5. Invite URL template:
205
+ `https://discord.com/oauth2/authorize?client_id=YOUR_CLIENT_ID&permissions=8&scope=bot%20applications.commands`
206
+
207
+ ---
208
+
209
+ ## Building and Publishing to PyPI
210
+
211
+ ```bash
212
+ pip install -e ".[dev]"
213
+ pytest
214
+ python -m build
215
+ twine check dist/*
216
+ twine upload dist/*
217
+ ```
218
+
219
+ For GitHub Actions Trusted Publishing, configure an OIDC publisher on PyPI pointing to your repository workflow and run `pypa/gh-action-pypi-publish@release/v1`.
220
+
221
+ ---
222
+
223
+ ## Troubleshooting & FAQ
224
+
225
+ - **Slash commands do not appear immediately**: Global application command sync can take a few minutes to propagate; ensure `applications.commands` scope was included in the invite URL and `settings.modes.slash = True`.
226
+ - **Antinuke says `Audit Log Perm: MISSING`**: Grant the bot `View Audit Log` and place the bot's highest role near the top of the server role hierarchy.
227
+ - **Vanity status role does not update**: Enable **Presence Intent** in the Discord Developer Portal and set `model.settings.intents.presences = True`.
228
+ - **Lavalink connection refused**: Ensure Lavalink v4 is running on `127.0.0.1:2333` with matching password (`youshallnotpass`), or run `nextbotclow doctor`.
229
+
230
+ ---
231
+
232
+ ## Security Notes
233
+
234
+ - Bot tokens and secrets are automatically redacted from log output via `TokenRedactFilter`.
235
+ - `eval` / `exec` commands are intentionally omitted; `diag` provides safe read-only runtime metrics.
236
+ - Antinuke never punishes the server owner, never targets itself, and serializes audit log checks per guild to avoid race conditions.
237
+
238
+ ---
239
+
240
+ ## Contributing
241
+
242
+ 1. Fork the repository and create a feature branch.
243
+ 2. Install dev dependencies: `pip install -e ".[dev]"`.
244
+ 3. Keep all responses 100% Components V2 inside a single colour-free `Container` with zero emoji.
245
+ 4. Run `pytest`, `ruff check .`, and `mypy nextbotclow` before opening a pull request.
246
+
247
+ ---
248
+
249
+ ## License
250
+
251
+ MIT License. See [LICENSE](LICENSE).
@@ -0,0 +1,22 @@
1
+ services:
2
+ lavalink:
3
+ image: ghcr.io/lavalink-devs/lavalink:4
4
+ container_name: nextbotclow-lavalink
5
+ restart: unless-stopped
6
+ environment:
7
+ - _JAVA_OPTIONS=-Xmx1G
8
+ - SERVER_PORT=2333
9
+ volumes:
10
+ - ./lavalink/application.yml:/opt/Lavalink/application.yml:ro
11
+ - lavalink-plugins:/opt/Lavalink/plugins
12
+ ports:
13
+ - "127.0.0.1:2333:2333"
14
+ networks:
15
+ - nextbotclow
16
+
17
+ volumes:
18
+ lavalink-plugins:
19
+
20
+ networks:
21
+ nextbotclow:
22
+ driver: bridge