Initial scaffolding
This commit is contained in:
1 parent
15a0ff43de
commit
989415ec1f
20 files changed
+743
No files matched your search
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env perl
|
||||
use strict;
|
||||
use warnings;
|
||||
use FindBin qw($RealBin);
|
||||
use lib "$RealBin/../lib";
|
||||
|
||||
# One-shot helper to register (or remove) the Telegram webhook.
|
||||
# Run once after install, and again whenever the webhook URL changes.
|
||||
# Only one webhook can be active per bot token at a time.
|
||||
#
|
||||
# Usage:
|
||||
# mnemosyne-webhook [--config /path/to/mnemosyne.conf] [--delete]
|
||||
#
|
||||
# TODO: Load config
|
||||
# TODO: --delete: call Mnemosyne::Telegram::delete_webhook()
|
||||
# TODO: default: call Mnemosyne::Telegram::set_webhook(webhook_url, webhook_secret)
|
||||
# TODO: Print result (registered URL, or confirmation of deletion)
|
||||
|
||||
print "mnemosyne-webhook: not yet implemented\n";
|
||||
Reference in new issue
Block a user