mirror of
https://github.com/opus-tango/minecraft-server-discord-bot.git
synced 2026-03-20 03:55:20 +00:00
rollback
This commit is contained in:
6
bot.py
6
bot.py
@@ -177,9 +177,9 @@ async def _read_from_pipe(servername, channel_id, bot_instance):
|
||||
print(discord_message)
|
||||
await bot.loop.create_task(channel.send("Message sending..."))
|
||||
await bot.loop.create_task(channel.send(discord_message))
|
||||
else:
|
||||
# Optionally, you can log other server output to a debug channel or console
|
||||
print(f"Non-chat output: {line}")
|
||||
# else:
|
||||
# # Optionally, you can log other server output to a debug channel or console
|
||||
# print(f"Non-chat output: {line}")
|
||||
|
||||
await asyncio.sleep(0.01) # Small delay to yield control and avoid busy-waiting
|
||||
|
||||
|
||||
Reference in New Issue
Block a user