This repository was archived by the owner on Sep 22, 2025. It is now read-only.

Description
Hey evreyone, i'm using this gem for a personal project, nothing too fancy.
I'm stuck trying to get the bot send a message to the general channel when a "broadcast" command is invoked. This is my code snippet:
class Broadcast < SlackRubyBot::Commands::Base
def self.call(client, data, _match)
subs = Subscription.all()
subs.each do |sub|
client.say(channel: "#general", text: "<@#{sub.user_id}>")
end
end
end
But this doesn't seem to work. On the other hand if i simply put the channel id, it works like a charm. Any clues on what I'm doing wrong? Also, what other methods do i have access to with client? I didn't find anything in the readme.