summaryrefslogtreecommitdiffstats
path: root/common/strings.json
diff options
context:
space:
mode:
authornico <nico@magicbroccoli.de>2019-01-09 19:38:04 +0100
committernico <nico@magicbroccoli.de>2019-01-09 19:38:04 +0100
commit134a674228b3d2b42cb7fe2a12f215a225e7544b (patch)
tree0643df4b2c3e0d0368eab6a2c01625fcb04d801f /common/strings.json
parent9c3f6761e5f7749125a0d4939cd1809aabdfd2be (diff)
initial rework of the implemented functionsdev
+ added __init__ import file for all functions + added new helper function + added strings.json file * some logic fixups * validator fixup * arg abbreviation moved to misc
Diffstat (limited to 'common/strings.json')
-rw-r--r--common/strings.json108
1 files changed, 108 insertions, 0 deletions
diff --git a/common/strings.json b/common/strings.json
new file mode 100644
index 0000000..eefd73e
--- /dev/null
+++ b/common/strings.json
@@ -0,0 +1,108 @@
+{
+ "help": {
+ "help_basic": {
+ "contact": "!contact domain.tld -- receive XMPP server contact address info",
+ "help": "!help -- display all basic help information",
+ "uptime": "!uptime domain.tld -- receive XMPP server uptime",
+ "version": "!version domain.tld -- receive XMPP server version",
+ "xep": "!xep $xepnumber -- receive xep info abstract"
+ },
+ "help_advanced": {
+ "contact": {
+ "info": "XEP-0157 contact addresses for XMPP Services request",
+ "optional_args": {
+ "info": "it is not required to type the whole optional argument, it is only necessary to type at least the two starting characters.",
+ "possible_vars": [
+ "abuse-addresses",
+ "admin-addresses",
+ "feedback-addresses",
+ "sales-addresses",
+ "security-addresses",
+ "support-addresses"
+ ]
+ },
+ "targets": "valid target: domain.tld",
+ "command": "!contact $target $optional_argument"
+ },
+ "uptime": {
+ "info": "XEP-0012 last activity request",
+ "targets": "valid targets: domain.tld",
+ "command": "!uptime $target $optional_argument"
+ },
+ "version": {
+ "info": "XEP-0072 version query request",
+ "optional_args": {
+ "name": "receive the name of the software used",
+ "os": "receive only the operating system version",
+ "version": "receive only the software version used"
+ },
+ "targets": "valid targets are: domain.tld and jid/resource",
+ "command": "!version $target $optional_argument"
+ },
+ "xep": {
+ "info": "receive abstract of referenced XEP",
+ "optional_args": {
+ "last_revision_tags": [
+ "date",
+ "version",
+ "initials",
+ "remark"
+ ],
+ "tags": [
+ "number",
+ "title",
+ "abstract",
+ "type",
+ "status",
+ "approver",
+ "shortname",
+ "sig",
+ "lastcall",
+ "date",
+ "version",
+ "initials",
+ "remark"
+ ]
+ },
+ "targets": "any valid integer",
+ "command": "!xep $xepnumber $optional_argument"
+ },
+ "info": {
+ "info": "pooled command to accumulate dataset composed of uptime version and contact",
+ "targets": "valid target is: domain.tld",
+ "command": "!info $target"
+ }
+ }
+ },
+ "functions": {
+ "keywords": {
+ "all": [
+ "!help",
+ "!uptime",
+ "!version",
+ "!contact",
+ "!xep",
+ "!info"
+ ],
+ "domain": [
+ "!uptime",
+ "!version",
+ "!contact"
+ ],
+ "expand": {
+ "!info": ["!uptime", "!version", "!contact"]
+ },
+ "noarg": [
+ "!help"
+ ],
+ "number": [
+ "!xep"
+ ]
+ },
+ "answers": [
+ "I heard that %s",
+ "%s I am sorry for that.",
+ "%s did you try turning it off and on again?"
+ ]
+ }
+} \ No newline at end of file