nextbotclow 1.0.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.
Files changed (117) hide show
  1. nextbotclow/__init__.py +42 -0
  2. nextbotclow/__main__.py +8 -0
  3. nextbotclow/assets/README.txt +7 -0
  4. nextbotclow/assets/wordlists/allowlist.json +84 -0
  5. nextbotclow/assets/wordlists/en_default.json +61 -0
  6. nextbotclow/assets/wordlists/hinglish.json +27 -0
  7. nextbotclow/assets/wordlists/scam_domains.json +63 -0
  8. nextbotclow/cli.py +487 -0
  9. nextbotclow/config/__init__.py +12 -0
  10. nextbotclow/config/loader.py +241 -0
  11. nextbotclow/config/schema.py +696 -0
  12. nextbotclow/core/__init__.py +28 -0
  13. nextbotclow/core/bot.py +420 -0
  14. nextbotclow/core/checks.py +123 -0
  15. nextbotclow/core/commands.py +157 -0
  16. nextbotclow/core/errors.py +205 -0
  17. nextbotclow/core/identity.py +179 -0
  18. nextbotclow/core/intents.py +363 -0
  19. nextbotclow/core/logging.py +146 -0
  20. nextbotclow/core/noprefix.py +64 -0
  21. nextbotclow/core/registry.py +992 -0
  22. nextbotclow/core/runner.py +110 -0
  23. nextbotclow/db/__init__.py +20 -0
  24. nextbotclow/db/adapters/__init__.py +15 -0
  25. nextbotclow/db/adapters/mongodb_adapter.py +236 -0
  26. nextbotclow/db/adapters/mysql_adapter.py +298 -0
  27. nextbotclow/db/adapters/postgres_adapter.py +287 -0
  28. nextbotclow/db/adapters/redis_adapter.py +263 -0
  29. nextbotclow/db/adapters/resilient.py +328 -0
  30. nextbotclow/db/adapters/sqlite_adapter.py +346 -0
  31. nextbotclow/db/base.py +155 -0
  32. nextbotclow/db/cache.py +130 -0
  33. nextbotclow/db/engine.py +160 -0
  34. nextbotclow/db/factory.py +78 -0
  35. nextbotclow/db/migrations/__init__.py +25 -0
  36. nextbotclow/db/migrations/v001_initial.py +601 -0
  37. nextbotclow/db/repos/__init__.py +33 -0
  38. nextbotclow/db/repos/antinuke_repo.py +116 -0
  39. nextbotclow/db/repos/automod_repo.py +191 -0
  40. nextbotclow/db/repos/base.py +41 -0
  41. nextbotclow/db/repos/blacklist_repo.py +46 -0
  42. nextbotclow/db/repos/extras_repo.py +57 -0
  43. nextbotclow/db/repos/feature_repo.py +78 -0
  44. nextbotclow/db/repos/guild_repo.py +136 -0
  45. nextbotclow/db/repos/identity_repo.py +51 -0
  46. nextbotclow/db/repos/moderation_repo.py +97 -0
  47. nextbotclow/db/repos/music_repo.py +39 -0
  48. nextbotclow/db/repos/noprefix_repo.py +45 -0
  49. nextbotclow/db/repos/utility_repo.py +185 -0
  50. nextbotclow/db/repos/vanity_repo.py +51 -0
  51. nextbotclow/db/repos/verify_repo.py +80 -0
  52. nextbotclow/db/sql_schema.py +728 -0
  53. nextbotclow/db/transfer.py +56 -0
  54. nextbotclow/modules/__init__.py +0 -0
  55. nextbotclow/modules/antinuke/__init__.py +19 -0
  56. nextbotclow/modules/antinuke/cog.py +753 -0
  57. nextbotclow/modules/antinuke/engine.py +183 -0
  58. nextbotclow/modules/antinuke/recovery.py +202 -0
  59. nextbotclow/modules/antinuke/views.py +129 -0
  60. nextbotclow/modules/automod/__init__.py +44 -0
  61. nextbotclow/modules/automod/antilink.py +276 -0
  62. nextbotclow/modules/automod/cog.py +820 -0
  63. nextbotclow/modules/automod/engine.py +742 -0
  64. nextbotclow/modules/automod/matcher.py +272 -0
  65. nextbotclow/modules/automod/native.py +104 -0
  66. nextbotclow/modules/automod/normalizer.py +139 -0
  67. nextbotclow/modules/automod/views.py +153 -0
  68. nextbotclow/modules/community/__init__.py +1 -0
  69. nextbotclow/modules/community/cog.py +714 -0
  70. nextbotclow/modules/economy/__init__.py +1 -0
  71. nextbotclow/modules/economy/cog.py +361 -0
  72. nextbotclow/modules/extras/__init__.py +0 -0
  73. nextbotclow/modules/extras/cog.py +820 -0
  74. nextbotclow/modules/extras/views.py +115 -0
  75. nextbotclow/modules/fun/__init__.py +1 -0
  76. nextbotclow/modules/fun/cog.py +541 -0
  77. nextbotclow/modules/giveaways/__init__.py +1 -0
  78. nextbotclow/modules/giveaways/cog.py +241 -0
  79. nextbotclow/modules/help/__init__.py +0 -0
  80. nextbotclow/modules/help/cog.py +608 -0
  81. nextbotclow/modules/leveling/__init__.py +1 -0
  82. nextbotclow/modules/leveling/cog.py +247 -0
  83. nextbotclow/modules/moderation/__init__.py +3 -0
  84. nextbotclow/modules/moderation/cog.py +1266 -0
  85. nextbotclow/modules/moderation/views.py +33 -0
  86. nextbotclow/modules/music/__init__.py +20 -0
  87. nextbotclow/modules/music/cog.py +827 -0
  88. nextbotclow/modules/music/filters.py +66 -0
  89. nextbotclow/modules/music/providers.py +103 -0
  90. nextbotclow/modules/music/views.py +186 -0
  91. nextbotclow/modules/owner/__init__.py +0 -0
  92. nextbotclow/modules/owner/cog.py +710 -0
  93. nextbotclow/modules/owner/views.py +82 -0
  94. nextbotclow/modules/social/__init__.py +1 -0
  95. nextbotclow/modules/social/cog.py +344 -0
  96. nextbotclow/modules/tickets/__init__.py +1 -0
  97. nextbotclow/modules/tickets/cog.py +298 -0
  98. nextbotclow/modules/utility/__init__.py +3 -0
  99. nextbotclow/modules/utility/cog.py +1606 -0
  100. nextbotclow/modules/utility/views.py +257 -0
  101. nextbotclow/modules/vanity/__init__.py +0 -0
  102. nextbotclow/modules/vanity/cog.py +254 -0
  103. nextbotclow/modules/vanity/views.py +59 -0
  104. nextbotclow/modules/verify/__init__.py +3 -0
  105. nextbotclow/modules/verify/captcha.py +145 -0
  106. nextbotclow/modules/verify/cog.py +515 -0
  107. nextbotclow/modules/verify/views.py +210 -0
  108. nextbotclow/py.typed +0 -0
  109. nextbotclow/ui/__init__.py +27 -0
  110. nextbotclow/ui/kit.py +620 -0
  111. nextbotclow/ui/limits.py +169 -0
  112. nextbotclow/ui/symbols.py +90 -0
  113. nextbotclow-1.0.0.dist-info/METADATA +340 -0
  114. nextbotclow-1.0.0.dist-info/RECORD +117 -0
  115. nextbotclow-1.0.0.dist-info/WHEEL +4 -0
  116. nextbotclow-1.0.0.dist-info/entry_points.txt +2 -0
  117. nextbotclow-1.0.0.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,42 @@
