Formatting fixes

master
Tristan Gosselin-Hane 6 years ago
parent b2cf991f5b
commit f4d6be681f
No known key found for this signature in database
GPG Key ID: D2282BE1CF7B78DA
  1. 7
      minecraft-discord-bridge/minecraft_discord_bridge.py

@ -667,7 +667,8 @@ def main():
PREVIOUS_MESSAGE = message_to_send
NEXT_MESSAGE_TIME = datetime.now(timezone.utc) + timedelta(seconds=config.message_delay)
log.info("Outgoing message from discord: Username: {} Message: {}".format(minecraft_username, message_to_send))
log.info("Outgoing message from discord: Username: {} Message: {}".format(
minecraft_username, message_to_send))
for channel in channels:
webhooks = await discord_bot.get_channel(channel.channel_id).webhooks()
@ -689,8 +690,8 @@ def main():
if not dm_channel:
await message.author.create_dm()
send_channel = message.author.dm_channel
msg = "Unable to send chat message: there is no Minecraft account linked to this discord account," \
"please run `mc!register`."
msg = "Unable to send chat message: there is no Minecraft account linked to this discord " \
"account, please run `mc!register`."
await send_channel.send(msg)
except discord.errors.Forbidden:
if isinstance(message.author, discord.abc.User):

Loading…
Cancel
Save