add a rudimentary irc module

This commit is contained in:
Adrian Malacoda
2018-02-25 04:47:04 -06:00
parent 906b5709d0
commit c6dc3f15b8
6 changed files with 176 additions and 11 deletions

View File

@@ -1,18 +1,22 @@
[general]
foo = "bar"
[irc]
server = "irc.rizon.net"
channels = ["#eightbar"]
[discord]
token = "your token here"
[stdin]
[echo]
parents = ["stdin", "discord"]
parents = ["stdin", "discord", "irc"]
prefix = "?echo"
[no]
type = "random"
parents = ["stdin", "discord"]
parents = ["stdin", "discord", "irc"]
prefix = "?no"
responses = [
"https://www.youtube.com/watch?v=WWaLxFIVX1s", # Darth Vader
@@ -38,7 +42,7 @@ responses = [
[yes]
type = "random"
parents = ["stdin", "discord"]
parents = ["stdin", "discord", "irc"]
prefix = "?yes"
responses = [
"https://www.youtube.com/watch?v=JPVaDaynNKM", # Captain Falcon
@@ -61,15 +65,15 @@ responses = [
[chk]
type = "random"
parents = ["stdin", "discord"]
parents = ["stdin", "discord", "irc"]
prefix = "?chk"
responses = ["ack"]
[pvn]
parents = ["stdin", "discord"]
parents = ["stdin", "discord", "irc"]
[echobox]
parents = ["stdin", "discord"]
parents = ["stdin", "discord", "irc"]
[lua]
parents = ["stdin", "discord"]
@@ -91,20 +95,20 @@ end
"""
[autolink]
parents = ["stdin", "discord"]
parents = ["stdin", "discord", "irc"]
[logger]
parents = ["stdin", "discord"]
filters = [{ username = "Dave" }, { username = "Kevin" }]
parents = ["stdin", "discord", "irc"]
#filters = [{ username = "Dave" }, { username = "Kevin" }]
[icced]
type = "random"
parents = ["stdin", "discord"]
parents = ["stdin", "discord", "irc"]
pattern = "\\bicc?ed?\\b"
responses = ["Did some carbon-based lifeform just say **I C E**?"]
[trout]
type = "random"
parents = ["stdin", "discord"]
parents = ["stdin", "discord", "irc"]
pattern = "^?slap (.*)"
responses = ["/me slaps $1 around a bit with a large trout", "/me slaps $1 around a bit with a large brick"]