-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
53 lines (48 loc) · 2.06 KB
/
Copy pathmain.py
File metadata and controls
53 lines (48 loc) · 2.06 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
from colorama import init
init()
import selfcord as discord
from cli.auth import client
from cli import run
from cfg.cfg import get_value
from colorama import Fore, Style
import sys
import platform
import asyncio
from helper import security
import helper
import json
@client.event
async def on_ready():
print((Fore.GREEN + Style.BRIGHT) + get_value('botname') + ' Selfbot successfully connected to the server.')
await helper.console(client)
@client.command(name='shutdown', help='Shutdown the selfbot remotely', usage='shutdown')
async def _shutdown(ctx):
owner = get_value('owner')
if ctx.author.id == int(owner):
msg = await ctx.send("Shutting down...")
await helper.shutdown(client)
if __name__ == '__main__':
extensions = get_value('modules')
default_extensions = ["events.Nitrosniper", "events.Giveawaysniper", "handler.errorHandler"]
print((Fore.RED + Style.BRIGHT) + "------------------------ LOADING COMMANDS ------------------------")
try:
for extension in extensions:
client.load_extension(extension)
print(Fore.CYAN + 'Command Loaded: {}'.format(extension))
except Exception as error:
print((Fore.RED + Style.BRIGHT) + 'Command {} cannot be loaded. [{}]'.format(extension, error))
pass
print((Fore.RED + Style.BRIGHT) + "------------------------ LOADING MODULES ------------------------")
try:
for default_extension in default_extensions:
client.load_extension(default_extension)
print(Fore.CYAN + 'Module Loaded: {}'.format(default_extension))
except Exception as error:
print((Fore.RED + Style.BRIGHT) + 'Module {} cannot be loaded. [{}]'.format(default_extension, error))
pass
print((Fore.YELLOW + Style.BRIGHT) + 'Initializing selfbot please wait...')
print('Xyno Version: ' + get_value('version'))
print('Discord Version: ' + discord.__version__)
print('Python Version: ' + sys.version)
print('OS Information: ' + str(platform.platform()))
run.start()