diff --git a/modules/__pycache__/admin.cpython-36.pyc b/modules/__pycache__/admin.cpython-36.pyc index 1080430..de55ee4 100644 Binary files a/modules/__pycache__/admin.cpython-36.pyc and b/modules/__pycache__/admin.cpython-36.pyc differ diff --git a/modules/admin.py b/modules/admin.py index 0a1ec92..6fb6017 100644 --- a/modules/admin.py +++ b/modules/admin.py @@ -39,6 +39,11 @@ async def ev(self, chan, source, msg): exec(' '.join(msg)) await self.message(chan, 'ok') +async def send(self, c, n, m): + msg = m.split(' ') + await self.message(msg.pop(0), ' '.join(msg)) + await self.message(c, 'ok') + commands = { 'quit': quit, 'reload': reloadmods, @@ -46,6 +51,7 @@ commands = { 'part': part, 'join': join, 'eval': ev, + 'send': send, 'joins': joins } @@ -65,7 +71,7 @@ async def init(self): self.cmd['admin'] = adminHandle self.joins = ["#chaos", "#lickthecheese", "#windowsloser", "#cminecraft", "#team", "#meta", "#rscmakerspace", "#archlinux", "#tildetel", "#one", "#starlanes"] - self.help['admin'] = ['admin - various bot owner commands (more for subcommands)', 'sub-commands of admin, for more info do help admin : quit reload commit part join joins eval'] + self.help['admin'] = ['admin - various bot owner commands (more for subcommands)', 'sub-commands of admin, for more info do help admin : quit reload commit part join joins eval send'] self.help['admin quit'] = ['admin quit - make the bot disconnect','no'] self.help['admin reload'] = ['admin reload - reload the modules and configs', 'nothing to see here'] self.help['admin commit'] = ['admin commit - oh no (more)', 'suggested with <3 by khux'] @@ -73,6 +79,8 @@ async def init(self): self.help['admin join'] = ['admin join - make the bot join a channel','...'] self.help['admin joins'] = ['admin joins - join more channels', 'dont reconnect to a bunch of chans when the bots crashing etc'] self.help['admin eval'] = ['admin eval - absolute power corrupts absolutely', 'lmao'] + self.help['admin send'] = ['admin send - send a message', 'lmao'] +