├── LICENSE
├── README-fr.md
├── README.md
├── config_selfbot.py
├── fr_en.py
├── requirements.txt
├── rpc.json
├── rpc.py
└── selfbot.py
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2024 Sitois
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.
22 |
--------------------------------------------------------------------------------
/README-fr.md:
--------------------------------------------------------------------------------
1 | [](https://github.com/Sitois/Nuclear/blob/main/README.md)
2 |
3 |
4 | # NOTES
5 | PROJET ABNDONNEE .
6 | (parceke selfcord;py a ap d'auto reconnect et c chant et aussi pck discord.py-self et meilleur bref vient dans la v2 stp)
7 | Nuclear-V2: [https://github.com/Sitois/Nuclear-V2](https://github.com/Sitois/Nuclear-V2)
8 |
9 |
10 |
11 |
12 | ---
13 |
14 | Temps de Code du Projet: [](https://wakatime.com/badge/user/018af69f-9d50-4699-932d-026a9efb0401/project/018d13ec-4c15-459c-b9a8-e02089e7681b)
15 |
16 | Mon temps total de Code: [](https://wakatime.com/@018af69f-9d50-4699-932d-026a9efb0401)
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | [](https://github.com/Sitois/Nuclear/blob/main/README-fr.md)
2 |
3 | # NOTES
4 | CURRETNLY DEAD PROJECT.
5 | (because selfcord.py don't have auto reconnect and it's annoying. Nulcear-V2 use discord.py-self :))
6 | Nuclear-V2: [https://github.com/Sitois/Nuclear-V2](https://github.com/Sitois/Nuclear-V2)
7 |
8 | ---
9 |
10 | Project Code Time: [](https://wakatime.com/badge/user/018af69f-9d50-4699-932d-026a9efb0401/project/018d13ec-4c15-459c-b9a8-e02089e7681b)
11 |
12 | My total Code Time: [](https://wakatime.com/@018af69f-9d50-4699-932d-026a9efb0401)
--------------------------------------------------------------------------------
/config_selfbot.py:
--------------------------------------------------------------------------------
1 | #######################
2 | # selfbot #
3 | # basic #
4 | # config ^^ #
5 | #######################
6 |
7 | # en: SelfBot name
8 | # fr: Nom du SelfBot
9 | selfbot_name = "Nuclear SelfBot"
10 |
11 | # en: Account Token.
12 | # fr: Token du compte.
13 | token = ""
14 |
15 | # en: Commands prefix.
16 | # fr: Prefix des commandes.
17 | prefix = "&"
18 |
19 | # fr: Langue.
20 | # en: Language.
21 | lang = "en" # fr / en
22 |
23 | # fr: Default Nitro Sniper mode.
24 | # fr: Mode du Nitro Sniper par défaut. (True=On, False=Off)
25 | nitro_sniper = False
26 |
27 | # en: Commands delay of delete.
28 | # fr: Délai de supression des commandes.
29 | deltime = 20
30 | ########################
31 |
32 |
33 | #######################
34 | # fr: RPC par défaut #
35 | # en: Default RPC #
36 | #######################
37 |
38 | activity_name = "Nuclear"
39 | activity_details = "Nuclear $B"
40 | activity_state = "Best Free $B !"
41 | status_activity = "Online" # Online, Dnd, Invisible
42 | afk = False
43 |
44 | streaming_url = "https://twitch.tv/twitch"
45 | activity_button_one = "Nuclear !"
46 | activity_button_one_answer = "https://github.com/Sitois/Nuclear"
47 | activity_button_two = "Star it!"
48 | activity_button_two_answer = "https://github.com/Sitois/Nuclear"
49 | image_key = "mp:attachments/1135264530188992562/1198281648437993553/CIjvBOJ.png?ex=65be55bf&is=65abe0bf&hm=40a3c63ca07dfac28726eadae220a07412551a69deea021b73c24ae00933782e&=&format=webp&quality=lossless" # see &tuto
50 | application_id = "1200865454319747142"
51 | #################
52 |
53 | #################
54 | # config #
55 | # the #
56 | # ai #
57 | #################
58 |
59 | # fr: Identifiants et mot de passe de HuggingChat.
60 | # en: Email and Password of HuggingChat.
61 | hug_chat_email = ""
62 | hug_chat_password = ""
63 | # fr: langue dans laquelle l'IA dois vous répondre.
64 | # en: Language for the AI answer.
65 | language_ai = "english"
66 | # en: AI's answer delay of delete.
67 | # fr: Délai de supression des réponses.
68 | deltime_ai = 20
69 | #################
--------------------------------------------------------------------------------
/fr_en.py:
--------------------------------------------------------------------------------
1 | import config_selfbot
2 |
3 | #######################
4 | # selfbot #
5 | # translation >.< #
6 | #######################
7 |
8 | enable = {
9 | "fr": "activé",
10 | "en": "enabled"
11 | }
12 |
13 | disable = {
14 | "fr": "désactivé",
15 | "en": "disabled"
16 | }
17 |
18 | empty = {
19 | "fr": "Aucune",
20 | "en": "Empty"
21 | }
22 |
23 | author = {
24 | "fr": "Auteur",
25 | "en": "Author"
26 | }
27 |
28 | ####################
29 | # launch #
30 | # translation !!! #
31 | ####################
32 |
33 | start_text = {
34 | "fr": "Démarrage du SelfBot en cours...",
35 | "en": "Starting the SelfBot..."
36 | }
37 |
38 | ready_text = {
39 | "fr": "Connecté en tant que",
40 | "en": "Connected as"
41 | }
42 |
43 | ready_text_two = {
44 | "fr": "démarré en",
45 | "en": "started in"
46 | }
47 |
48 | error_check_version_one = {
49 | "fr": "Une nouvelle version",
50 | "en": "A new version"
51 | }
52 |
53 | error_check_version_two = {
54 | "fr": "est disponible:",
55 | "en": "is out at:"
56 | }
57 |
58 | error_check_version_three = {
59 | "fr": "Vous utilisez actuellement la version",
60 | "en": "You are currently using"
61 | }
62 |
63 | ####################
64 | # help #
65 | # translation !!! #
66 | ####################
67 |
68 |
69 |
70 | help_voice = {
71 | "fr": "Vocal",
72 | "en": "Voice"
73 | }
74 |
75 |
76 | help_general_hype = {
77 | "fr": "Défini votre badge HypeSquad",
78 | "en": "Set your HypeSquad badge"
79 | }
80 |
81 | help_general_ping = {
82 | "fr": "Affiche la latence du SelfBot",
83 | "en": "Display the Selfbot's ping"
84 | }
85 |
86 | help_general_sniper = {
87 | "fr": "Active / désactive le NitroSniper",
88 | "en": "Enable / disable NitroSniper"
89 | }
90 |
91 | error_no_message_snipe = {
92 | "fr": "❌ Aucun message supprimé récemment dans ce salon !",
93 | "en": "❌ No message deleted recently in this channel!"
94 | }
95 |
96 | help_config_restart = {
97 | "fr": "Redémarre le SelfBot (peut régler un bug)",
98 | "en": "Restart the SelfBot. (it can fix a bug)"
99 | }
100 |
101 | help_config_stop = {
102 | "fr": "Stop le SelfBot",
103 | "en": "Stop the SelfBot"
104 | }
105 |
106 | help_general_bio = {
107 | "fr": "Change la biographie du compte",
108 | "en": "Change account's bio"
109 | }
110 |
111 |
112 | help_voice_vc = {
113 | "fr": "Rejoins le salon vocal",
114 | "en": "Join the voice channel"
115 | }
116 |
117 | help_voice_cam = {
118 | "fr": "Rejoins le salon vocal avec une fausse caméra",
119 | "en": "Join the voice channel with a fake camera"
120 | }
121 |
122 | help_voice_stream = {
123 | "fr": "Rejoins le salon vocal avec un faux stream",
124 | "en": "Join the voice channel with a fake stream"
125 | }
126 |
127 | help_voice_leave = {
128 | "fr": "Quitte le salon vocal",
129 | "en": "Leave the voice channnel"
130 | }
131 |
132 | help_fun_cat = {
133 | "fr": "Chat mignon 🐈",
134 | "en": "Cute cat 🐈"
135 | }
136 |
137 | help_fun_good = {
138 | "fr": "Vous transforme en une Bonne Personne ! (*censure les insultes*)",
139 | "en": "Transform you into a Good Person ! (*no insults*)"
140 | }
141 |
142 | help_fun_call = {
143 | "fr": "Spam d'appel (le salon doit être un salon vocal !)",
144 | "en": "Join and Leave the voice (the channel must be a voice channel!)"
145 | }
146 |
147 | help_fun_gift = {
148 | "fr": "Envoie un faux lien Nitro",
149 | "en": "Send a fake Nitro"
150 | }
151 |
152 |
153 | ####################
154 | # commands #
155 | # translation !!! #
156 | ####################
157 |
158 | restart_command = {
159 | "fr": "✅ Le SelfBot a bien été redémarré (patientez quelques secondes...) !",
160 | "en": "✅ Succesfully restarted the SelfBot (wait a couple of seconds...)!"
161 | }
162 |
163 | stop_command = {
164 | "fr": "⭕ Le SelfBot a bien été stoppé.",
165 | "en": "⭕ Succesfully stopped the SelfBot."
166 | }
167 |
168 | ai_response = {
169 | "fr": "Réponse",
170 | "en": "Answer"
171 | }
172 |
173 | ai_wait = {
174 | "fr": "patientez",
175 | "en": "wait"
176 | }
177 |
178 | ai_help = {
179 | "fr": "Posez une question à l'IA",
180 | "en": "Ask a question to an IA"
181 | }
182 |
183 | ai_error = {
184 | "fr": "❌ Vous devez configurer l'e-mail et le mot de passe dans ``config_selfbot.py`` !",
185 | "en": "❌ You must configure e-mail and password in ``config_selfbot.py``!"
186 | }
187 |
188 | leave_voice = {
189 | "fr": "Déconnection du salon",
190 | "en": "Disconnected from"
191 | }
192 |
193 | leave_voice_error = {
194 | "fr": "Error while leaving the voice channel",
195 | "en": "Erreur lors de la déconnexion au salon vocal"
196 | }
197 |
198 | hype_command = {
199 | "fr": "modifié en",
200 | "en": "changed to"
201 | }
202 |
203 | bio_command = {
204 | "fr": "changée en",
205 | "en": "changed to"
206 | }
207 |
208 | spam_cooldown = {
209 | "fr": f"❌ Un spam est déjà en cours ! Pour l'arrêter, faites `{config_selfbot.prefix}restart`.",
210 | "en": f"❌ A spam is already active! To spam the current spam, do `{config_selfbot.prefix}restart`."
211 | }
212 |
213 | spam_invalid = {
214 | "fr": f"❌ Veuillez indiquer un nombre valide !",
215 | "en": f"❌ You must enter a valid number!"
216 | }
217 |
218 | voice_join = {
219 | "fr": "Connecté au salon vocal",
220 | "en": "Connected to"
221 | }
222 |
223 | voice_join_error = {
224 | "fr": "Erreur lors de la connexion au salon vocal",
225 | "en": "Error while trying to connect to the voice channel"
226 | }
227 |
228 | voice_join_cam = {
229 | "fr": "Connecté au salon vocal",
230 | "en": "Connected to"
231 | }
232 |
233 | voice_join_cam_two = {
234 | "fr": "avec la caméra activée",
235 | "en": "with camera"
236 | }
237 |
238 | voice_stream_join = {
239 | "fr": "avec le stream activé",
240 | "en": "with stream"
241 | }
242 |
243 |
244 |
245 |
246 | ####################
247 | # rpc #
248 | # translation !!! #
249 | ####################
250 |
251 |
252 |
253 |
254 | rpc_status_translate = {
255 | "fr": "Défini le statut du RPC",
256 | "en": "Set RPC's status"
257 | }
258 |
259 | rpc_name_translate = {
260 | "fr": "Défini le nom du RPC",
261 | "en": "Set RPC's name"
262 | }
263 |
264 | rpc_details_translate = {
265 | "fr": "Défini les details du RPC",
266 | "en": "Set RPC's details"
267 | }
268 |
269 | rpc_state_translate = {
270 | "fr": "Défini le \"state\" du RPC",
271 | "en": "Set RPC's state"
272 | }
273 |
274 | rpc_url_translate = {
275 | "fr": "Défini l'url de steaming du RPC ``(https://twitch.tv/nom)``",
276 | "en": "Set RPC's streaming URL ``(https://twitch.tv/name)``"
277 | }
278 |
279 | rpc_type_translate = {
280 | "fr": "Défini le type de votre RPC (game / watch / listen / stream)",
281 | "en": "Set RPC's type (game / watch / listen / stream)"
282 | }
283 |
284 | rpc_id_translate = {
285 | "fr": "Défini l'ID de l'application pour le RPC",
286 | "en": "Set RPC's Application ID"
287 | }
288 |
289 | rpc_image_translate = {
290 | "fr": "Défini l'image du RPC",
291 | "en": "Set RPC's image"
292 | }
293 |
294 | rpc_button_text_one_translate = {
295 | "fr": "Défini le texte du premier bouton du RPC",
296 | "en": "Set RPC's first button text"
297 | }
298 |
299 | rpc_button_link_one_translate = {
300 | "fr": "Défini le lien du premier bouton du RPC",
301 | "en": "Set RPC's first button link"
302 | }
303 |
304 | rpc_button_text_two_translate = {
305 | "fr": "Défini le texte du second bouton du RPC",
306 | "en": "Set RPC's second button text"
307 | }
308 |
309 | rpc_button_link_two_translate = {
310 | "fr": "Défini le lien du second bouton du RPC",
311 | "en": "Set RPC's second button link"
312 | }
313 |
314 |
315 |
316 |
317 | ####################
318 | # template #
319 | # translation !!! #
320 | ####################
321 |
322 | template_help_reset = {
323 | "fr": "Réinitialise votre RPC.",
324 | "en": "Reset your RPC."
325 | }
326 |
327 | template_help_default = {
328 | "fr": "Modifie votre RPC par défaut (`config_selfbot.py`).",
329 | "en": "Edit your RPC to default (`config_selfbot.py`)."
330 | }
331 |
332 | template_help_cod = {
333 | "fr": "Utilise la template \"Call Of Duty\".",
334 | "en": "Use \"Call Of Duty\"'s template."
335 | }
336 |
337 | template_help_dark = {
338 | "fr": "Utilise la template \"dark\".",
339 | "en": "Use \"dark\" template."
340 | }
341 |
342 | template_help_python = {
343 | "fr": "Utilise la template \"Python\".",
344 | "en": "Use \"Python\" template."
345 | }
346 |
347 | template_help_js = {
348 | "fr": "Utilise la template \"JavaScript\".",
349 | "en": "Use \"JavaScript\" template."
350 | }
351 |
352 | template_help_omori = {
353 | "fr": "Utilise la template \"Omori\".",
354 | "en": "Use \"Omori\" template."
355 | }
356 |
357 | template_help_car = {
358 | "fr": "Utilise la template \"Car\".",
359 | "en": "Use \"Car\" template."
360 | }
361 |
362 | template_help_self = {
363 | "fr": "Utilise la template \"Nuclear\".",
364 | "en": "Use \"Nuclear\" template."
365 | }
366 |
367 | template_help_webdeck = {
368 | "fr": "Utilise la template \"WebDeck\".",
369 | "en": "Use \"WebDeck\" template."
370 | }
371 |
372 | template_help_hi = {
373 | "fr": "Utilise la template \"Hi !\".",
374 | "en": "Use \"Hi !\" template."
375 | }
376 |
377 | template_help_youtube = {
378 | "fr": "Utilise la template \"Python\".",
379 | "en": "Use \"Python\" template."
380 | }
381 |
382 | template_help_gta = {
383 | "fr": "Utilise la template \"GTA VI\".",
384 | "en": "Use \"GTA VI\" template."
385 | }
386 |
387 |
388 |
389 | rpc_cod_details = {
390 | "fr": "En attente de mission...",
391 | "en": "Waiting for a mission..."
392 | }
393 |
394 | rpc_cod_state = {
395 | "fr": "En attente de mission...",
396 | "en": "In the main menu"
397 | }
398 |
399 |
400 | tutorial_rpc = {
401 | "fr": f""" Pour obtenir une image personnalisé:
402 | 1. Envoyer une image (gif, png...) dans Discord. (dans n'importe quelle salon)
403 | 2. Clique droit et "Copier l'adresse de l'image".
404 | 3. Faites `{config_selfbot.prefix}rpc_image mp:attachements/67484738743874387438/657438923487543/exemple.png`.
405 | 4. Fini !""",
406 | "en": f""" To get a custom rpc image, you should:
407 | 1. Upload an image (gif, png...) into Discord. (in any channel)
408 | 2. Right Click and "Copy Image Link".
409 | 3. Do `{config_selfbot.prefix}rpc_image mp:attachements/67484738743874387438/657438923487543/example.png`.
410 | 4. Done !"""
411 | }
--------------------------------------------------------------------------------
/requirements.txt:
--------------------------------------------------------------------------------
1 | selfcord.py==0.2.4
2 | colorama
3 | requests
4 | hugchat
--------------------------------------------------------------------------------
/rpc.json:
--------------------------------------------------------------------------------
1 | {
2 | "activity_name": "VOID",
3 | "activity_details": "VOID",
4 | "activity_state": "VOID",
5 | "status_activity": "VOID",
6 | "streaming_url": "VOID",
7 | "activity_button_one": "VOID",
8 | "activity_button_one_answer": "VOID",
9 | "activity_button_two": "VOID",
10 | "activity_button_two_answer": "VOID",
11 | "image_key": "VOID",
12 | "application_id": "VOID"
13 | }
--------------------------------------------------------------------------------
/rpc.py:
--------------------------------------------------------------------------------
1 | import json
2 |
3 | file_name = "./rpc.json"
4 |
5 | def read_variable_json(nom_variable):
6 | global file_name
7 | try:
8 | with open(file_name, "r") as file:
9 | data = json.load(file)
10 |
11 | if nom_variable in data:
12 | return data[nom_variable]
13 | except Exception as e:
14 | print(f"Erreur while trying to read the rpc.json: {e}")
15 | return None
16 |
17 |
18 | def edit_variable_json(nom_variable, nouvelle_valeur):
19 | global file_name
20 | with open(file_name, "r") as file:
21 | data = json.load(file)
22 |
23 | if nom_variable in data:
24 | data[nom_variable] = nouvelle_valeur
25 |
26 | with open(file_name, "w") as file:
27 | json.dump(data, file, indent=4)
--------------------------------------------------------------------------------
/selfbot.py:
--------------------------------------------------------------------------------
1 | import subprocess
2 | try:
3 | import sys
4 | import os
5 | import random
6 | import asyncio
7 | import json
8 | import platform
9 | import ctypes
10 | import time
11 | import config_selfbot
12 | import fr_en
13 | import rpc
14 | from colorama import Fore, Style, Back
15 | import requests
16 | import selfcord
17 | from hugchat import hugchat
18 | from hugchat.login import Login
19 | except ImportError:
20 | subprocess.check_call([sys.executable, "-m", "pip", "install", '-r' , 'requirements.txt'])
21 | import sys
22 | import os
23 | import random
24 | import asyncio
25 | import json
26 | import platform
27 | import ctypes
28 | import time
29 | import config_selfbot
30 | import fr_en
31 | import rpc
32 | from colorama import Fore, Style, Back
33 | import requests
34 | import selfcord
35 | from hugchat import hugchat
36 | from hugchat.login import Login
37 |
38 | os.system('cls' if os.name == 'nt' else 'clear')
39 |
40 | nuclear_version = "v0.9"
41 |
42 | print(Fore.LIGHTCYAN_EX + f"""$$\ $$\ $$\
43 | $$$\ $$ | $$ |
44 | $$$$\ $$ |$$\ $$\ $$$$$$$\ $$ | $$$$$$\ $$$$$$\ $$$$$$\
45 | $$ $$\$$ |$$ | $$ |$$ _____|$$ |$$ __$$\ \____$$\ $$ __$$\
46 | $$ \$$$$ |$$ | $$ |$$ / $$ |$$$$$$$$ | $$$$$$$ |$$ | \__|
47 | $$ |\$$$ |$$ | $$ |$$ | $$ |$$ ____|$$ __$$ |$$ |
48 | $$ | \$$ |\$$$$$$ |\$$$$$$$\ $$ |\$$$$$$$\ \$$$$$$$ |$$ |
49 | \__| \__| \______/ \_______|\__| \_______| \_______|\__| {nuclear_version} """, Style.RESET_ALL)
50 |
51 |
52 |
53 | def set_terminal_title(title):
54 | system = platform.system()
55 | if system == 'Windows':
56 | ctypes.windll.kernel32.SetConsoleTitleW(title)
57 | elif system == 'Darwin':
58 | subprocess.run(['osascript', '-e', f'tell application "Terminal" to set custom title of front window to "{title}"'])
59 | elif system == 'Linux':
60 | sys.stdout.write(f"\x1b]2;{title}\x07")
61 | sys.stdout.flush()
62 |
63 | try:
64 | set_terminal_title("| Nuclear SelfBot |")
65 | except Exception as e:
66 | print(f"Error while trying to change the terminal name: {e}")
67 |
68 |
69 | if config_selfbot.token == "":
70 | config_selfbot.token = input(f"Token: ")
71 |
72 | if config_selfbot.lang == "":
73 | print("""Language Choice / Choix de la langue:
74 | fr: Français
75 | en: English""")
76 | config_selfbot.lang = input("fr / en: ")
77 |
78 | if config_selfbot.prefix == "":
79 | config_selfbot.prefix = input(f"Prefix: ")
80 |
81 | if config_selfbot.selfbot_name == "":
82 | config_selfbot.selfbot_name = input(f"SelfBot name: ")
83 |
84 |
85 | def check_latest_version(repo_owner, repo_name):
86 | url = f"https://api.github.com/repos/{repo_owner}/{repo_name}/releases/latest"
87 | response = requests.get(url)
88 |
89 | if response.status_code == 200:
90 | release_info = response.json()
91 | latest_version = release_info['tag_name']
92 | return latest_version
93 | else:
94 | return None
95 |
96 | def call_check_repo():
97 | global nuclear_version
98 | repo_owner = "Sitois"
99 | repo_name = "Nuclear"
100 | current_version = nuclear_version
101 |
102 | latest_version = check_latest_version(repo_owner, repo_name)
103 | if latest_version:
104 | if not latest_version == current_version:
105 | print(Fore.BLUE, "[INFO]", f"{fr_en.error_check_version_one[config_selfbot.lang]} ({latest_version}) {fr_en.error_check_version_two[config_selfbot.lang]} https://github.com/Sitois/Nuclear/releases/tag/{latest_version}")
106 | print(f" {fr_en.error_check_version_three[config_selfbot.lang]} {current_version}", Style.RESET_ALL)
107 |
108 | try:
109 | call_check_repo()
110 | except Exception as e:
111 | print(f"Error while trying to check the last Nuclear version: {e}")
112 |
113 | print(Fore.LIGHTYELLOW_EX, "[#]", Fore.YELLOW, fr_en.start_text[config_selfbot.lang], Style.RESET_ALL)
114 |
115 |
116 |
117 | #######################
118 | # selfbot #
119 | # config ^^ #
120 | #######################
121 |
122 | token = config_selfbot.token
123 |
124 | nitro_sniper = config_selfbot.nitro_sniper
125 |
126 | deltime = config_selfbot.deltime
127 |
128 | deltime_ai = config_selfbot.deltime_ai
129 |
130 |
131 |
132 | afk = config_selfbot.afk
133 | #################
134 |
135 |
136 |
137 | is_spamming = False
138 |
139 | good_person = False
140 |
141 |
142 | alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
143 |
144 | chiffres = [1, 2, 3, 4, 5 ,6, 7, 8, 9]
145 |
146 |
147 | poetry = {
148 | "fr": [
149 | "Jour meilleur n'existe qu'avec douleur.",
150 | "La seule personne que vous êtes destiné à devenir est la personne que vous décidez d'être.",
151 | "L'avenir appartient à ceux qui croient en la beauté de leurs rêves.",
152 | "L'échec est le fondement de la réussite.",
153 | "Ne rêvez pas votre vie, vivez vos rêves.",
154 | "Crois en toi, et les autres suivront.",
155 | "Sois le changement que tu veux voir dans le monde.",
156 | "Poursuis tes rêves, ils connaissent le chemin.",
157 | "La vie récompense l'action.",
158 | "Tu es plus fort que tu ne le crois.",
159 | "Le succès commence par l'action.",
160 | "La persévérance bat le talent.",
161 | "Ne remettez pas à demain.",
162 | "Chaque effort compte.",
163 | "Les montagnes les plus hautes ont les pentes les plus raides.",
164 | "Les éclats de lumière percent l'obscurité la plus profonde."
165 | ],
166 | "en": [
167 | "Your attitude determines your direction.",
168 | "Progress, not perfection.",
169 | "Embrace the challenges, for they are the stepping stones to success.",
170 | "Embrace failure as a stepping stone, not a stumbling block.",
171 | "The only limits that exist are the ones you place on yourself.",
172 | "Courage is not the absence of fear but the triumph over it.",
173 | "Dreams don't work unless you do",
174 | "Opportunities don't happen. You create them.",
175 | "Don't wait for the perfect moment; take the moment and make it perfect.",
176 | "The only way to do great work is to love what you do.",
177 | "Believe you can, and you're halfway there.",
178 | "Don't watch the clock; do what it does. Keep going"
179 | ],
180 | }
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 | ####################
190 | # start #
191 | # setup !!! #
192 | ####################
193 |
194 |
195 |
196 |
197 |
198 | bot = selfcord.Bot(prefixes=[config_selfbot.prefix], inbuilt_help=False)
199 |
200 | @bot.on("ready")
201 | async def ready(time):
202 | print(Fore.RED, "[+]", Fore.LIGHTRED_EX, f"{fr_en.ready_text[config_selfbot.lang]} @{bot.user.name} ({bot.user.id}), {fr_en.ready_text_two[config_selfbot.lang]} {time:0.2f} seconds.", Style.RESET_ALL)
203 | print(Fore.MAGENTA + " ------------------", Style.RESET_ALL)
204 | await bot.change_presence(status=config_selfbot.status_activity, afk=config_selfbot.afk, activity=selfcord.Activity.Game(name=config_selfbot.activity_name, details=config_selfbot.activity_details, state=config_selfbot.activity_state, buttons={config_selfbot.activity_button_one: config_selfbot.activity_button_one_answer, config_selfbot.activity_button_two: config_selfbot.activity_button_two_answer}, key=config_selfbot.image_key, application_id=config_selfbot.application_id))
205 |
206 |
207 | #############
208 | #############
209 |
210 |
211 |
212 |
213 | ####################
214 | # help #
215 | # command !!! #
216 | ####################
217 |
218 | @bot.cmd(description="Help command !!", aliases=["aide"])
219 | async def help(ctx):
220 | msg = await ctx.message.edit(f"""☄ __**{config_selfbot.selfbot_name} :**__ ☄
221 | ☄ "{random.choice(poetry[config_selfbot.lang])}" ☄
222 |
223 | 🏮| __**General:**__ `{config_selfbot.prefix}general`
224 | 🎤| __**{fr_en.help_voice[config_selfbot.lang]}:**__ `{config_selfbot.prefix}voice`
225 | 🕹️| __**Rich Presence:**__ `{config_selfbot.prefix}presence`
226 | 🎲| __**Fun:**__ `{config_selfbot.prefix}fun`
227 | ⚙️| __**Config:**__ `{config_selfbot.prefix}config`""")
228 | await asyncio.sleep(deltime)
229 | await msg.delete()
230 |
231 | #############
232 |
233 | @bot.cmd()
234 | async def fun(ctx):
235 | msg = await ctx.message.edit(f"""☄ __**{config_selfbot.selfbot_name} :**__ ☄
236 |
237 | 🎲| __**Fun:**__
238 | `{config_selfbot.prefix}cat`: {fr_en.help_fun_cat[config_selfbot.lang]}.
239 | `{config_selfbot.prefix}good`: {fr_en.help_fun_good[config_selfbot.lang]}.
240 | `{config_selfbot.prefix}call`: {fr_en.help_fun_call[config_selfbot.lang]}.
241 | `{config_selfbot.prefix}gift`: {fr_en.help_fun_gift[config_selfbot.lang]}.""")
242 | await asyncio.sleep(deltime)
243 | await msg.delete()
244 |
245 | #############
246 |
247 | @bot.cmd()
248 | async def config(ctx):
249 | msg = await ctx.message.edit(f"""☄ __**{config_selfbot.selfbot_name} :**__ ☄
250 |
251 | ⚙️| __**Config:**__
252 | `{config_selfbot.prefix}nitrosniper`: {fr_en.help_general_sniper[config_selfbot.lang]}.
253 | `{config_selfbot.prefix}restart`: {fr_en.help_config_restart[config_selfbot.lang]}.
254 | `{config_selfbot.prefix}stop`: {fr_en.help_config_stop[config_selfbot.lang]}.""")
255 | await asyncio.sleep(deltime)
256 | await msg.delete()
257 |
258 | #############
259 |
260 | @bot.cmd()
261 | async def general(ctx):
262 | msg = await ctx.message.edit(f"""☄ __**{config_selfbot.selfbot_name} :**__ ☄
263 |
264 | 🏮| __**GENERAL:**__
265 | `{config_selfbot.prefix}snipe`: Snipe.
266 | `{config_selfbot.prefix}hype / {config_selfbot.prefix}squad`: {fr_en.help_general_hype[config_selfbot.lang]} (bravery, brilliance, balance).
267 | `{config_selfbot.prefix}ping / {config_selfbot.prefix}latency`: {fr_en.help_general_ping[config_selfbot.lang]}.
268 | `{config_selfbot.prefix}flood`: Flood.
269 | `{config_selfbot.prefix}bio`: {fr_en.help_general_bio[config_selfbot.lang]}.
270 | `{config_selfbot.prefix}spam`: Spam. (`{config_selfbot.prefix}spam` 2 hello)
271 | `{config_selfbot.prefix}ai`: {fr_en.ai_help[config_selfbot.lang]}. (`{config_selfbot.prefix}ai` how are you today ?)
272 | `{config_selfbot.prefix}lang`""")
273 | await asyncio.sleep(deltime)
274 | await msg.delete()
275 |
276 | #############
277 |
278 | @bot.cmd()
279 | async def voice(ctx):
280 | msg = await ctx.message.edit(f"""☄ __**{config_selfbot.selfbot_name} :**__ ☄
281 |
282 | 🎤| __**Voice:**__
283 | `{config_selfbot.prefix}joinvc`: {fr_en.help_voice_vc[config_selfbot.lang]} (joinvc ).
284 | `{config_selfbot.prefix}joincam`: {fr_en.help_voice_cam[config_selfbot.lang]} (joincam ).
285 | `{config_selfbot.prefix}joinstream`: {fr_en.help_voice_stream[config_selfbot.lang]} (joinstream ).
286 | `{config_selfbot.prefix}leavevc`: {fr_en.help_voice_leave[config_selfbot.lang]} (leavevc .""")
287 | await asyncio.sleep(deltime)
288 | await msg.delete()
289 |
290 |
291 |
292 |
293 |
294 | ####################
295 | # general #
296 | # command !!! #
297 | ####################
298 |
299 | sniped_messages = {}
300 |
301 | @bot.on("message_delete")
302 | async def message_logger(message):
303 | global sniped_messages
304 | try:
305 | sniped_messages[message.channel.id] = {
306 | 'author': message.author,
307 | 'content': message.content,
308 | 'image': message.attachments[0].url if message.attachments else fr_en.empty[config_selfbot.lang]
309 | }
310 | except Exception:
311 | return
312 |
313 |
314 | @bot.cmd()
315 | async def snipe(ctx):
316 | global sniped_messages
317 | sniped_message = sniped_messages.get(ctx.channel.id)
318 | if sniped_message:
319 | msg = await ctx.message.edit(f"""__**🔫 Sniper:**__
320 |
321 | 🗣️ {fr_en.author[config_selfbot.lang]}: {sniped_message['author']}
322 | 📩 Message: {sniped_message['content']}
323 | 🖼️ Image: {sniped_message['image']}""")
324 | await asyncio.sleep(deltime)
325 | await msg.delete()
326 | else:
327 | msg = await ctx.message.edit(fr_en.error_no_message_snipe[config_selfbot.lang])
328 | await asyncio.sleep(deltime)
329 | await msg.delete()
330 |
331 | #############
332 |
333 | @bot.cmd(description="Change HypeSquad badge.", aliases=["squad"])
334 | async def hype(ctx):
335 | await bot.change_hypesquad(house=ctx.content.split()[1])
336 | msg = await ctx.message.edit(f"🪄 HypeSquad {fr_en.hype_command[config_selfbot.lang]} '{ctx.message.content.split()[1]}'")
337 | await asyncio.sleep(deltime)
338 | await msg.delete()
339 |
340 | #############
341 |
342 | def fix_ai_character(texte, encodage_source="utf-8", encodage_destination="utf-8"):
343 | try:
344 |
345 | if any(ord(char) > 127 for char in texte):
346 | texte_correct = texte.encode(encodage_source, errors="ignore").decode(encodage_destination)
347 | return texte_correct
348 | else:
349 | return texte
350 | except Exception as e:
351 | print(f"Error while trying to correct the AI text: {e}")
352 | return None
353 |
354 |
355 | @bot.cmd()
356 | async def ai(ctx):
357 | message_split = ctx.message.content.split()
358 | content = ctx.message.content.replace(f"{message_split[0]} ", "")
359 | if not config_selfbot.hug_chat_password == "" and not config_selfbot.hug_chat_email == "":
360 | sign = Login(config_selfbot.hug_chat_email, config_selfbot.hug_chat_password)
361 | cookies = sign.login()
362 | chatbot = hugchat.ChatBot(cookies=cookies.get_dict())
363 | ai_ask = content
364 | await ctx.message.edit(f"⌚ {fr_en.ai_wait[config_selfbot.lang]}...")
365 | query_result = chatbot.query(f"Question: {ai_ask}. You MUST answer entirely in {config_selfbot.language_ai} with a maximum of 1800 characters. You MUST anwser normally to the question (without specifying the characters limit.)")
366 | fixed_answer = fix_ai_character(str(query_result), encodage_source="iso-8859-1")
367 | msg = await ctx.message.edit( f"""❓| Question: {ai_ask}
368 | ✅| {fr_en.ai_response[config_selfbot.lang]}: {fixed_answer}""")
369 | await asyncio.sleep(deltime_ai)
370 | await msg.delete()
371 | else:
372 | msg = await ctx.message.edit(fr_en.ai_error[config_selfbot.lang])
373 | await asyncio.sleep(deltime)
374 | await msg.delete()
375 |
376 | #############
377 |
378 | @bot.cmd(description="Give the Ping.", aliases=["latency"])
379 | async def ping(ctx):
380 | msg = await ctx.message.edit(f"🏓 Pong ! (Ping: **{round(bot.latency * 1000)}ms**)")
381 | await asyncio.sleep(deltime)
382 | await msg.delete()
383 |
384 | #############
385 |
386 | @bot.cmd()
387 | async def spam(ctx):
388 | global is_spamming
389 | message_split = ctx.message.content.split()
390 |
391 | content = ctx.message.content.replace(f"{message_split[0]} {message_split[1]} ", "")
392 |
393 | try:
394 | count = int(message_split[1]) - 1
395 | except Exception:
396 | msg = await ctx.message.edit(f"{fr_en.spam_invalid[config_selfbot.lang]}!")
397 | await asyncio.sleep(deltime)
398 | await msg.delete()
399 | return
400 | if is_spamming == False:
401 | is_spamming = True
402 |
403 | await ctx.message.edit(content)
404 |
405 | for i in range(count):
406 | await ctx.channel.send(content)
407 | await asyncio.sleep(0.5)
408 | is_spamming = False
409 | else:
410 | msg = await ctx.message.edit(fr_en.spam_cooldown[config_selfbot.lang])
411 | await asyncio.sleep(deltime)
412 | await msg.delete()
413 |
414 | #############
415 |
416 | @bot.cmd()
417 | async def bio(ctx):
418 | message_split = ctx.message.content.split()
419 | new_bio = ctx.message.content.replace(f"{message_split[0]} ", "")
420 | await bot.edit_profile(bio=new_bio)
421 | msg = await ctx.message.edit(f"📖 Bio {fr_en.bio_command[config_selfbot.lang]} \"`{new_bio}`\"")
422 | await asyncio.sleep(deltime)
423 | await msg.delete()
424 |
425 | #############
426 |
427 | @bot.cmd()
428 | async def lang(ctx):
429 | if config_selfbot.lang == "fr":
430 | config_selfbot.lang = "en"
431 | msg = await ctx.message.edit("🟢 Language set to **English**.")
432 | await asyncio.sleep(deltime)
433 | await msg.delete()
434 | elif config_selfbot.lang == "en":
435 | config_selfbot.lang = "fr"
436 | msg = await ctx.message.edit("🟢 Langue changé en **Français**.")
437 | await asyncio.sleep(deltime)
438 | await msg.delete()
439 |
440 | #############
441 |
442 | @bot.on("message")
443 | async def nitro_detect(ctx):
444 | if nitro_sniper == True:
445 | if not ctx.author.id == bot.user.id:
446 | if "discord.gift/" in ctx.content:
447 | reste = ctx.content.split("discord.gift/")[1]
448 | await bot.redeem_nitro(f"{reste}")
449 | print(Fore.LIGHTYELLOW_EX, "[~]", Fore.YELLOW, f"Nitro Sniper: discord.gift/{reste}", Style.RESET_ALL)
450 |
451 |
452 |
453 |
454 |
455 | ####################
456 | # voice #
457 | # command !!! #
458 | ####################
459 |
460 | @bot.cmd(description="Join a voice channel.")
461 | async def joinvc(ctx):
462 | voice_channel = bot.get_channel(ctx.message.content.split()[1])
463 |
464 | try:
465 | await selfcord.VoiceChannel.call(voice_channel)
466 | msg = await ctx.message.edit(f"📲 {fr_en.voice_join[config_selfbot.lang]} {voice_channel.name}.")
467 | await asyncio.sleep(deltime)
468 | await msg.delete()
469 | except Exception as e:
470 | msg = await ctx.message.edit(f"❌ {fr_en.voice_join_error[config_selfbot.lang]} : {e}")
471 | await asyncio.sleep(deltime)
472 | await msg.delete()
473 |
474 | #############
475 |
476 | @bot.cmd(description="Join a voice channel with camera.")
477 | async def joincam(ctx):
478 | voice_channel = bot.get_channel(ctx.message.content.split()[1])
479 | try:
480 | await selfcord.VoiceChannel.video_call(voice_channel)
481 | msg = await ctx.message.edit(f"🎥 {fr_en.voice_join_cam[config_selfbot.lang]} {voice_channel.name} {fr_en.voice_join_cam_two[config_selfbot.lang]}.")
482 | await asyncio.sleep(deltime)
483 | await msg.delete()
484 | except Exception as e:
485 | msg = await ctx.message.edit(f"❌ {fr_en.voice_join_error[config_selfbot.lang]} : {e}")
486 | await asyncio.sleep(deltime)
487 | await msg.delete()
488 |
489 | #############
490 |
491 | @bot.cmd(description="Join a voice channel with a stream.")
492 | async def joinstream(ctx):
493 | voice_channel = bot.get_channel(ctx.message.content.split()[1])
494 |
495 | try:
496 | await selfcord.VoiceChannel.stream_call(voice_channel)
497 | msg = await ctx.message.edit(f"🖥️ {fr_en.voice_join[config_selfbot.lang]} {voice_channel.name} {fr_en.voice_stream_join[config_selfbot.lang]}.")
498 | await asyncio.sleep(deltime)
499 | await msg.delete()
500 | except Exception as e:
501 | msg = await ctx.message.edit(f"❌ {fr_en.voice_join_error[config_selfbot.lang]} : {e}")
502 | await asyncio.sleep(deltime)
503 | await msg.delete()
504 |
505 | #############
506 |
507 | @bot.cmd(description="Leave the voice")
508 | async def leavevc(ctx):
509 | voice_channel = bot.get_channel(ctx.message.content.split()[1])
510 | try:
511 | await selfcord.VoiceChannel.leave_call(voice_channel)
512 | msg = await ctx.message.edit(f"💼 {fr_en.leave_voice[config_selfbot.lang]} {voice_channel.name}.")
513 | await asyncio.sleep(deltime)
514 | await msg.delete()
515 | except Exception as e:
516 | msg = await ctx.message.edit(f"❌ {fr_en.leave_voice_error[config_selfbot.lang]} : {e}")
517 | await asyncio.sleep(deltime)
518 | await msg.delete()
519 |
520 |
521 |
522 |
523 |
524 |
525 | ####################
526 | # fun #
527 | # command !!! #
528 | ####################
529 |
530 | @bot.cmd()
531 | async def call(ctx):
532 | voice_channel = bot.get_channel(ctx.channel.id)
533 | await ctx.message.delete()
534 | for i in range(5):
535 | try:
536 | await selfcord.VoiceChannel.call(voice_channel)
537 | await asyncio.sleep(0.5)
538 | await selfcord.VoiceChannel.leave_call(voice_channel)
539 | await asyncio.sleep(0.6)
540 | except Exception as e:
541 | print(f"{fr_en.voice_join_error[config_selfbot.lang]}: {e}")
542 |
543 | #############
544 |
545 | good_person_list =[
546 | "GeForce RTX 4000",
547 | "🍗",
548 | "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu.",
549 | "AMD Ryzen™ 9 7900",
550 | "Intel Core ",
551 | "🐈",
552 | "🍟",
553 | "yipeeeeeeeee",
554 | "😍",
555 | "🌠",
556 | "u r beautiful",
557 | "you are all very intelligent",
558 | "excuse me"
559 | ]
560 |
561 |
562 | @bot.cmd()
563 | async def good(ctx):
564 | global good_person
565 | if good_person == False:
566 | good_person = True
567 | msg = await ctx.message.edit(f"🌈 Good Person {fr_en.enable[config_selfbot.lang]}")
568 | await asyncio.sleep(deltime)
569 | await msg.delete()
570 | elif good_person == True:
571 | good_person = False
572 | msg = await ctx.message.edit(f"🔥 Good Person {fr_en.disable[config_selfbot.lang]}")
573 | await asyncio.sleep(deltime)
574 | await msg.delete()
575 |
576 | #############
577 |
578 | @bot.on("message")
579 | async def insult_detect(ctx):
580 | global good_person
581 | if good_person == True:
582 | if ctx.author.id == bot.user.id:
583 | if "fuck" in ctx.content:
584 | await ctx.edit(random.choice(good_person_list))
585 | elif "shit" in ctx.content:
586 | await ctx.edit(random.choice(good_person_list))
587 | elif "pute" in ctx.content:
588 | await ctx.edit(random.choice(good_person_list))
589 | elif "connard" in ctx.content:
590 | await ctx.edit(random.choice(good_person_list))
591 | elif "connasse" in ctx.content:
592 | await ctx.edit(random.choice(good_person_list))
593 | elif "conasse" in ctx.content:
594 | await ctx.edit(random.choice(good_person_list))
595 | elif "nigg" in ctx.content:
596 | await ctx.edit(random.choice(good_person_list))
597 | elif "bitch" in ctx.content:
598 | await ctx.edit(random.choice(good_person_list))
599 | elif "kys" in ctx.content:
600 | await ctx.edit(random.choice(good_person_list))
601 | elif "fdp" in ctx.content:
602 | await ctx.edit(random.choice(good_person_list))
603 | elif "ntm" in ctx.content:
604 | await ctx.edit(random.choice(good_person_list))
605 |
606 | #############
607 |
608 | @bot.cmd()
609 | async def cat(ctx):
610 | requests.get('https://api.thecatapi.com/v1/images/search')
611 |
612 | if requests.get('https://api.thecatapi.com/v1/images/search').status_code == 200:
613 | data = json.loads(requests.get('https://api.thecatapi.com/v1/images/search').text)
614 | cat_image_url = data[0]['url']
615 | await ctx.message.edit(cat_image_url)
616 | else:
617 | await ctx.message.edit(f"failed for the cute cat: {requests.get('https://api.thecatapi.com/v1/images/search').text}")
618 | return
619 |
620 | #############
621 |
622 | @bot.cmd()
623 | async def gift(ctx):
624 | await ctx.message.edit(f"discord.gift/{random.choice(chiffres)}{random.choice(alphabet).upper()}{random.choice(alphabet).upper()}{random.choice(alphabet).upper()}{random.choice(alphabet)}{random.choice(alphabet)}{random.choice(alphabet)}{random.choice(chiffres)}{random.choice(alphabet).upper()}{random.choice(alphabet)}{random.choice(chiffres)}{random.choice(alphabet)}{random.choice(alphabet).upper()}{random.choice(alphabet).upper()}{random.choice(alphabet)}{random.choice(alphabet)}{random.choice(chiffres)}")
625 |
626 |
627 | ####################
628 | # setings #
629 | # command !!! #
630 | ####################
631 |
632 |
633 |
634 | def restart_selfbot():
635 | python = sys.executable
636 | os.execl(python, python, *sys.argv)
637 |
638 | @bot.cmd()
639 | async def restart(ctx):
640 | msg = await ctx.message.edit(fr_en.restart_command[config_selfbot.lang])
641 | time.sleep(2)
642 | await msg.delete()
643 | restart_selfbot()
644 |
645 | #############
646 |
647 | @bot.cmd()
648 | async def nitrosniper(ctx):
649 | global nitro_sniper
650 | if nitro_sniper == False:
651 | nitro_sniper = True
652 | msg = await ctx.message.edit("🟢 Nitro Sniper **On**.")
653 | await asyncio.sleep(deltime)
654 | await msg.delete()
655 | elif nitro_sniper == True:
656 | nitro_sniper = False
657 | msg = await ctx.message.edit("🔴 Nitro Sniper **Off**.")
658 | await asyncio.sleep(deltime)
659 | await msg.delete()
660 |
661 | #############
662 |
663 | @bot.cmd()
664 | async def stop(ctx):
665 | msg = await ctx.message.edit(fr_en.stop_command[config_selfbot.lang])
666 | time.sleep(2)
667 | await msg.delete()
668 | exit()
669 |
670 |
671 |
672 | #################
673 | # rpc #
674 | # commands #
675 | #################
676 |
677 |
678 |
679 | @bot.cmd()
680 | async def presence(ctx):
681 | msg = await ctx.message.edit(f'''☄ __**{config_selfbot.selfbot_name} :**__ ☄
682 |
683 | 🕹️| __**Rich Presence Settings:**__
684 | `{config_selfbot.prefix}rpc_status`: {fr_en.rpc_status_translate[config_selfbot.lang]}. (Online, Dnd, Invisible)
685 | `{config_selfbot.prefix}rpc_name`: {fr_en.rpc_name_translate[config_selfbot.lang]}.
686 | `{config_selfbot.prefix}rpc_details`: {fr_en.rpc_details_translate[config_selfbot.lang]}.
687 | `{config_selfbot.prefix}rpc_state`: {fr_en.rpc_state_translate[config_selfbot.lang]}.
688 | `{config_selfbot.prefix}rpc_url`: {fr_en.rpc_url_translate[config_selfbot.lang]}.
689 | `{config_selfbot.prefix}rpc_type`: {fr_en.rpc_type_translate[config_selfbot.lang]}.
690 | `{config_selfbot.prefix}rpc_application_id`: {fr_en.rpc_id_translate[config_selfbot.lang]}.
691 | `{config_selfbot.prefix}rpc_image`: {fr_en.rpc_image_translate[config_selfbot.lang]}. (`{config_selfbot.prefix}tuto` !!!)
692 | `{config_selfbot.prefix}rpc_button_text_one`: {fr_en.rpc_button_text_one_translate[config_selfbot.lang]}.
693 | `{config_selfbot.prefix}rpc_button_link_one`: {fr_en.rpc_button_link_one_translate[config_selfbot.lang]}.
694 | `{config_selfbot.prefix}rpc_button_text_two`: {fr_en.rpc_button_text_two_translate[config_selfbot.lang]}.
695 | `{config_selfbot.prefix}rpc_button_link_two`: {fr_en.rpc_button_link_two_translate[config_selfbot.lang]}.
696 | 📖| __**Templates:**__
697 | `{config_selfbot.prefix}template`''')
698 | await asyncio.sleep(deltime)
699 | await msg.delete()
700 |
701 | #############
702 |
703 | @bot.cmd()
704 | async def template(ctx):
705 | msg = await ctx.message.edit(f'''☄ __**{config_selfbot.selfbot_name} :**__ ☄
706 |
707 | 📖| __**Templates:**__
708 | `{config_selfbot.prefix}use`:
709 | "reset": {fr_en.template_help_reset[config_selfbot.lang]}
710 | "default": {fr_en.template_help_default[config_selfbot.lang]}
711 | "hi": {fr_en.template_help_hi[config_selfbot.lang]}
712 | "webdeck": {fr_en.template_help_webdeck[config_selfbot.lang]}
713 | "omori": {fr_en.template_help_omori[config_selfbot.lang]}
714 | "youtube": {fr_en.template_help_youtube[config_selfbot.lang]}
715 | "car": {fr_en.template_help_car[config_selfbot.lang]}
716 | "self": {fr_en.template_help_self[config_selfbot.lang]}
717 | "dark": {fr_en.template_help_dark[config_selfbot.lang]}
718 | "python": {fr_en.template_help_python[config_selfbot.lang]}
719 | "js": {fr_en.template_help_js[config_selfbot.lang]}
720 | "cod": {fr_en.template_help_cod[config_selfbot.lang]}
721 | "gta": {fr_en.template_help_gta[config_selfbot.lang]}''')
722 | await asyncio.sleep(deltime)
723 | await msg.delete()
724 |
725 | #############
726 |
727 | @bot.cmd()
728 | async def tuto(ctx):
729 | msg = await ctx.message.edit(f"""☄ __**{config_selfbot.selfbot_name} :**__ ☄
730 |
731 | 🎮| __**Rich Presence Image Tutorial:**__
732 | {fr_en.tutorial_rpc[config_selfbot.lang]}""")
733 | await asyncio.sleep(deltime)
734 | await msg.delete()
735 |
736 | #############
737 |
738 | @bot.cmd()
739 | async def use(ctx):
740 | choice = ctx.message.content.split()[1]
741 | if choice.lower() == "hi":
742 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
743 | afk=afk,
744 | activity=selfcord.Activity.Game(name="Hi !",
745 | details="hi !!!!!!",
746 | state=None,
747 | buttons={config_selfbot.activity_button_one if rpc.read_variable_json("activity_button_one") == "VOID" else rpc.read_variable_json("activity_button_one"): config_selfbot.activity_button_one_answer if rpc.read_variable_json("activity_button_one_answer") == "VOID" else rpc.read_variable_json("activity_button_one_answer"), config_selfbot.activity_button_two if rpc.read_variable_json("activity_button_two") == "VOID" else rpc.read_variable_json("activity_button_two"): config_selfbot.activity_button_two_answer if rpc.read_variable_json("activity_button_two_answer") == "VOID" else rpc.read_variable_json("activity_button_two_answer")},
748 | key="mp:attachments/1135264530188992562/1194342119989575832/MGflOC7.jpg?ex=65b93b47&is=65a6c647&hm=af5387b219eb9f9bf4cf7137758c4fad9da45a174305655ccb84c977a38dcd9f&=&format=webp&width=744&height=419",
749 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id")
750 | )
751 | )
752 | msg = await ctx.message.edit(f"👋 Template \"hi !\".")
753 | await asyncio.sleep(deltime)
754 | await msg.delete()
755 | elif choice.lower() == "omori":
756 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
757 | afk=afk,
758 | activity=selfcord.Activity.Game(name="Omori",
759 | details="In Game",
760 | state="Fighting a boss.",
761 | buttons={config_selfbot.activity_button_one if rpc.read_variable_json("activity_button_one") == "VOID" else rpc.read_variable_json("activity_button_one"): config_selfbot.activity_button_one_answer if rpc.read_variable_json("activity_button_one_answer") == "VOID" else rpc.read_variable_json("activity_button_one_answer"), config_selfbot.activity_button_two if rpc.read_variable_json("activity_button_two") == "VOID" else rpc.read_variable_json("activity_button_two"): config_selfbot.activity_button_two_answer if rpc.read_variable_json("activity_button_two_answer") == "VOID" else rpc.read_variable_json("activity_button_two_answer")},
762 | key="mp:attachments/1135264530188992562/1177984303456604253/i9ja3eA.gif?ex=65b517df&is=65a2a2df&hm=ba4d90afb6d6f47adceb1dbdc8ae28435c20a0fc46dd52cd3b492b427d356987&=&width=559&height=419",
763 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id")
764 | )
765 | )
766 | msg = await ctx.message.edit(f"💡 Template \"Omori\".")
767 | await asyncio.sleep(deltime)
768 | await msg.delete()
769 | elif choice.lower() == "cod":
770 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
771 | afk=afk,
772 | activity=selfcord.Activity.Game(name="Call Of Duty: MWIII",
773 | details=f"{fr_en.rpc_cod_details[config_selfbot.lang]}",
774 | state=f"{fr_en.rpc_cod_state[config_selfbot.lang]}",
775 | buttons={config_selfbot.activity_button_one if rpc.read_variable_json("activity_button_one") == "VOID" else rpc.read_variable_json("activity_button_one"): config_selfbot.activity_button_one_answer if rpc.read_variable_json("activity_button_one_answer") == "VOID" else rpc.read_variable_json("activity_button_one_answer"), config_selfbot.activity_button_two if rpc.read_variable_json("activity_button_two") == "VOID" else rpc.read_variable_json("activity_button_two"): config_selfbot.activity_button_two_answer if rpc.read_variable_json("activity_button_two_answer") == "VOID" else rpc.read_variable_json("activity_button_two_answer")},
776 | key="mp:attachments/1135264530188992562/1199007140782813284/5rr7SXS.png?ex=65c0f96a&is=65ae846a&hm=f92e8757ce026cb26fc3d6e44e2e9e02ccb2577e9f047e62f9891c0f5925c725&=&format=webp&quality=lossless",
777 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id")
778 | )
779 | )
780 | msg = await ctx.message.edit(f"🔫 Template \"Call Of Duty\".")
781 | await asyncio.sleep(deltime)
782 | await msg.delete()
783 | elif choice.lower() == "youtube":
784 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
785 | afk=afk,
786 | activity=selfcord.Activity.Watch(name="Youtube",
787 | details="Watching Videos",
788 | state=None,
789 | buttons={config_selfbot.activity_button_one if rpc.read_variable_json("activity_button_one") == "VOID" else rpc.read_variable_json("activity_button_one"): config_selfbot.activity_button_one_answer if rpc.read_variable_json("activity_button_one_answer") == "VOID" else rpc.read_variable_json("activity_button_one_answer"), config_selfbot.activity_button_two if rpc.read_variable_json("activity_button_two") == "VOID" else rpc.read_variable_json("activity_button_two"): config_selfbot.activity_button_two_answer if rpc.read_variable_json("activity_button_two_answer") == "VOID" else rpc.read_variable_json("activity_button_two_answer")},
790 | key="mp:attachments/1135264530188992562/1197991793111863417/ILAO8CE.png?ex=65bd47cd&is=65aad2cd&hm=585fcd20ef938d1a7637732d5d251cba50c82024c980c5b1e785bb486e4c5f4a&=&format=webp&quality=lossless&width=419&height=419",
791 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id")
792 | )
793 | )
794 | msg = await ctx.message.edit(f"🎦 Template \"YouTube\".")
795 | await asyncio.sleep(deltime)
796 | await msg.delete()
797 | elif choice.lower() == "car":
798 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
799 | afk=afk,
800 | activity=selfcord.Activity.Watch(name="Drift Car",
801 | details="Watching DriftCar",
802 | state=None,
803 | buttons={config_selfbot.activity_button_one if rpc.read_variable_json("activity_button_one") == "VOID" else rpc.read_variable_json("activity_button_one"): config_selfbot.activity_button_one_answer if rpc.read_variable_json("activity_button_one_answer") == "VOID" else rpc.read_variable_json("activity_button_one_answer"), config_selfbot.activity_button_two if rpc.read_variable_json("activity_button_two") == "VOID" else rpc.read_variable_json("activity_button_two"): config_selfbot.activity_button_two_answer if rpc.read_variable_json("activity_button_two_answer") == "VOID" else rpc.read_variable_json("activity_button_two_answer")},
804 | key="mp:attachments/1135264530188992562/1198216462536552468/Wy5D92g.gif?ex=65be190a&is=65aba40a&hm=ee3adfbaccfb4a72ef71196d5b675aaef7df29a6f92f6841e4b161ed989aa783&=",
805 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id")
806 | )
807 | )
808 | msg = await ctx.message.edit(f"🏎️ Template \"Car\".")
809 | await asyncio.sleep(deltime)
810 | await msg.delete()
811 | elif choice.lower() == "js":
812 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
813 | afk=afk,
814 | activity=selfcord.Activity.Game(name="Visual Studio Code",
815 | details=f"Editing {bot.user.name}.js (273 lines)",
816 | state="Workspace: Nuclear",
817 | buttons={config_selfbot.activity_button_one if rpc.read_variable_json("activity_button_one") == "VOID" else rpc.read_variable_json("activity_button_one"): config_selfbot.activity_button_one_answer if rpc.read_variable_json("activity_button_one_answer") == "VOID" else rpc.read_variable_json("activity_button_one_answer"), config_selfbot.activity_button_two if rpc.read_variable_json("activity_button_two") == "VOID" else rpc.read_variable_json("activity_button_two"): config_selfbot.activity_button_two_answer if rpc.read_variable_json("activity_button_two_answer") == "VOID" else rpc.read_variable_json("activity_button_two_answer")},
818 | key="mp:attachments/1135264530188992562/1198623222678179960/FYcrOR1.png?ex=65bf93dd&is=65ad1edd&hm=196ea799818a84abed3db5089be49eb2f470fe31e9ed5d984bfb6b898c868a4a&=&format=webp&quality=lossless",
819 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id")
820 | )
821 | )
822 | msg = await ctx.message.edit(f"👨💻 Template \"JavaScript\".")
823 | await asyncio.sleep(deltime)
824 | await msg.delete()
825 | elif choice.lower() == "python":
826 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
827 | afk=afk,
828 | activity=selfcord.Activity.Game(name="Visual Studio Code",
829 | details=f"Editing {bot.user.name}.py",
830 | state="Workspace: Nuclear",
831 | buttons={config_selfbot.activity_button_one if rpc.read_variable_json("activity_button_one") == "VOID" else rpc.read_variable_json("activity_button_one"): config_selfbot.activity_button_one_answer if rpc.read_variable_json("activity_button_one_answer") == "VOID" else rpc.read_variable_json("activity_button_one_answer"), config_selfbot.activity_button_two if rpc.read_variable_json("activity_button_two") == "VOID" else rpc.read_variable_json("activity_button_two"): config_selfbot.activity_button_two_answer if rpc.read_variable_json("activity_button_two_answer") == "VOID" else rpc.read_variable_json("activity_button_two_answer")},
832 | key="mp:attachments/1135264530188992562/1198617576553599057/3jMZG0a.png?ex=65bf8e9b&is=65ad199b&hm=d61ea94e9db57f790e49dab09a9390bd61e5362a14cd44738a9a2e8aa70092d0&=&format=webp&quality=lossless",
833 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id")
834 | )
835 | )
836 | msg = await ctx.message.edit(f"👨💻 Template \"Python\".")
837 | await asyncio.sleep(deltime)
838 | await msg.delete()
839 | elif choice.lower() == "webdeck":
840 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
841 | afk=afk,
842 | activity=selfcord.Activity.Game(name="WebDeck",
843 | details="Watching stars on GitHub...",
844 | state="Playing with Free StreamDeck.",
845 | buttons={"Webdeck's GitHub (star it)": "https://github.com/Lenochxd/WebDeck", "WebDeck's Discord server": "https://discord.com/invite/CK2mu4P"},
846 | key="mp:attachments/1135264530188992562/1197999417853218927/jj0PYp2.png?ex=65bd4ee6&is=65aad9e6&hm=ef2a47c5023678209436c74e3067469cf5c28143e5c12a3f714746fd03f1321e&=&format=webp&quality=lossless",
847 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id")
848 | )
849 | )
850 | msg = await ctx.message.edit(f"📱 Template \"WebDeck\".")
851 | await asyncio.sleep(deltime)
852 | await msg.delete()
853 | elif choice.lower() == "self":
854 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
855 | afk=afk,
856 | activity=selfcord.Activity.Stream(name="click mee",
857 | details="Nuclear $B",
858 | state="Free $B",
859 | buttons={"Nuclear $B": "https://github.com/Sitois/Nuclear", "star it !": "https://github.com/Sitois/Nuclear"},
860 | key="mp:attachments/1135264530188992562/1198281648437993553/CIjvBOJ.png?ex=65be55bf&is=65abe0bf&hm=40a3c63ca07dfac28726eadae220a07412551a69deea021b73c24ae00933782e&=&format=webp&quality=lossless",
861 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id"),
862 | url=config_selfbot.streaming_url if rpc.read_variable_json("streaming_url") == "VOID" else rpc.read_variable_json("streaming_url")
863 | )
864 | )
865 | msg = await ctx.message.edit(f"🌌 Template \"Nuclear\".")
866 | await asyncio.sleep(deltime)
867 | await msg.delete()
868 | elif choice.lower() == "dark":
869 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
870 | afk=afk,
871 | activity=selfcord.Activity.Game(name="☄",
872 | details=None,
873 | state=None,
874 | buttons={config_selfbot.activity_button_one if rpc.read_variable_json("activity_button_one") == "VOID" else rpc.read_variable_json("activity_button_one"): config_selfbot.activity_button_one_answer if rpc.read_variable_json("activity_button_one_answer") == "VOID" else rpc.read_variable_json("activity_button_one_answer"), config_selfbot.activity_button_two if rpc.read_variable_json("activity_button_two") == "VOID" else rpc.read_variable_json("activity_button_two"): config_selfbot.activity_button_two_answer if rpc.read_variable_json("activity_button_two_answer") == "VOID" else rpc.read_variable_json("activity_button_two_answer")},
875 | key="mp:attachments/1135264530188992562/1205872002238382111/PNjYcIL.png?ex=65d9f2d1&is=65c77dd1&hm=37a71d4fc6c032214d71c8d94d7d6f6c99f8f9773c467cf8f7cc4d56a618da73&=&format=webp&quality=lossless",
876 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id")
877 | )
878 | )
879 | msg = await ctx.message.edit(f"🖤 Template \"Dark\".")
880 | await asyncio.sleep(deltime)
881 | await msg.delete()
882 | elif choice.lower() == "gta":
883 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
884 | afk=afk,
885 | activity=selfcord.Activity.Game(name="Grand Theft Auto VI",
886 | details="Welcome to Vice City !",
887 | state="Playing SinglePlayer",
888 | buttons={config_selfbot.activity_button_one if rpc.read_variable_json("activity_button_one") == "VOID" else rpc.read_variable_json("activity_button_one"): config_selfbot.activity_button_one_answer if rpc.read_variable_json("activity_button_one_answer") == "VOID" else rpc.read_variable_json("activity_button_one_answer"), config_selfbot.activity_button_two if rpc.read_variable_json("activity_button_two") == "VOID" else rpc.read_variable_json("activity_button_two"): config_selfbot.activity_button_two_answer if rpc.read_variable_json("activity_button_two_answer") == "VOID" else rpc.read_variable_json("activity_button_two_answer")},
889 | key="mp:attachments/1135264530188992562/1200905385230475424/rhqvEdX.png?ex=65c7e14b&is=65b56c4b&hm=b375f98036eb15cedb369aff743ab040585f4777cc3756530e936fd5bbbb98d4&=&format=webp&quality=lossless&width=417&height=419",
890 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id")
891 | )
892 | )
893 | msg = await ctx.message.edit(f"🔫 Template \"Grand Theft Auto VI\".")
894 | await asyncio.sleep(deltime)
895 | await msg.delete()
896 | elif choice.lower() == "reset":
897 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
898 | afk=afk,
899 | activity=selfcord.Activity.Game(name=config_selfbot.activity_name if rpc.read_variable_json("activity_name") == "VOID" else rpc.read_variable_json("activity_name"),
900 | details=config_selfbot.activity_details if rpc.read_variable_json("activity_details") == "VOID" else rpc.read_variable_json("activity_details"),
901 | state=config_selfbot.activity_state if rpc.read_variable_json("activity_state") == "VOID" else rpc.read_variable_json("activity_state"),
902 | buttons={config_selfbot.activity_button_one if rpc.read_variable_json("activity_button_one") == "VOID" else rpc.read_variable_json("activity_button_one"): config_selfbot.activity_button_one_answer if rpc.read_variable_json("activity_button_one_answer") == "VOID" else rpc.read_variable_json("activity_button_one_answer"), config_selfbot.activity_button_two if rpc.read_variable_json("activity_button_two") == "VOID" else rpc.read_variable_json("activity_button_two"): config_selfbot.activity_button_two_answer if rpc.read_variable_json("activity_button_two_answer") == "VOID" else rpc.read_variable_json("activity_button_two_answer")},
903 | key=config_selfbot.image_key if rpc.read_variable_json("image_key") == "VOID" else rpc.read_variable_json("image_key"),
904 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id")
905 | )
906 | )
907 | msg = await ctx.message.edit(f"🔄️ RPC Reset.")
908 | await asyncio.sleep(deltime)
909 | await msg.delete()
910 | elif choice.lower() == "default":
911 | await bot.change_presence(status=config_selfbot.status_activity,
912 | afk=afk,
913 | activity=selfcord.Activity.Game(name=config_selfbot.activity_name,
914 | details=config_selfbot.activity_details,
915 | state=config_selfbot.activity_state,
916 | buttons={config_selfbot.activity_button_one: config_selfbot.activity_button_one_answer, config_selfbot.activity_button_two: config_selfbot.activity_button_two_answer},
917 | key=config_selfbot.image_key,
918 | application_id=config_selfbot.application_id
919 | )
920 | )
921 | msg = await ctx.message.edit(f"🔄️ RPC \"Default\".")
922 | await asyncio.sleep(deltime)
923 | await msg.delete()
924 | else:
925 | msg = await ctx.message.edit("❌ Incorrect !")
926 | await asyncio.sleep(deltime)
927 | await msg.delete()
928 |
929 |
930 |
931 | #############
932 |
933 |
934 |
935 | @bot.cmd()
936 | async def rpc_details(ctx):
937 | message_split = ctx.message.content.split()
938 | message_content = ctx.message.content.replace(f"{message_split[0]} ", "")
939 | rpc.edit_variable_json("activity_details", message_content)
940 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
941 | afk=afk,
942 | activity=selfcord.Activity.Game(name=config_selfbot.activity_name if rpc.read_variable_json("activity_name") == "VOID" else rpc.read_variable_json("activity_name"),
943 | details=config_selfbot.activity_details if rpc.read_variable_json("activity_details") == "VOID" else rpc.read_variable_json("activity_details"),
944 | state=config_selfbot.activity_state if rpc.read_variable_json("activity_state") == "VOID" else rpc.read_variable_json("activity_state"),
945 | buttons={config_selfbot.activity_button_one if rpc.read_variable_json("activity_button_one") == "VOID" else rpc.read_variable_json("activity_button_one"): config_selfbot.activity_button_one_answer if rpc.read_variable_json("activity_button_one_answer") == "VOID" else rpc.read_variable_json("activity_button_one_answer"), config_selfbot.activity_button_two if rpc.read_variable_json("activity_button_two") == "VOID" else rpc.read_variable_json("activity_button_two"): config_selfbot.activity_button_two_answer if rpc.read_variable_json("activity_button_two_answer") == "VOID" else rpc.read_variable_json("activity_button_two_answer")},
946 | key=config_selfbot.image_key if rpc.read_variable_json("image_key") == "VOID" else rpc.read_variable_json("image_key"),
947 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id")
948 | )
949 | )
950 | msg = await ctx.message.edit(f"🕹️| Details: `{message_content}`")
951 | await asyncio.sleep(deltime)
952 | await msg.delete()
953 |
954 | #############
955 |
956 | @bot.cmd()
957 | async def rpc_name(ctx):
958 | message_split = ctx.message.content.split()
959 | message_content = ctx.message.content.replace(f"{message_split[0]} ", "")
960 | rpc.edit_variable_json("activity_name", message_content)
961 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
962 | afk=afk,
963 | activity=selfcord.Activity.Game(name=config_selfbot.activity_name if rpc.read_variable_json("activity_name") == "VOID" else rpc.read_variable_json("activity_name"),
964 | details=config_selfbot.activity_details if rpc.read_variable_json("activity_details") == "VOID" else rpc.read_variable_json("activity_details"),
965 | state=config_selfbot.activity_state if rpc.read_variable_json("activity_state") == "VOID" else rpc.read_variable_json("activity_state"),
966 | buttons={config_selfbot.activity_button_one if rpc.read_variable_json("activity_button_one") == "VOID" else rpc.read_variable_json("activity_button_one"): config_selfbot.activity_button_one_answer if rpc.read_variable_json("activity_button_one_answer") == "VOID" else rpc.read_variable_json("activity_button_one_answer"), config_selfbot.activity_button_two if rpc.read_variable_json("activity_button_two") == "VOID" else rpc.read_variable_json("activity_button_two"): config_selfbot.activity_button_two_answer if rpc.read_variable_json("activity_button_two_answer") == "VOID" else rpc.read_variable_json("activity_button_two_answer")},
967 | key=config_selfbot.image_key if rpc.read_variable_json("image_key") == "VOID" else rpc.read_variable_json("image_key"),
968 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id")
969 | )
970 | )
971 | msg = await ctx.message.edit(f"🕹️| Name: `{message_content}`")
972 | await asyncio.sleep(deltime)
973 | await msg.delete()
974 |
975 | #############
976 |
977 | @bot.cmd()
978 | async def rpc_state(ctx):
979 | message_split = ctx.message.content.split()
980 | message_content = ctx.message.content.replace(f"{message_split[0]} ", "")
981 | rpc.edit_variable_json("activity_state", message_content)
982 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
983 | afk=afk,
984 | activity=selfcord.Activity.Game(name=config_selfbot.activity_name if rpc.read_variable_json("activity_name") == "VOID" else rpc.read_variable_json("activity_name"),
985 | details=config_selfbot.activity_details if rpc.read_variable_json("activity_details") == "VOID" else rpc.read_variable_json("activity_details"),
986 | state=config_selfbot.activity_state if rpc.read_variable_json("activity_state") == "VOID" else rpc.read_variable_json("activity_state"),
987 | buttons={config_selfbot.activity_button_one if rpc.read_variable_json("activity_button_one") == "VOID" else rpc.read_variable_json("activity_button_one"): config_selfbot.activity_button_one_answer if rpc.read_variable_json("activity_button_one_answer") == "VOID" else rpc.read_variable_json("activity_button_one_answer"), config_selfbot.activity_button_two if rpc.read_variable_json("activity_button_two") == "VOID" else rpc.read_variable_json("activity_button_two"): config_selfbot.activity_button_two_answer if rpc.read_variable_json("activity_button_two_answer") == "VOID" else rpc.read_variable_json("activity_button_two_answer")},
988 | key=config_selfbot.image_key if rpc.read_variable_json("image_key") == "VOID" else rpc.read_variable_json("image_key"),
989 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id")
990 | )
991 | )
992 | msg = await ctx.message.edit(f"🕹️| State: `{message_content}`")
993 | await asyncio.sleep(deltime)
994 | await msg.delete()
995 |
996 | #############
997 |
998 | @bot.cmd()
999 | async def rpc_url(ctx):
1000 | message_split = ctx.message.content.split()
1001 | message_content = ctx.message.content.replace(f"{message_split[0]} ", "")
1002 | rpc.edit_variable_json("streaming_url", message_content)
1003 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
1004 | afk=afk,
1005 | activity=selfcord.Activity.Game(name=config_selfbot.activity_name if rpc.read_variable_json("activity_name") == "VOID" else rpc.read_variable_json("activity_name"),
1006 | details=config_selfbot.activity_details if rpc.read_variable_json("activity_details") == "VOID" else rpc.read_variable_json("activity_details"),
1007 | state=config_selfbot.activity_state if rpc.read_variable_json("activity_state") == "VOID" else rpc.read_variable_json("activity_state"),
1008 | buttons={config_selfbot.activity_button_one if rpc.read_variable_json("activity_button_one") == "VOID" else rpc.read_variable_json("activity_button_one"): config_selfbot.activity_button_one_answer if rpc.read_variable_json("activity_button_one_answer") == "VOID" else rpc.read_variable_json("activity_button_one_answer"), config_selfbot.activity_button_two if rpc.read_variable_json("activity_button_two") == "VOID" else rpc.read_variable_json("activity_button_two"): config_selfbot.activity_button_two_answer if rpc.read_variable_json("activity_button_two_answer") == "VOID" else rpc.read_variable_json("activity_button_two_answer")},
1009 | key=config_selfbot.image_key if rpc.read_variable_json("image_key") == "VOID" else rpc.read_variable_json("image_key"),
1010 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id")
1011 | )
1012 | )
1013 | msg = await ctx.message.edit(f"🕹️| Stream URL: `{message_content}`")
1014 | await asyncio.sleep(deltime)
1015 | await msg.delete()
1016 |
1017 | #############
1018 |
1019 | @bot.cmd()
1020 | async def rpc_image(ctx):
1021 | message_split = ctx.message.content.split()
1022 | message_content = ctx.message.content.replace(f"{message_split[0]} ", "")
1023 | rpc.edit_variable_json("image_key", message_content)
1024 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
1025 | afk=afk,
1026 | activity=selfcord.Activity.Game(name=config_selfbot.activity_name if rpc.read_variable_json("activity_name") == "VOID" else rpc.read_variable_json("activity_name"),
1027 | details=config_selfbot.activity_details if rpc.read_variable_json("activity_details") == "VOID" else rpc.read_variable_json("activity_details"),
1028 | state=config_selfbot.activity_state if rpc.read_variable_json("activity_state") == "VOID" else rpc.read_variable_json("activity_state"),
1029 | buttons={config_selfbot.activity_button_one if rpc.read_variable_json("activity_button_one") == "VOID" else rpc.read_variable_json("activity_button_one"): config_selfbot.activity_button_one_answer if rpc.read_variable_json("activity_button_one_answer") == "VOID" else rpc.read_variable_json("activity_button_one_answer"), config_selfbot.activity_button_two if rpc.read_variable_json("activity_button_two") == "VOID" else rpc.read_variable_json("activity_button_two"): config_selfbot.activity_button_two_answer if rpc.read_variable_json("activity_button_two_answer") == "VOID" else rpc.read_variable_json("activity_button_two_answer")},
1030 | key=config_selfbot.image_key if rpc.read_variable_json("image_key") == "VOID" else rpc.read_variable_json("image_key"),
1031 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id")
1032 | )
1033 | )
1034 | msg = await ctx.message.edit(f"🕹️| Image: `{message_content}`")
1035 | await asyncio.sleep(deltime)
1036 | await msg.delete()
1037 |
1038 | #############
1039 |
1040 | @bot.cmd()
1041 | async def rpc_application_id(ctx):
1042 | message_split = ctx.message.content.split()
1043 | message_content = ctx.message.content.replace(f"{message_split[0]} ", "")
1044 | rpc.edit_variable_json("application_id", message_content)
1045 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
1046 | afk=afk,
1047 | activity=selfcord.Activity.Game(name=config_selfbot.activity_name if rpc.read_variable_json("activity_name") == "VOID" else rpc.read_variable_json("activity_name"),
1048 | details=config_selfbot.activity_details if rpc.read_variable_json("activity_details") == "VOID" else rpc.read_variable_json("activity_details"),
1049 | state=config_selfbot.activity_state if rpc.read_variable_json("activity_state") == "VOID" else rpc.read_variable_json("activity_state"),
1050 | buttons={config_selfbot.activity_button_one if rpc.read_variable_json("activity_button_one") == "VOID" else rpc.read_variable_json("activity_button_one"): config_selfbot.activity_button_one_answer if rpc.read_variable_json("activity_button_one_answer") == "VOID" else rpc.read_variable_json("activity_button_one_answer"), config_selfbot.activity_button_two if rpc.read_variable_json("activity_button_two") == "VOID" else rpc.read_variable_json("activity_button_two"): config_selfbot.activity_button_two_answer if rpc.read_variable_json("activity_button_two_answer") == "VOID" else rpc.read_variable_json("activity_button_two_answer")},
1051 | key=config_selfbot.image_key if rpc.read_variable_json("image_key") == "VOID" else rpc.read_variable_json("image_key"),
1052 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id")
1053 | )
1054 | )
1055 | msg = await ctx.message.edit(f"🕹️| Application ID: `{message_content}`")
1056 | await asyncio.sleep(deltime)
1057 | await msg.delete()
1058 |
1059 | #############
1060 |
1061 | @bot.cmd()
1062 | async def rpc_button_text_one(ctx):
1063 | message_split = ctx.message.content.split()
1064 | message_content = ctx.message.content.replace(f"{message_split[0]} ", "")
1065 | rpc.edit_variable_json("activity_button_one", message_content)
1066 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
1067 | afk=afk,
1068 | activity=selfcord.Activity.Game(name=config_selfbot.activity_name if rpc.read_variable_json("activity_name") == "VOID" else rpc.read_variable_json("activity_name"),
1069 | details=config_selfbot.activity_details if rpc.read_variable_json("activity_details") == "VOID" else rpc.read_variable_json("activity_details"),
1070 | state=config_selfbot.activity_state if rpc.read_variable_json("activity_state") == "VOID" else rpc.read_variable_json("activity_state"),
1071 | buttons={config_selfbot.activity_button_one if rpc.read_variable_json("activity_button_one") == "VOID" else rpc.read_variable_json("activity_button_one"): config_selfbot.activity_button_one_answer if rpc.read_variable_json("activity_button_one_answer") == "VOID" else rpc.read_variable_json("activity_button_one_answer"), config_selfbot.activity_button_two if rpc.read_variable_json("activity_button_two") == "VOID" else rpc.read_variable_json("activity_button_two"): config_selfbot.activity_button_two_answer if rpc.read_variable_json("activity_button_two_answer") == "VOID" else rpc.read_variable_json("activity_button_two_answer")},
1072 | key=config_selfbot.image_key if rpc.read_variable_json("image_key") == "VOID" else rpc.read_variable_json("image_key"),
1073 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id")
1074 | )
1075 | )
1076 | msg = await ctx.message.edit(f"🕹️| Button One Text: `{message_content}`")
1077 | await asyncio.sleep(deltime)
1078 | await msg.delete()
1079 |
1080 | #############
1081 |
1082 | @bot.cmd()
1083 | async def rpc_button_text_two(ctx):
1084 | message_split = ctx.message.content.split()
1085 | message_content = ctx.message.content.replace(f"{message_split[0]} ", "")
1086 | rpc.edit_variable_json("activity_button_two", message_content)
1087 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
1088 | afk=afk,
1089 | activity=selfcord.Activity.Game(name=config_selfbot.activity_name if rpc.read_variable_json("activity_name") == "VOID" else rpc.read_variable_json("activity_name"),
1090 | details=config_selfbot.activity_details if rpc.read_variable_json("activity_details") == "VOID" else rpc.read_variable_json("activity_details"),
1091 | state=config_selfbot.activity_state if rpc.read_variable_json("activity_state") == "VOID" else rpc.read_variable_json("activity_state"),
1092 | buttons={config_selfbot.activity_button_one if rpc.read_variable_json("activity_button_one") == "VOID" else rpc.read_variable_json("activity_button_one"): config_selfbot.activity_button_one_answer if rpc.read_variable_json("activity_button_one_answer") == "VOID" else rpc.read_variable_json("activity_button_one_answer"), config_selfbot.activity_button_two if rpc.read_variable_json("activity_button_two") == "VOID" else rpc.read_variable_json("activity_button_two"): config_selfbot.activity_button_two_answer if rpc.read_variable_json("activity_button_two_answer") == "VOID" else rpc.read_variable_json("activity_button_two_answer")},
1093 | key=config_selfbot.image_key if rpc.read_variable_json("image_key") == "VOID" else rpc.read_variable_json("image_key"),
1094 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id")
1095 | )
1096 | )
1097 | msg = await ctx.message.edit(f"🕹️|Button Text Two: `{message_content}`")
1098 | await asyncio.sleep(deltime)
1099 | await msg.delete()
1100 |
1101 | #############
1102 |
1103 | @bot.cmd()
1104 | async def rpc_button_link_one(ctx):
1105 | message_split = ctx.message.content.split()
1106 | message_content = ctx.message.content.replace(f"{message_split[0]} ", "")
1107 | rpc.edit_variable_json("activity_button_one_answer", message_content)
1108 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
1109 | afk=afk,
1110 | activity=selfcord.Activity.Game(name=config_selfbot.activity_name if rpc.read_variable_json("activity_name") == "VOID" else rpc.read_variable_json("activity_name"),
1111 | details=config_selfbot.activity_details if rpc.read_variable_json("activity_details") == "VOID" else rpc.read_variable_json("activity_details"),
1112 | state=config_selfbot.activity_state if rpc.read_variable_json("activity_state") == "VOID" else rpc.read_variable_json("activity_state"),
1113 | buttons={config_selfbot.activity_button_one if rpc.read_variable_json("activity_button_one") == "VOID" else rpc.read_variable_json("activity_button_one"): config_selfbot.activity_button_one_answer if rpc.read_variable_json("activity_button_one_answer") == "VOID" else rpc.read_variable_json("activity_button_one_answer"), config_selfbot.activity_button_two if rpc.read_variable_json("activity_button_two") == "VOID" else rpc.read_variable_json("activity_button_two"): config_selfbot.activity_button_two_answer if rpc.read_variable_json("activity_button_two_answer") == "VOID" else rpc.read_variable_json("activity_button_two_answer")},
1114 | key=config_selfbot.image_key if rpc.read_variable_json("image_key") == "VOID" else rpc.read_variable_json("image_key"),
1115 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id")
1116 | )
1117 | )
1118 | msg = await ctx.message.edit(f"🕹️| Button One Link: `{message_content}`")
1119 | await asyncio.sleep(deltime)
1120 | await msg.delete()
1121 |
1122 | #############
1123 |
1124 | @bot.cmd()
1125 | async def rpc_button_link_two(ctx):
1126 | message_split = ctx.message.content.split()
1127 | message_content = ctx.message.content.replace(f"{message_split[0]} ", "")
1128 | rpc.edit_variable_json("activity_button_two_answer", message_content)
1129 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
1130 | afk=afk,
1131 | activity=selfcord.Activity.Game(name=config_selfbot.activity_name if rpc.read_variable_json("activity_name") == "VOID" else rpc.read_variable_json("activity_name"),
1132 | details=config_selfbot.activity_details if rpc.read_variable_json("activity_details") == "VOID" else rpc.read_variable_json("activity_details"),
1133 | state=config_selfbot.activity_state if rpc.read_variable_json("activity_state") == "VOID" else rpc.read_variable_json("activity_state"),
1134 | buttons={config_selfbot.activity_button_one if rpc.read_variable_json("activity_button_one") == "VOID" else rpc.read_variable_json("activity_button_one"): config_selfbot.activity_button_one_answer if rpc.read_variable_json("activity_button_one_answer") == "VOID" else rpc.read_variable_json("activity_button_one_answer"), config_selfbot.activity_button_two if rpc.read_variable_json("activity_button_two") == "VOID" else rpc.read_variable_json("activity_button_two"): config_selfbot.activity_button_two_answer if rpc.read_variable_json("activity_button_two_answer") == "VOID" else rpc.read_variable_json("activity_button_two_answer")},
1135 | key=config_selfbot.image_key if rpc.read_variable_json("image_key") == "VOID" else rpc.read_variable_json("image_key"),
1136 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id")
1137 | )
1138 | )
1139 | msg = await ctx.message.edit(f"🕹️| Button Link Two: `{message_content}`")
1140 | await asyncio.sleep(deltime)
1141 | await msg.delete()
1142 |
1143 | #############
1144 |
1145 | @bot.cmd()
1146 | async def rpc_status(ctx):
1147 | message_split = ctx.message.content.split()
1148 | message_content = ctx.message.content.replace(f"{message_split[0]} ", "")
1149 | rpc.edit_variable_json("status_activity", message_content)
1150 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
1151 | afk=afk,
1152 | activity=selfcord.Activity.Game(name=config_selfbot.activity_name if rpc.read_variable_json("activity_name") == "VOID" else rpc.read_variable_json("activity_name"),
1153 | details=config_selfbot.activity_details if rpc.read_variable_json("activity_details") == "VOID" else rpc.read_variable_json("activity_details"),
1154 | state=config_selfbot.activity_state if rpc.read_variable_json("activity_state") == "VOID" else rpc.read_variable_json("activity_state"),
1155 | buttons={config_selfbot.activity_button_one if rpc.read_variable_json("activity_button_one") == "VOID" else rpc.read_variable_json("activity_button_one"): config_selfbot.activity_button_one_answer if rpc.read_variable_json("activity_button_one_answer") == "VOID" else rpc.read_variable_json("activity_button_one_answer"), config_selfbot.activity_button_two if rpc.read_variable_json("activity_button_two") == "VOID" else rpc.read_variable_json("activity_button_two"): config_selfbot.activity_button_two_answer if rpc.read_variable_json("activity_button_two_answer") == "VOID" else rpc.read_variable_json("activity_button_two_answer")},
1156 | key=config_selfbot.image_key if rpc.read_variable_json("image_key") == "VOID" else rpc.read_variable_json("image_key"),
1157 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id")
1158 | )
1159 | )
1160 | msg = await ctx.message.edit(f"🕹️| RPC Status: `{message_content}`")
1161 | await asyncio.sleep(deltime)
1162 | await msg.delete()
1163 |
1164 | #############
1165 |
1166 | @bot.cmd()
1167 | async def rpc_type(ctx):
1168 | choice = ctx.message.content.split()[1]
1169 | if choice.lower() == "game":
1170 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
1171 | afk=afk,
1172 | activity=selfcord.Activity.Game(name=config_selfbot.activity_name if rpc.read_variable_json("activity_name") == "VOID" else rpc.read_variable_json("activity_name"),
1173 | details=config_selfbot.activity_details if rpc.read_variable_json("activity_details") == "VOID" else rpc.read_variable_json("activity_details"),
1174 | state=config_selfbot.activity_state if rpc.read_variable_json("activity_state") == "VOID" else rpc.read_variable_json("activity_state"),
1175 | buttons={config_selfbot.activity_button_one if rpc.read_variable_json("activity_button_one") == "VOID" else rpc.read_variable_json("activity_button_one"): config_selfbot.activity_button_one_answer if rpc.read_variable_json("activity_button_one_answer") == "VOID" else rpc.read_variable_json("activity_button_one_answer"), config_selfbot.activity_button_two if rpc.read_variable_json("activity_button_two") == "VOID" else rpc.read_variable_json("activity_button_two"): config_selfbot.activity_button_two_answer if rpc.read_variable_json("activity_button_two_answer") == "VOID" else rpc.read_variable_json("activity_button_two_answer")},
1176 | key=config_selfbot.image_key if rpc.read_variable_json("image_key") == "VOID" else rpc.read_variable_json("image_key"),
1177 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id")
1178 | )
1179 | )
1180 | msg = await ctx.message.edit(f"🎮 **Type:** \"Game\".")
1181 | await asyncio.sleep(deltime)
1182 | await msg.delete()
1183 | elif choice.lower() == "watch":
1184 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
1185 | afk=afk,
1186 | activity=selfcord.Activity.Watch(name=config_selfbot.activity_name if rpc.read_variable_json("activity_name") == "VOID" else rpc.read_variable_json("activity_name"),
1187 | details=config_selfbot.activity_details if rpc.read_variable_json("activity_details") == "VOID" else rpc.read_variable_json("activity_details"),
1188 | state=config_selfbot.activity_state if rpc.read_variable_json("activity_state") == "VOID" else rpc.read_variable_json("activity_state"),
1189 | buttons={config_selfbot.activity_button_one if rpc.read_variable_json("activity_button_one") == "VOID" else rpc.read_variable_json("activity_button_one"): config_selfbot.activity_button_one_answer if rpc.read_variable_json("activity_button_one_answer") == "VOID" else rpc.read_variable_json("activity_button_one_answer"), config_selfbot.activity_button_two if rpc.read_variable_json("activity_button_two") == "VOID" else rpc.read_variable_json("activity_button_two"): config_selfbot.activity_button_two_answer if rpc.read_variable_json("activity_button_two_answer") == "VOID" else rpc.read_variable_json("activity_button_two_answer")},
1190 | key=config_selfbot.image_key if rpc.read_variable_json("image_key") == "VOID" else rpc.read_variable_json("image_key"),
1191 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id")
1192 | )
1193 | )
1194 | msg = await ctx.message.edit(f"📺 **Type:** \"Watch\".")
1195 | await asyncio.sleep(deltime)
1196 | await msg.delete()
1197 | elif choice.lower() == "listen":
1198 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
1199 | afk=afk,
1200 | activity=selfcord.Activity.Listen(name=config_selfbot.activity_name if rpc.read_variable_json("activity_name") == "VOID" else rpc.read_variable_json("activity_name"),
1201 | details=config_selfbot.activity_details if rpc.read_variable_json("activity_details") == "VOID" else rpc.read_variable_json("activity_details"),
1202 | state=config_selfbot.activity_state if rpc.read_variable_json("activity_state") == "VOID" else rpc.read_variable_json("activity_state"),
1203 | buttons={config_selfbot.activity_button_one if rpc.read_variable_json("activity_button_one") == "VOID" else rpc.read_variable_json("activity_button_one"): config_selfbot.activity_button_one_answer if rpc.read_variable_json("activity_button_one_answer") == "VOID" else rpc.read_variable_json("activity_button_one_answer"), config_selfbot.activity_button_two if rpc.read_variable_json("activity_button_two") == "VOID" else rpc.read_variable_json("activity_button_two"): config_selfbot.activity_button_two_answer if rpc.read_variable_json("activity_button_two_answer") == "VOID" else rpc.read_variable_json("activity_button_two_answer")},
1204 | key=config_selfbot.image_key if rpc.read_variable_json("image_key") == "VOID" else rpc.read_variable_json("image_key"),
1205 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id")
1206 | )
1207 | )
1208 | msg = await ctx.message.edit(f"🎧 **Type:** \"Listen\".")
1209 | await asyncio.sleep(deltime)
1210 | await msg.delete()
1211 | elif choice.lower() == "stream":
1212 | await bot.change_presence(status=config_selfbot.status_activity if rpc.read_variable_json("status_activity") == "VOID" else rpc.read_variable_json("status_activity"),
1213 | afk=afk,
1214 | activity=selfcord.Activity.Stream(name=config_selfbot.activity_name if rpc.read_variable_json("activity_name") == "VOID" else rpc.read_variable_json("activity_name"),
1215 | details=config_selfbot.activity_details if rpc.read_variable_json("activity_details") == "VOID" else rpc.read_variable_json("activity_details"),
1216 | state=config_selfbot.activity_state if rpc.read_variable_json("activity_state") == "VOID" else rpc.read_variable_json("activity_state"),
1217 | buttons={config_selfbot.activity_button_one if rpc.read_variable_json("activity_button_one") == "VOID" else rpc.read_variable_json("activity_button_one"): config_selfbot.activity_button_one_answer if rpc.read_variable_json("activity_button_one_answer") == "VOID" else rpc.read_variable_json("activity_button_one_answer"), config_selfbot.activity_button_two if rpc.read_variable_json("activity_button_two") == "VOID" else rpc.read_variable_json("activity_button_two"): config_selfbot.activity_button_two_answer if rpc.read_variable_json("activity_button_two_answer") == "VOID" else rpc.read_variable_json("activity_button_two_answer")},
1218 | key=config_selfbot.image_key if rpc.read_variable_json("image_key") == "VOID" else rpc.read_variable_json("image_key"),
1219 | application_id=config_selfbot.application_id if rpc.read_variable_json("application_id") == "VOID" else rpc.read_variable_json("application_id"),
1220 | url=config_selfbot.streaming_url if rpc.read_variable_json("streaming_url") == "VOID" else rpc.read_variable_json("streaming_url")
1221 | )
1222 | )
1223 | msg = await ctx.message.edit(f"⭕ **Type:** \"Stream\".")
1224 | await asyncio.sleep(deltime)
1225 | await msg.delete()
1226 | else:
1227 | msg = await ctx.message.edit(f"❌ Incorrect. (game / watch / listen / stream)")
1228 | await asyncio.sleep(deltime)
1229 | await msg.delete()
1230 |
1231 | ####################
1232 | # flood command #
1233 | # (it's very #
1234 | # big!!!!) #
1235 | ####################
1236 |
1237 | flood_spam = """_ _
1238 | _ _
1239 | _ _
1240 | _ _
1241 | _ _
1242 | _ _
1243 | _ _
1244 | _ _
1245 | _ _
1246 | _ _
1247 | _ _
1248 | _ _
1249 | _ _
1250 | _ _
1251 | _ _
1252 | _ _
1253 | _ _
1254 | _ _
1255 | _ _
1256 | _ _
1257 | _ _
1258 | _ _
1259 | _ _
1260 | _ _
1261 | _ _
1262 | _ _
1263 | _ _
1264 | _ _
1265 | _ _
1266 | _ _
1267 | _ _
1268 | _ _
1269 | _ _
1270 | _ _
1271 | _ _
1272 | _ _
1273 | _ _
1274 | _ _
1275 | _ _
1276 | _ _
1277 | _ _
1278 | _ _
1279 | _ _
1280 | _ _
1281 | _ _
1282 | _ _
1283 | _ _
1284 | _ _
1285 | _ _
1286 | _ _
1287 | _ _
1288 | _ _
1289 | _ _
1290 | _ _
1291 | _ _
1292 | _ _
1293 | _ _"""
1294 |
1295 |
1296 |
1297 |
1298 |
1299 |
1300 |
1301 |
1302 |
1303 |
1304 |
1305 |
1306 |
1307 |
1308 | @bot.cmd(description="flood")
1309 | async def flood(ctx):
1310 | await ctx.message.edit(flood_spam)
1311 | await asyncio.sleep(0.4)
1312 | for i in range(2):
1313 | await ctx.channel.send(flood_spam)
1314 | await asyncio.sleep(0.4)
1315 |
1316 |
1317 |
1318 |
1319 |
1320 |
1321 | ####################
1322 | # start the #
1323 | # selfbot !! #
1324 | ####################
1325 |
1326 | try:
1327 | bot.run(token)
1328 | except selfcord.api.errors.LoginFailure:
1329 | print(f"Token Error. Please configure a valid token in config_selfbot.py\n( Error Message: {e} )")
1330 | except Exception as e:
1331 | print(f"Maybe a Config Error. Make sure all information in config_selfbot.py are correct.\n( Error Message: {e} )")
--------------------------------------------------------------------------------