2 upvotes, 1 direct replies (showing 1)
View submission: Import/Export mod macros?
That is the correct place, you should be a bit careful though because it is easy to mess up. The format is json and it helps to put it through something like http://jsonprettyprint.com/[1] first to make it show in a more readable format.
1: http://jsonprettyprint.com/
Basically mod macros can be found starting from `"modMacros": [` and ending with a closing `]`
Like so
"modMacros": [ { "text": "Have%20you%20tried%20%5Bclearing%20your%20toolbox%20cache%5D%28%23%3Ftbsettings%3Dtoolbox%26setting%3Dclearcache%29%3F", "title": "cache", "distinguish": false, "ban": false, "mute": false, "remove": false, "approve": false, "lockthread": false, "sticky": false } ]
The macro is the bit between `{}`
Two macros would look like this
"modMacros": [ { "text": "Have%20you%20tried%20%5Bclearing%20your%20toolbox%20cache%5D%28%23%3Ftbsettings%3Dtoolbox%26setting%3Dclearcache%29%3F", "title": "cache", "distinguish": false, "ban": false, "mute": false, "remove": false, "approve": false, "lockthread": false, "sticky": false }, { "text": "test%20modmail%20macro", "title": "test", "distinguish": false, "ban": false, "mute": true, "remove": true, "approve": false, "lockthread": false, "sticky": false, "archivemodmail": true, "highlightmodmail": true } ]
See how they are comma seperated? Be careful though the last macro should not have an ending comma.
And uhm yeah... we probably should make this a feature in toolbox to do in an easier manner.
Comment by Froggypwns at 14/06/2019 at 16:23 UTC
1 upvotes, 0 direct replies
Thank you, I should hopefully be able to figure it out from there. I saw the raw text and was like "whelp, this is definitely a step above my paygrade". I started comparing the two subs side by side, along with some past edits to see what went wrong. I'll take advantage of that pretty print site!