rearchitect event transmission so that the parents/children of each module are explicitly specified and we establish the linkages between them
This commit is contained in:
@@ -7,10 +7,12 @@ token = "your token here"
|
||||
[stdin]
|
||||
|
||||
[echo]
|
||||
parents = ["stdin", "discord"]
|
||||
prefix = "?echo"
|
||||
|
||||
[no]
|
||||
type = "random"
|
||||
parents = ["stdin", "discord"]
|
||||
prefix = "?no"
|
||||
responses = [
|
||||
"https://www.youtube.com/watch?v=WWaLxFIVX1s", # Darth Vader
|
||||
@@ -36,6 +38,7 @@ responses = [
|
||||
|
||||
[yes]
|
||||
type = "random"
|
||||
parents = ["stdin", "discord"]
|
||||
prefix = "?yes"
|
||||
responses = [
|
||||
"https://www.youtube.com/watch?v=JPVaDaynNKM", # Captain Falcon
|
||||
@@ -58,14 +61,18 @@ responses = [
|
||||
|
||||
[chk]
|
||||
type = "random"
|
||||
parents = ["stdin", "discord"]
|
||||
prefix = "?chk"
|
||||
responses = ["ack"]
|
||||
|
||||
[pvn]
|
||||
parents = ["stdin", "discord"]
|
||||
|
||||
[echobox]
|
||||
parents = ["stdin", "discord"]
|
||||
|
||||
[lua]
|
||||
parents = ["stdin", "discord"]
|
||||
code = """
|
||||
function on_message (message, reply)
|
||||
reply("Lua says: " .. message)
|
||||
@@ -75,6 +82,7 @@ foo = "bar"
|
||||
|
||||
[lua2]
|
||||
type = "lua"
|
||||
parents = ["stdin", "discord"]
|
||||
filters = [{ username = "David" }]
|
||||
code = """
|
||||
function on_message (message, reply)
|
||||
@@ -83,6 +91,8 @@ end
|
||||
"""
|
||||
|
||||
[autolink]
|
||||
parents = ["stdin", "discord"]
|
||||
|
||||
[logger]
|
||||
parents = ["stdin", "discord"]
|
||||
filters = [{ username = "Dave" }, { username = "Kevin" }]
|
||||
|
Reference in New Issue
Block a user