Created
October 3, 2016 15:04
-
-
Save jayktaylor/c18ddef3817c58ad1cbb6018d33790eb to your computer and use it in GitHub Desktop.
MusicBot - Send all command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async def cmd_sendall(self, args, leftover_args): | |
""" | |
Usage: | |
{command_prefix}sendall <message> | |
Sends a message to all servers the bot is on | |
""" | |
if leftover_args: | |
args = ' '.join([args, *leftover_args]) | |
for s in self.servers: | |
await self.safe_send_message(s, args) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm getting this weird error in terminal:
/Farmer#6858: !sendall this is a test WARNING: Cannot send message to "Farmer's Dev Cave", invalid channel?
. The message gets sent to one of the channels the server is one but not the other.