Skip to content

Commit

Permalink
released 1.10.1-DEV01
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioRuiz committed Sep 22, 2021
1 parent 5e15a78 commit ed2735d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 30 deletions.
2 changes: 1 addition & 1 deletion slack-smart-bot.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'slack-smart-bot'
s.version = '1.10.0'
s.version = '1.10.1-DEV01'
s.summary = "Create a Slack bot that is smart and so easy to expand, create new bots on demand, run ruby code on chat, create shortcuts..."
s.description = "Create a Slack bot that is smart and so easy to expand, create new bots on demand, run ruby code on chat, create shortcuts...
The main scope of this gem is to be used internally in the company so teams can create team channels with their own bot to help them on their daily work, almost everything is suitable to be automated!!
Expand Down
34 changes: 5 additions & 29 deletions whats_new.txt
@@ -1,36 +1,12 @@
*Version 1.10.0* Released 2021-Sep-17
*Version 1.10.1-DEV01* Released 2021-Sep-22

*For General users*
- When on a private conversation with the SmartBot (DM) and not using any channels rule on the conversation, the general_rules will be available.
- On DM with the SmartBot if you want to use a rule from a specific channel you can use also: `#CHANNEL RULE` or `on #CHANNEL RULE`. For example: `#sales get report for India`
- Now when using general commands, the SmartBot will be responding on any channel where is a member, even though is not listening to you. For example: `clear screen`
- Added command `suggest command` that will return the help content for a random command.
- New command `leaderboard` returns useful information about the use of the SmartBot.
- `add COLOR announcement MESSAGE`, `add EMOJI announcement MESSAGE` command stores the message on the announcement list labeled with the color/emoji specified, white by default. Aliases for announcement: statement, declaration, message. Related: `see announcements`, `delete announcement id`
- `hi bot` and `bye bot` can be called from any channel where the SmartBot is a member.
- Added general command `see statuses`, `who is on vacation?`, `who is not on vacation?`
- New general command `see favorite commands`. It will display the favorite commands in that channel.
- Now when running the `ruby` command it can be supplied a code block.
- New general command `share messages /REGEXP/ on #CHANNEL`, `share messages "TEXT" on #CHANNEL`, `see shares', `delete share ID`. It will automatically share new messages published that meet the specified criteria.
-

*For Admin users*
- respond_thread method will send the respond creating a thread if necessary. It can be used also `respond 'msg', :on_thread`
- `respond 'msg', :direct` will send a direct message to the person that is executing the rule.
- You can add general commands that will be responding on any channel where the Smart Bot is a member even though is not 'listening to you'. Add them to '/rules/general_commands.rb
- when using `respond` you can supply two options: unfurl_links and unfurl_media. By default is a boolean: true
- added option 'weekdays' and 'weekends' for `create routine` command, for example: `add silent routine suggestions on weekdays at 09:00 suggest command`
- Added a new config for the SmartBot to log all RTM communication, admits `true` or `false`, by default `false`: `logrtm`
- Use the command `send message to` and `react to` to impersonate the SmartBot. Only accessible for Master Admins on a DM with the SmartBot.
- New command to see the result of the last run of a routine: `see result routine NAME`
- Now it is possible to create *bgroutine* then the results of the routine run won't be published.
- To display a general message after every command use: `set general message MESSAGE`. Use `set general message off` to stop displaying it.
- When adding a general message is possible to use interpolation
- If you are a master admin and you are on master channel then you can call `publish announcements` that will publish the announcements on all channels. The messages stored on a DM won't be published. This is very convenient to be called from a *Routine* for example every weekday at 09:00.
- Now it is possible to send blocks `respond blocks: my_blocks`. More info about blocks: https://api.slack.com/block-kit
- When using bgroutines if we want to avoid a file to be sent:
send_file(dest, 'description', "file_path", 'desc', 'text/plain', "text") unless Thread.current[:routine_type] == 'bgroutine'
- SmartBot will notify about SmartBot status changes if defined the status_channel in config file and the channel exists. By default: smartbot-status
- When calling `respond` it can be supplied the argument `return_message: true` to get access to the posted message. `msg = respond('my message', return_message: true)` (<https://github.com/MarioRuiz/slack-smart-bot/issues/31|#31>)
- New command `delete message URL` will delete the SmartBot message supplied. Only for Master Admins (<https://github.com/MarioRuiz/slack-smart-bot/issues/32|#32>).

------------------------------

*Previous*: <https://github.com/MarioRuiz/slack-smart-bot/blob/dd23939f93ee95aca3c04d33cd1ce197d6efbd37/whats_new.txt|1.9.0>
*Previous*: <https://github.com/MarioRuiz/slack-smart-bot/blob/dd23939f93ee95aca3c04d33cd1ce197d6efbd37/whats_new.txt|1.10.0>

0 comments on commit ed2735d

Please sign in to comment.