mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-26 19:24:42 +01:00
Cleanup
This commit is contained in:
parent
58cc30cbf6
commit
2e37ef8cd6
2
docs
2
docs
@ -1 +1 @@
|
||||
Subproject commit 832a6d3cfe6e9790f00c0e65c7202e8e0fa6a553
|
||||
Subproject commit 326dc6dee0cc0303db36c4bd5e74a241f8f9ad57
|
@ -111,6 +111,7 @@ class MyEventHandler extends SimpleEventHandler
|
||||
{
|
||||
return [
|
||||
// Offers a /restart command to admins that can be used to restart the bot, applying changes.
|
||||
// Make sure to run in a bash while loop when running via CLI to allow self-restarts.
|
||||
RestartPlugin::class
|
||||
];
|
||||
}
|
||||
@ -142,16 +143,6 @@ class MyEventHandler extends SimpleEventHandler
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* If the message is a /restart command from an admin, restart to reload changes to the event handler code.
|
||||
*/
|
||||
#[FilterCommand('restart')]
|
||||
public function restartCommand(Incoming & Message & FromAdmin $message): void
|
||||
{
|
||||
// Make sure to run in a bash while loop when running via CLI to allow self-restarts.
|
||||
$this->restart();
|
||||
}
|
||||
|
||||
/**
|
||||
* Reposts a media file as a Telegram story.
|
||||
*/
|
||||
|
@ -46,6 +46,7 @@ class MyEventHandler extends SimpleEventHandler
|
||||
{
|
||||
return [
|
||||
// Offers a /restart command to admins that can be used to restart the bot, applying changes.
|
||||
// Make sure to run in a bash while loop when running via CLI to allow self-restarts.
|
||||
RestartPlugin::class
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user