diff --git a/main-bot.py b/main-bot.py index 4972217..34dc4ca 100644 --- a/main-bot.py +++ b/main-bot.py @@ -70,6 +70,9 @@ async def say_message(userid:int, guildid:int, shortname:str, message:str,channe # print(short_name,full_name,perso_image) webhook = None # print("ok2") + if type(channel) == type(discord.DMChannel): + await channel.send(f"**{full_name}({short_name})**: {message}") + return if discord.utils.get(await channel.webhooks(),name=short_name) is None: # print("ok3"); webhook = await channel.create_webhook(name=short_name)