lib/slack/smart-bot/commands/general/use_rules.rb in slack-smart-bot-1.4.2 vs lib/slack/smart-bot/commands/general/use_rules.rb in slack-smart-bot-1.4.3
- old
+ new
@@ -6,10 +6,10 @@
# help: `use CHANNEL`
# help: it will use the rules from the specified channel.
# help: you need to be part of that channel to be able to use the rules.
# help:
def use_rules(dest, channel, user, dchannel)
-
+ get_bots_created()
#todo: add pagination for case more than 1000 channels on the workspace
channels = client.web_client.conversations_list(
types: "private_channel,public_channel",
limit: "1000",
exclude_archived: "true",