Skip to content

Instantly share code, notes, and snippets.

@jayktaylor
Created October 3, 2016 15:04
Show Gist options
  • Select an option

  • Save jayktaylor/c18ddef3817c58ad1cbb6018d33790eb to your computer and use it in GitHub Desktop.

Select an option

Save jayktaylor/c18ddef3817c58ad1cbb6018d33790eb to your computer and use it in GitHub Desktop.

Revisions

  1. Jayden Bailey created this gist Oct 3, 2016.
    10 changes: 10 additions & 0 deletions bot.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    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)