Updated config options

This also updates the README
This commit is contained in:
2024-08-02 11:12:09 -04:00
parent 9f87a8fec9
commit a4dfb1393d
3 changed files with 29 additions and 19 deletions
+2 -5
View File
@@ -1,9 +1,6 @@
import logging
from aprsd_twitter_plugin.conf import twitter
from aprsd_telegram_plugin.conf import telegram
from oslo_config import cfg
CONF = cfg.CONF
twitter.register_opts(CONF)
telegram.register_opts(CONF)
+4 -4
View File
@@ -12,18 +12,18 @@ telegram_opts = [
help="Callsign allowed to use Telegram! "
"For example, if you set this to WB4BOR then any"
"callsign starting with WB4BOR will be allowed to use this."
"This way WB4BOR-1 can tweet from this instance.",
"This way WB4BOR-1 can use this instance.",
),
cfg.StrOpt(
"apiKey",
help="Your twitter apiKey"
help="Your telegram apiKey"
"Information for creating your api keys is here: "
"https://developer.twitter.com/en/docs/authentication/oauth-1-0a/api-key-and-secret",
"https://core.telegram.org/api/obtaining_api_id",
),
cfg.ListOpt(
"shortcuts",
help="List of shortcuts for sending telegram messages "
"For Exmaple: wb=hemna6969,cl=craigerl\n"
"For Example: wb=hemna6969,cl=craigerl\n"
"Means use 'wb' to send a telegram message to hemna6969",
),
]