@bot.command(pass_context=True)
async def test(ctx):
msg = "you message"
for server in bot.servers:
for channel in server.channels:
try:
await bot.send_message(channel, msg)
except Exception:
continue
else:
break