-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.py
More file actions
58 lines (47 loc) · 2.86 KB
/
Copy pathmain.py
File metadata and controls
58 lines (47 loc) · 2.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import os
import asyncio
import discord
import platform
import colorama
from function import Clone
from colorama import Fore, Style
colorama.init(autoreset=True)
def display_banner():
banner = """
██████╗ █████╗ ██████╗ ██╗ ██╗██████╗ █████╗ ██╗ ██╗███████╗
██╔══██╗██╔══██╗██╔══██╗██║ ██╔╝██╔══██╗██╔══██╗╚██╗ ██╔╝██╔════╝
██║ ██║███████║██████╔╝█████╔╝ ██║ ██║███████║ ╚████╔╝ ███████╗
██║ ██║██╔══██║██╔══██╗██╔═██╗ ██║ ██║██╔══██║ ╚██╔╝ ╚════██║
██████╔╝██║ ██║██║ ██║██║ ██╗██████╔╝██║ ██║ ██║ ███████║
╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝
"""
print(Fore.RED + banner)
print(Fore.YELLOW + "\n\t\tSunucu Kopyalayıcı - DarkdaysDev Tarafından Yapılmıştır\n" + Style.RESET_ALL)
def clear_screen():
os.system("cls" if platform.system() == "Windows" else "clear")
display_banner()
class CloneClient(discord.Client):
async def on_ready(self):
clear_screen()
print(Fore.GREEN + f"\n{self.user} olarak giriş yapıldı." + Style.RESET_ALL)
print(Fore.BLUE + "Sunucu kopyalama işlemi başlatılıyor...\n" + Style.RESET_ALL)
guild_from = self.get_guild(int(FROM_GUILD))
guild_to = self.get_guild(int(TO_GUILD))
try:
await Clone.rol_sil(guild_to)
await Clone.kanal_sil(guild_to)
await Clone.rol_olustur(guild_to, guild_from)
await Clone.kategori_olustur(guild_to, guild_from)
await Clone.kanal_olustur(guild_to, guild_from)
print(Fore.GREEN + "\nSunucu başarıyla kopyalandı!" + Style.RESET_ALL)
except Exception as e:
print(Fore.RED + f"\nHata oluştu: {e}" + Style.RESET_ALL)
await asyncio.sleep(5)
await self.close()
if __name__ == "__main__":
clear_screen()
TO_GUILD = input(Fore.BLUE + "Aktarılacak sunucu ID (Aktarılacak sunucu):\n> " + Style.RESET_ALL)
FROM_GUILD = input(Fore.BLUE + "Hedef sunucu ID (kopyalanacak sunucu):\n> " + Style.RESET_ALL)
TOKEN = input(Fore.BLUE + "\nDiscord tokeniniz:\n> " + Style.RESET_ALL)
client = CloneClient()
client.run(TOKEN, bot=False)