mirror of https://github.com/coddrago/Heroku
Automatically confirm update if it was initiated via the button in update notifier
parent
df3c684a43
commit
c98a9f610b
|
@ -170,7 +170,7 @@ class UpdateNotifierMod(loader.Module):
|
|||
|
||||
m = await self._client.send_message(
|
||||
self.inline.bot_username,
|
||||
"<code>.update</code>",
|
||||
"<code>.update --force</code>",
|
||||
)
|
||||
|
||||
await self.inline.bot.delete_message(
|
||||
|
|
|
@ -180,7 +180,7 @@ class UpdaterMod(loader.Module):
|
|||
@loader.owner
|
||||
async def updatecmd(self, message: Message) -> None:
|
||||
"""Downloads userbot updates"""
|
||||
if self.inline.init_complete and await self.inline.form(
|
||||
if "--force" not in (utils.get_args_raw(message) or "") and self.inline.init_complete and await self.inline.form(
|
||||
message=message,
|
||||
text=self.strings(
|
||||
"update_confirm",
|
||||
|
|
Loading…
Reference in New Issue