1
+ from __future__ import annotations
2
+
3
+ from pathlib import Path
4
+
5
+ from nextbotclow.config.schema import ConfigurationError, Settings
6
+
7
+ __version__ = "1.0.0"
8
+
9
+ # Global singleton settings object exposed as `model.settings`.
10
+ settings = Settings()
11
+
12
+
13
+ def run(
14
+ *,
15
+ config_path: str | Path | None = None,
16
+ env_path: str | Path | None = None,
17
+ ) -> None:
18
+ """Start NextBotClow (blocking) using the configured `settings` object."""
19
+ from nextbotclow.core.runner import run as _runner_run
20
+
21
+ _runner_run(settings, config_path=config_path, env_path=env_path)
22
+
23
+
24
+ async def run_async(
25
+ *,
26
+ config_path: str | Path | None = None,
27
+ env_path: str | Path | None = None,
28
+ ) -> None:
29
+ """Start NextBotClow inside an existing asyncio event loop."""
30
+ from nextbotclow.core.runner import run_async as _runner_run_async
31
+
32
+ await _runner_run_async(settings, config_path=config_path, env_path=env_path)
33
+
34
+
35
+ __all__ = [
36
+ "ConfigurationError",
37
+ "Settings",
38
+ "__version__",
39
+ "run",
40
+ "run_async",
41
+ "settings",
42
+ ]
@@ -0,0 +1,8 @@
1
+ from __future__ import annotations
2
+
3
+ import sys
4
+
5
+ from nextbotclow.cli import main
6
+
7
+ if __name__ == "__main__":
8
+ sys.exit(main())
@@ -0,0 +1,7 @@
1
+ NextBotClow Assets Directory
2
+ ===========================
3
+
4
+ Place custom TrueType (.ttf) or OpenType (.otf) font files inside `fonts/`
5
+ if you want the image captcha generator to use a specific monospace font.
6
+ When no font file is present, NextBotClow automatically uses Pillow's built-in
7
+ scalable font (or a pure-Python fallback PNG generator if Pillow is not installed).
@@ -0,0 +1,84 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "safe_words": [
4
+ "class",
5
+ "classes",
6
+ "classic",
7
+ "classical",
8
+ "classify",
9
+ "assistant",
10
+ "assist",
11
+ "associate",
12
+ "assess",
13
+ "assessment",
14
+ "asset",
15
+ "assets",
16
+ "assign",
17
+ "assignment",
18
+ "assault",
19
+ "assemble",
20
+ "assembly",
21
+ "assert",
22
+ "assertion",
23
+ "assume",
24
+ "assumption",
25
+ "assure",
26
+ "assurance",
27
+ "pass",
28
+ "passed",
29
+ "passing",
30
+ "password",
31
+ "passport",
32
+ "compass",
33
+ "bypass",
34
+ "grass",
35
+ "glass",
36
+ "brass",
37
+ "mass",
38
+ "massive",
39
+ "cassette",
40
+ "embassy",
41
+ "harass",
42
+ "scunthorpe",
43
+ "cockatoo",
44
+ "cocktail",
45
+ "peacock",
46
+ "shuttlecock",
47
+ "hancock",
48
+ "dickens",
49
+ "benedict",
50
+ "predict",
51
+ "dictionary",
52
+ "verdict",
53
+ "addict",
54
+ "basement",
55
+ "document",
56
+ "therapist",
57
+ "analysis",
58
+ "analyst",
59
+ "canal",
60
+ "peninsula",
61
+ "sussex",
62
+ "essex",
63
+ "middlesex",
64
+ "cumberland",
65
+ "shutter",
66
+ "button",
67
+ "butter",
68
+ "title",
69
+ "subtitle",
70
+ "accumulate",
71
+ "hello",
72
+ "shell",
73
+ "shirt",
74
+ "shift",
75
+ "shitake",
76
+ "shiitake",
77
+ "mishit",
78
+ "fagotto",
79
+ "nigeria",
80
+ "niger",
81
+ "snigger",
82
+ "chinkapin"
83
+ ]
84
+ }
@@ -0,0 +1,61 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "language": "en",
4
+ "entries": [
5
+ {"word": "fuck", "category": "profanity", "severity": "medium", "match_type": "exact"},
6
+ {"word": "shit", "category": "profanity", "severity": "low", "match_type": "exact"},
7
+ {"word": "bitch", "category": "profanity", "severity": "medium", "match_type": "exact"},
8
+ {"word": "asshole", "category": "profanity", "severity": "medium", "match_type": "exact"},
9
+ {"word": "bastard", "category": "profanity", "severity": "low", "match_type": "exact"},
10
+ {"word": "bullshit", "category": "profanity", "severity": "low", "match_type": "exact"},
11
+ {"word": "motherfucker", "category": "profanity", "severity": "high", "match_type": "exact"},
12
+ {"word": "dickhead", "category": "profanity", "severity": "medium", "match_type": "exact"},
13
+ {"word": "cunt", "category": "profanity", "severity": "high", "match_type": "exact"},
14
+ {"word": "twat", "category": "profanity", "severity": "medium", "match_type": "exact"},
15
+ {"word": "wanker", "category": "profanity", "severity": "medium", "match_type": "exact"},
16
+ {"word": "prick", "category": "profanity", "severity": "low", "match_type": "exact"},
17
+ {"word": "dipshit", "category": "profanity", "severity": "medium", "match_type": "exact"},
18
+ {"word": "jackass", "category": "profanity", "severity": "low", "match_type": "exact"},
19
+ {"word": "shithead", "category": "profanity", "severity": "medium", "match_type": "exact"},
20
+ {"word": "fuckface", "category": "profanity", "severity": "high", "match_type": "exact"},
21
+ {"word": "dumbass", "category": "insults_harassment", "severity": "low", "match_type": "exact"},
22
+ {"word": "moron", "category": "insults_harassment", "severity": "low", "match_type": "exact"},
23
+ {"word": "retard", "category": "hate_speech", "severity": "high", "match_type": "exact"},
24
+ {"word": "retarded", "category": "hate_speech", "severity": "high", "match_type": "exact"},
25
+ {"word": "loser", "category": "insults_harassment", "severity": "low", "match_type": "exact"},
26
+ {"word": "pathetic", "category": "insults_harassment", "severity": "low", "match_type": "exact"},
27
+ {"word": "trash", "category": "insults_harassment", "severity": "low", "match_type": "exact", "allowed_in_context": true},
28
+ {"word": "slut", "category": "sexual_explicit", "severity": "high", "match_type": "exact"},
29
+ {"word": "whore", "category": "sexual_explicit", "severity": "high", "match_type": "exact"},
30
+ {"word": "porn", "category": "sexual_explicit", "severity": "medium", "match_type": "exact"},
31
+ {"word": "pornhub", "category": "nsfw_promo", "severity": "high", "match_type": "exact"},
32
+ {"word": "onlyfans", "category": "nsfw_promo", "severity": "medium", "match_type": "exact"},
33
+ {"word": "xvideos", "category": "nsfw_promo", "severity": "high", "match_type": "exact"},
34
+ {"word": "xnxx", "category": "nsfw_promo", "severity": "high", "match_type": "exact"},
35
+ {"word": "hentai", "category": "sexual_explicit", "severity": "medium", "match_type": "exact"},
36
+ {"word": "blowjob", "category": "sexual_explicit", "severity": "high", "match_type": "exact"},
37
+ {"word": "handjob", "category": "sexual_explicit", "severity": "high", "match_type": "exact"},
38
+ {"word": "dildo", "category": "sexual_explicit", "severity": "medium", "match_type": "exact"},
39
+ {"word": "masturbate", "category": "sexual_explicit", "severity": "medium", "match_type": "exact"},
40
+ {"word": "nude", "category": "nsfw_promo", "severity": "low", "match_type": "exact", "allowed_in_context": true},
41
+ {"word": "nudes", "category": "nsfw_promo", "severity": "high", "match_type": "exact"},
42
+ {"word": "dm for nudes", "category": "nsfw_promo", "severity": "high", "match_type": "phrase"},
43
+ {"word": "free nitro", "category": "scam_spam", "severity": "high", "match_type": "phrase"},
44
+ {"word": "claim your nitro", "category": "scam_spam", "severity": "high", "match_type": "phrase"},
45
+ {"word": "free robux", "category": "scam_spam", "severity": "high", "match_type": "phrase"},
46
+ {"word": "dm me for", "category": "scam_spam", "severity": "medium", "match_type": "phrase"},
47
+ {"word": "airdrop nitro", "category": "scam_spam", "severity": "high", "match_type": "phrase"},
48
+ {"word": "steam gift nitro", "category": "scam_spam", "severity": "high", "match_type": "phrase"},
49
+ {"word": "kys", "category": "threats_selfharm", "severity": "extreme", "match_type": "exact"},
50
+ {"word": "kill yourself", "category": "threats_selfharm", "severity": "extreme", "match_type": "phrase"},
51
+ {"word": "go die", "category": "threats_selfharm", "severity": "extreme", "match_type": "phrase"},
52
+ {"word": "end your life", "category": "threats_selfharm", "severity": "extreme", "match_type": "phrase"},
53
+ {"word": "nigger", "category": "hate_speech", "severity": "extreme", "match_type": "exact"},
54
+ {"word": "nigga", "category": "hate_speech", "severity": "extreme", "match_type": "exact"},
55
+ {"word": "faggot", "category": "hate_speech", "severity": "extreme", "match_type": "exact"},
56
+ {"word": "fag", "category": "hate_speech", "severity": "high", "match_type": "exact"},
57
+ {"word": "chink", "category": "hate_speech", "severity": "extreme", "match_type": "exact"},
58
+ {"word": "kike", "category": "hate_speech", "severity": "extreme", "match_type": "exact"},
59
+ {"word": "tranny", "category": "hate_speech", "severity": "extreme", "match_type": "exact"}
60
+ ]
61
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "language": "hinglish",
4
+ "entries": [
5
+ {"word": "madarchod", "category": "profanity", "severity": "extreme", "match_type": "exact"},
6
+ {"word": "behenchod", "category": "profanity", "severity": "extreme", "match_type": "exact"},
7
+ {"word": "bhenchod", "category": "profanity", "severity": "extreme", "match_type": "exact"},
8
+ {"word": "bhosdike", "category": "profanity", "severity": "high", "match_type": "exact"},
9
+ {"word": "bhosdiwala", "category": "profanity", "severity": "high", "match_type": "exact"},
10
+ {"word": "chutiya", "category": "insults_harassment", "severity": "medium", "match_type": "exact"},
11
+ {"word": "chutiye", "category": "insults_harassment", "severity": "medium", "match_type": "exact"},
12
+ {"word": "gaand", "category": "profanity", "severity": "medium", "match_type": "exact"},
13
+ {"word": "gandu", "category": "insults_harassment", "severity": "medium", "match_type": "exact"},
14
+ {"word": "harami", "category": "insults_harassment", "severity": "medium", "match_type": "exact"},
15
+ {"word": "haramzada", "category": "insults_harassment", "severity": "high", "match_type": "exact"},
16
+ {"word": "kamina", "category": "insults_harassment", "severity": "low", "match_type": "exact"},
17
+ {"word": "kutta", "category": "insults_harassment", "severity": "low", "match_type": "exact"},
18
+ {"word": "kamine", "category": "insults_harassment", "severity": "low", "match_type": "exact"},
19
+ {"word": "lauda", "category": "sexual_explicit", "severity": "high", "match_type": "exact"},
20
+ {"word": "loda", "category": "sexual_explicit", "severity": "high", "match_type": "exact"},
21
+ {"word": "lavda", "category": "sexual_explicit", "severity": "high", "match_type": "exact"},
22
+ {"word": "randi", "category": "sexual_explicit", "severity": "extreme", "match_type": "exact"},
23
+ {"word": "saala", "category": "insults_harassment", "severity": "low", "match_type": "exact"},
24
+ {"word": "tatti", "category": "profanity", "severity": "low", "match_type": "exact"},
25
+ {"word": "ullu ka pattha", "category": "insults_harassment", "severity": "low", "match_type": "phrase"}
26
+ ]
27
+ }
@@ -0,0 +1,63 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "scam_domains": [
4
+ "discord-gifts.com",
5
+ "discord-nitro.com",
6
+ "discordnitro.com",
7
+ "dlscord.com",
8
+ "discrod.com",
9
+ "dlscord-gift.com",
10
+ "discord-app.net",
11
+ "discorcl.com",
12
+ "steamcommunity-gift.com",
13
+ "stearncommunity.com",
14
+ "steamcornmunity.com",
15
+ "free-robux-now.com",
16
+ "roblox-gifts.com",
17
+ "nitro-airdrop.com"
18
+ ],
19
+ "shorteners": [
20
+ "bit.ly",
21
+ "tinyurl.com",
22
+ "t.co",
23
+ "goo.gl",
24
+ "ow.ly",
25
+ "is.gd",
26
+ "buff.ly",
27
+ "rb.gy",
28
+ "cutt.ly",
29
+ "rebrand.ly",
30
+ "shorturl.at",
31
+ "tiny.cc",
32
+ "v.gd"
33
+ ],
34
+ "brand_domains": [
35
+ "discord.com",
36
+ "discordapp.com",
37
+ "discord.gg",
38
+ "steamcommunity.com",
39
+ "steampowered.com",
40
+ "youtube.com",
41
+ "youtu.be",
42
+ "spotify.com",
43
+ "roblox.com",
44
+ "github.com",
45
+ "paypal.com",
46
+ "twitch.tv",
47
+ "twitter.com",
48
+ "x.com",
49
+ "instagram.com",
50
+ "reddit.com"
51
+ ],
52
+ "presets": {
53
+ "youtube": ["youtube.com", "youtu.be"],
54
+ "spotify": ["spotify.com", "open.spotify.com"],
55
+ "soundcloud": ["soundcloud.com", "on.soundcloud.com"],
56
+ "tenor": ["tenor.com"],
57
+ "giphy": ["giphy.com"],
58
+ "github": ["github.com", "gist.github.com"],
59
+ "twitter": ["twitter.com", "x.com"],
60
+ "instagram": ["instagram.com"],
61
+ "reddit": ["reddit.com", "redd.it"]
62
+ }
63
+ }