diff --git a/examples/gordon/commands/msalad.lua b/examples/gordon/commands/msalad.lua new file mode 100644 index 0000000..77fdd53 --- /dev/null +++ b/examples/gordon/commands/msalad.lua @@ -0,0 +1,90 @@ +grammar = { + cheese = { + "feta cheese", + "goat cheese", + "Parmigiano Reggiano cheese", + }, + meat = { + "chicken", + "steak", + "turkey", + }, + topping = { + "bacon bits", + "bread crumbs", + }, + fruit = { + "apples", + "avocado", + "currants", + "pineapples", + "raisins", + "strawberries", + "watermelon", + }, + herb = { + "basil", + "cilantro", + "dill", + "lemon verbena", + "mint", + "parsley", + "rosemary", + "tarragon", + }, + nut = { + "almonds", + "peanuts", + "pistachios", + "walnuts", + }, + veggie = { + "bean sprouts", + "carrots", + "Swiss chard", + "cucumbers", + "corn", + "kimchi", + "bell peppers", + "roasted peppers", + "kale", + "lettuce", + "onions", + "spring onions", + "potatos", + "pickles", + "radicchio", + "roasted sweet potatos", + "shallots", + "young soybeans", + "spinach", + "tomatoes", + "cherry tomatoes", + "zucchini", + }, + sauce = { + "mayonnaise", + "Caesar salad dressing", + "ranch salad dressing", + "thousand island dressing", + "hot sauce", + }, + origin = { + "Here, have a #meat# salad with #veggie#, #veggie#, #veggie#, #cheese# " .. + "and drizzled with #sauce#!", + "Here, have a #meat# salad with #veggie#, #veggie#, #veggie#, " .. + "sprinkled with #nut# and drizzled with #sauce#!", + "Here, have a #meat# salad with #herb#, #veggie#, #veggie#, #veggie# " .. + "and #veggie#!", + "Here, have a #meat# salad with #fruit#, #veggie#, #fruit#, #veggie# " .. + "and #veggie#!", + "Here, have a #meat# salad with #herb#, #herb#, #veggie#, " .. + "#veggie#, #cheese# and sprinkled with #nut#!", + "Here, have a #meat# and #veggie# salad with #herb#, #veggie#, " .. + "#veggie#, and sprinkled with #nut#!", + "Here, have a #meat# salad with #fruit#, #veggie#, #veggie#, " .. + "#veggie#, #cheese# and sprinkled with #nut# and #topping#!", + "Here, have a #meat# salad with #veggie#, #veggie#, " .. + "#veggie#, #cheese# and #topping#!", + } +} diff --git a/examples/gordon/commands/salad.lua b/examples/gordon/commands/salad.lua new file mode 100644 index 0000000..d29e6ca --- /dev/null +++ b/examples/gordon/commands/salad.lua @@ -0,0 +1,81 @@ +grammar = { + meat_alt = { + "seitan", + "tofu", + "tofurkey", + }, + fruit = { + "apples", + "avocado", + "currants", + "pineapples", + "raisins", + "strawberries", + "watermelon", + }, + herb = { + "basil", + "cilantro", + "dill", + "lemon verbena", + "mint", + "parsley", + "rosemary", + "tarragon", + }, + nut = { + "almonds", + "peanuts", + "pistachios", + "walnuts", + }, + veggie = { + "bean sprouts", + "carrots", + "Swiss chard", + "cucumbers", + "corn", + "kimchi", + "bell peppers", + "roasted peppers", + "kale", + "lettuce", + "onions", + "spring onions", + "potatos", + "pickles", + "radicchio", + "roasted sweet potatos", + "shallots", + "young soybeans", + "spinach", + "tomatoes", + "cherry tomatoes", + "zucchini", + }, + sauce = { + "hot sauce", + }, + origin = { + "Here, have a #fruit# salad with #herb#, #veggie#, #veggie#, #veggie# " .. + "and #veggie#!", + "Here, have a #fruit# salad with #herb#, #herb#, #veggie#, #veggie# " .. + "and #veggie#!", + "Here, have a #fruit# and #veggie# salad with #veggie#, #veggie#, " .. + "#veggie#, and sprinkled with #nut#!", + "Here, have a #veggie# salad with #herb#, #veggie#, #veggie#, " .. + "#veggie#, and sprinkled with #nut#!", + "Here, have a #veggie# salad with #herb#, #fruit#, #fruit#, " .. + "#veggie#, and sprinkled with #nut#!", + "Here, have a #veggie# salad with #veggie#, #veggie#, #veggie#, " .. + "#veggie#, sprinkled with #nut# and #sauce#!", + "Here, have a #meat_alt# salad with #veggie#, #veggie#, #veggie#, " .. + "and #veggie#, sprinkled with #nut#!", + "Here, have a #meat_alt# salad with #herb#, #veggie#, #veggie#, " .. + "and #veggie#!", + "Here, have a #meat_alt# salad with #fruit#, #fruit#, #veggie#, " .. + "and #veggie#!", + "Here, have a #meat_alt# salad with #herb#, #veggie#, #veggie#, " .. + "and #veggie#, drizzled with #sauce#!", + } +} diff --git a/examples/gordon/gordon.config.lua b/examples/gordon/gordon.config.lua index d6642c8..b090673 100644 --- a/examples/gordon/gordon.config.lua +++ b/examples/gordon/gordon.config.lua @@ -33,6 +33,9 @@ function gordon.generate_handlers(handlers, foils_dir) end -- Add aliases + itte_handlers.menu = function (cxt, msg) + irc._h.help(cxt, msg) + end if folia.output("coffee") ~= nil then itte_handlers.cofe = function (cxt, msg) irc.message(cxt, { msg.reply_to }, folia.output("coffee"))