shit
This commit is contained in:
parent
a0352ef1b1
commit
3412c5c0b9
3 changed files with 106 additions and 62 deletions
|
@ -76,7 +76,7 @@ class Rsudo(Cog):
|
|||
|
||||
return users[0]
|
||||
|
||||
async def create_request(self, message):
|
||||
async def request(self, message, wait=False):
|
||||
command_channel = self.bot.get_channel(
|
||||
self.bot.config.command_channel
|
||||
)
|
||||
|
@ -142,7 +142,10 @@ class Rsudo(Cog):
|
|||
await msg.edit(embed=embed)
|
||||
|
||||
# todo: does this not execute in the wrong directory?
|
||||
out = await shell(command)
|
||||
if wait:
|
||||
return True
|
||||
else:
|
||||
out = await shell(command)
|
||||
|
||||
# output may be very long
|
||||
paginator = commands.Paginator(prefix='```sh\n', suffix='```')
|
||||
|
@ -168,6 +171,9 @@ class Rsudo(Cog):
|
|||
|
||||
await msg.edit(embed=embed)
|
||||
|
||||
if wait:
|
||||
return False
|
||||
|
||||
try:
|
||||
# await user.send(f'Your request for the command {command} was denied.')
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue