This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Commands I'm testing will go here | |
| // Testing anime search for genres | |
| // genres works but you can't do more than one modifier (score, type, genre, etc. ) at one time. I'll try to work it out. | |
| CmdUtils.CreateCommand({ | |
| name: "anime-search2", | |
| takes: {"name": noun_arb_text}, | |
| modifiers: {"type": noun_arb_text, "score": noun_arb_text, "genre": noun_arb_text}, | |
| preview: function( pblock, name, mods ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // anime and character searches for MyAnimeList.net | |
| //Advanced anime search is incomplete for Parser2. Code for parser1 should still work if you still have the older version. | |
| if (CmdUtils.parserVersion == 2) { | |
| //parser 2 code: ---------------------------------------------------------------- | |
| CmdUtils.CreateCommand({ | |
| names: ['anime search'], | |
| arguments: [ {role: 'object', nountype: noun_arb_text, label: 'Title'} ], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Advanced anime search is incomplete for Parser2. Code for parser1 should still work if you still have the older version. | |
| /* All the commands I've made that work | |
| Which is currently searches for playlist.com and MyAnimeList.net | |
| */ | |
| if (CmdUtils.parserVersion == 2) { | |
| //parser 2 code: ---------------------------------------------------------------- | |
| CmdUtils.CreateCommand({ | |
| names: ['playlist search'], | |
| arguments: [ {role: 'object', nountype: noun_arb_text, label: 'Song/Artist'} ], |