lib/slack/smart-bot/commands/general/add_team.rb in slack-smart-bot-1.12.9 vs lib/slack/smart-bot/commands/general/add_team.rb in slack-smart-bot-1.13.0
- old
+ new
@@ -68,9 +68,10 @@
team[:status] = :added
team[:user] = user.name
team[:creator] = user.name
team[:date] = Time.now.strftime("%Y-%m-%dT%H:%M:%S.000Z")[0..18]
new_team = {}
+ team[:name] = name
new_team[name.to_sym] = team
update_teams(new_team)
respond "The *#{name}* team has been added."
see_teams(user, name, add_stats: false)
end