Skip to content

Instantly share code, notes, and snippets.

View aoikishu's full-sized avatar

Keith Marshall aoikishu

View GitHub Profile
// 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 ) {
// 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'} ],
//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'} ],