Skip to content

Instantly share code, notes, and snippets.

@jayktaylor
Created October 3, 2016 15:05
Show Gist options
  • Save jayktaylor/01a91e5270bbf0daf3884c60eb161329 to your computer and use it in GitHub Desktop.
Save jayktaylor/01a91e5270bbf0daf3884c60eb161329 to your computer and use it in GitHub Desktop.
MusicBot - Make restart command broadcast to all servers
async def cmd_restart(self, author, channel):
for s in self.servers:
await self.safe_send_message(s, "Restarting (by {0.name}#{0.discriminator})".format(author))
await self.disconnect_all_voice_clients()
raise exceptions.RestartSignal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment