RoboDanny icon indicating copy to clipboard operation
RoboDanny copied to clipboard

Export tags through ?tag all --json

Open OoLunar opened this issue 3 years ago • 5 comments

Same as ?tag all --text, except it exports the content as JSON, with the tag's content. Closes #83. Example export:

{"id":3,"name":"codeblocks","owner_id":336733686529654798,"uses":1,"can_delete":true,"is_alias":false,"content":"Use codeblocks for formatting code:\n\\`\\`\\`<language name>\n<your code here>\n\\`\\`\\`\n\nFor example:\n\\`\\`\\`python\nif True:\n    print(\"Hi!\")\n\\`\\`\\`\nProduces:\n```python\nif True:\n    print(\"Hi!\")\n```"}

OoLunar avatar Mar 01 '21 22:03 OoLunar

~~Just realized that ?tag all --json only exports the latest tag instead of all of them. Fixing that now.~~

All tags are exported. Aliases are exported with the tags content.

OoLunar avatar Mar 01 '21 23:03 OoLunar

Any update on this PR? This is a feature that would greatly help me.

thecashewtrader avatar Apr 03 '22 05:04 thecashewtrader

From what I understand, R. Danny is no longer being worked on and is only functioning until the message intent kills it. I don't think the PR will be merged

OoLunar avatar Apr 03 '22 06:04 OoLunar

That's sad tbh, R. Danny being phased out was one of the main reasons I wanted an export, so that I can have tags backed up in plaintext.

thecashewtrader avatar Apr 03 '22 06:04 thecashewtrader

From what I understand, R. Danny is no longer being worked on and is only functioning until the message intent kills it. I don't think the PR will be merged

R.danny has been verified, I think this pr is fine to be merged if Danny likes the concept and code.

JDJGInc avatar Apr 23 '22 20:04 JDJGInc