return message
@asyncio.coroutine
-def say_many(channel, lines, *, maxlen = 2000):
+def say_many(channel, lines, *, attachment = None, maxlen = 2000):
while len(lines):
message_len = 0
n = 0
# We can't print too big a message.
subset = lines[:n]
message = '\n'.join(subset)
- result = yield from say(channel, message)
+ result = yield from say(channel, message, attachment = attachment)
if not result:
break
lines = lines[len(subset):]
+ attachment = None
def voice_channel_for_channel(channel):
for voice in client.voice_clients: