#!/usr/bin/perl -w
# slirc.pl: local Slack IRC gateway
# Copyright (C) 2017-2019 Daniel Beer <dlbeer@gmail.com>
+# Amendments 2021 by Ralph Ronnquist <ralph.ronnquist@gmail.com>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
#
# Updated 2019-05-08 based on changes from Neia Finch to improve
# support for bots.
+#
+# Updated 2021-08-30 for Slack API changes.
use strict;
use warnings;
use Digest::SHA qw(sha256);
use JSON;
-my $VERSION = "20190225";
+my $VERSION = "20210830";
my $start_time = time();
my %config;
},
"JOIN" => sub {
my ($c, $name) = @_;
+ print "JOIN $name\n";
return unless $c->{Ready};
return unless defined($name);