diff options
author | kongr45gpen <electrovesta@gmail.com> | 2021-05-30 23:19:38 +0300 |
---|---|---|
committer | kongr45gpen <electrovesta@gmail.com> | 2021-05-30 23:19:38 +0300 |
commit | a4a442d3c1a3a71f9a373dcbe9321fcf14217da9 (patch) | |
tree | d31650736aea83ff6adae4eaca2daeec831353d4 /local | |
parent | 7b2bc1384615ce7956d81620ffc16bf2938849bd (diff) | |
download | supybot_github-a4a442d3c1a3a71f9a373dcbe9321fcf14217da9.tar.gz supybot_github-a4a442d3c1a3a71f9a373dcbe9321fcf14217da9.tar.bz2 supybot_github-a4a442d3c1a3a71f9a373dcbe9321fcf14217da9.zip |
Add simple development script
Diffstat (limited to 'local')
-rw-r--r-- | local/handler/GithubHandler.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/local/handler/GithubHandler.py b/local/handler/GithubHandler.py index 1d77c33..1e133e6 100644 --- a/local/handler/GithubHandler.py +++ b/local/handler/GithubHandler.py @@ -133,6 +133,9 @@ class GithubHandler(http.server.BaseHTTPRequestHandler): s.wfile.write("Invalid secret key\n".encode()) return + GithubHandler.process_data(data, channel) + + def process_data(data, channel=None): brackets = parseBrackets(configValue('brackets')) themeName = configValue('theme') @@ -199,7 +202,7 @@ class GithubHandler(http.server.BaseHTTPRequestHandler): if not world.testing: for msg in msgs: for irc in world.ircs: - irc.queueMsg(ircmsgs.privmsg(channel, msg)) + irc.queueMsg(ircmsgs.privmsg(channel or globals.channel, msg)) def finish(self): try: |