change(prefix): set default prefix to cluster name

This commit is contained in:
Romain J 2020-01-01 19:38:58 +01:00
parent ff878711bf
commit 92a0c257ca

2
bot.py
View file

@ -35,7 +35,7 @@ l_extensions: List[str] = [
async def _prefix_callable(bot, message: discord.message) -> list:
extras = ['.']
extras = [bot.cluster.get('Name')]
if message.guild is not None:
extras = []
if str(message.guild.id) in bot.prefixes: