DOMM6H27PEY5VTWDDRRDBORJHOI6OML55ERKYMIJX3ZU3HM2P3RQC
bot.loop.create_task(status_task())
print(f"Logged in as {bot.user.name}")
print(f"Discord.py API version: {discord.__version__}")
print(f"Python version: {platform.python_version()}")
print(f"Running on: {platform.system()} {platform.release()} ({os.name})")
print("-------------------")
bot.loop.create_task(status_task())
print(f"Logged in as {bot.user.name}")
print(f"Discord.py API version: {discord.__version__}")
print(f"Python version: {platform.python_version()}")
print(f"Running on: {platform.system()} {platform.release()} ({os.name})")
print("-------------------")
while True:
await bot.change_presence(activity=discord.Game("with you!"))
await asyncio.sleep(60)
await bot.change_presence(activity=discord.Game("with Krypton!"))
await asyncio.sleep(60)
await bot.change_presence(activity=discord.Game(f"{config.BOT_PREFIX} help"))
await asyncio.sleep(60)
await bot.change_presence(activity=discord.Game("with humans!"))
await asyncio.sleep(60)
while True:
await bot.change_presence(activity=discord.Game("with you!"))
await asyncio.sleep(60)
await bot.change_presence(activity=discord.Game("with Krypton!"))
await asyncio.sleep(60)
await bot.change_presence(activity=discord.Game(f"{config.BOT_PREFIX} help"))
await asyncio.sleep(60)
await bot.change_presence(activity=discord.Game("with humans!"))
await asyncio.sleep(60)
for file in os.listdir("./cogs"):
if file.endswith(".py"):
extension = file[:-3]
try:
bot.load_extension(f"cogs.{extension}")
print(f"Loaded extension '{extension}'")
except Exception as e:
exception = f"{type(e).__name__}: {e}"
print(f"Failed to load extension {extension}\n{exception}")
for file in os.listdir("./cogs"):
if file.endswith(".py"):
extension = file[:-3]
try:
bot.load_extension(f"cogs.{extension}")
print(f"Loaded extension '{extension}'")
except Exception as e:
exception = f"{type(e).__name__}: {e}"
print(f"Failed to load extension {extension}\n{exception}")
# Ignores if a command is being executed by a bot or by the bot itself
if message.author == bot.user or message.author.bot:
return
# Ignores if a command is being executed by a blacklisted user
if message.author.id in config.BLACKLIST:
return
await bot.process_commands(message)
# Ignores if a command is being executed by a bot or by the bot itself
if message.author == bot.user or message.author.bot:
return
# Ignores if a command is being executed by a blacklisted user
if message.author.id in config.BLACKLIST:
return
await bot.process_commands(message)
fullCommandName = ctx.command.qualified_name
split = fullCommandName.split(" ")
executedCommand = str(split[0])
print(f"Executed {executedCommand} command in {ctx.guild.name} (ID: {ctx.message.guild.id}) by {ctx.message.author} (ID: {ctx.message.author.id})")
full_command_name = ctx.command.qualified_name
split = full_command_name.split(" ")
executed_command = str(split[0])
print(
f"Executed {executed_command} command in {ctx.guild.name} (ID: {ctx.message.guild.id}) by {ctx.message.author} "
f"(ID: {ctx.message.author.id})"
)
if isinstance(error, commands.CommandOnCooldown):
embed = discord.Embed(
title="Error!",
description="This command is on a %.2fs cool down" % error.retry_after,
color=config.error
)
await context.send(embed=embed)
raise error
if isinstance(error, commands.CommandOnCooldown):
embed = discord.Embed(
title="Error!",
description="This command is on a %.2fs cool down" % error.retry_after,
color=config.error
)
await context.send(embed=embed)
raise error