Nettoyage de bot.py

This commit is contained in:
Jeremy 2020-04-20 17:22:08 +02:00
parent 7eac932a4e
commit ceeb020855

11
bot.py
View file

@ -42,16 +42,6 @@ l_extensions: List[str] = [
async def _prefix_callable(bot, message: discord.message) -> list:
<<<<<<< HEAD
extras = [bot.cluster.get('Name') + '.']
if message.guild is not None:
if str(message.guild.id) in bot.prefixes:
extras.extend(
bot.prefixes.get(str(message.guild.id), "prefixes").split(
bot.config.get("misc", "Separator")
)
)
=======
try:
with open(f'./configs/guilds/{message.guild.id}.json', 'r') as f:
data = json.load(f)
@ -62,7 +52,6 @@ async def _prefix_callable(bot, message: discord.message) -> list:
extras = [bot.cluster.get('Name') + '.']
extras.extend(custom_prefix)
>>>>>>> cce7bb409303e9ad27ef4e5617d0bc9068810f13
return commands.when_mentioned_or(*extras)(bot, message)