mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
telegram-chat: use :jobname to get script name
This commit is contained in:
parent
6e54c7c30b
commit
24b681761b
1 changed files with 3 additions and 1 deletions
|
@ -3,10 +3,12 @@
|
||||||
# Copyright (c) 2023-2024 Christian Hesse <mail@eworm.de>
|
# Copyright (c) 2023-2024 Christian Hesse <mail@eworm.de>
|
||||||
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
|
# https://git.eworm.de/cgit/routeros-scripts/about/COPYING.md
|
||||||
#
|
#
|
||||||
|
# requires RouterOS, version=7.12
|
||||||
|
#
|
||||||
# use Telegram to chat with your Router and send commands
|
# use Telegram to chat with your Router and send commands
|
||||||
# https://git.eworm.de/cgit/routeros-scripts/about/doc/telegram-chat.md
|
# https://git.eworm.de/cgit/routeros-scripts/about/doc/telegram-chat.md
|
||||||
|
|
||||||
:local 0 "telegram-chat";
|
:local 0 [ :jobname ];
|
||||||
:global GlobalFunctionsReady;
|
:global GlobalFunctionsReady;
|
||||||
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
|
:while ($GlobalFunctionsReady != true) do={ :delay 500ms; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue