1 upvotes, 1 direct replies (showing 1)
View submission: Import/Export mod macros?
I *think* I might of found it in subreddit/wiki/toolbox, I'll have to play around with it.
Comment by creesch at 14/06/2019 at 16:18 UTC
2 upvotes, 1 direct replies
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.