lib/twitch/bot/memory/hash.rb in twitch-bot-3.1.0 vs lib/twitch/bot/memory/hash.rb in twitch-bot-3.2.0

- old
+ new

@@ -2,12 +2,14 @@ module Twitch module Bot # Manage a key/value store for our bot module Memory + # Implement an ephemeral memory using a Hash class Hash - def initialize + def initialize(client:) + @client = client @kvstore = {} end def store(key, value) kvstore[key] = value @@ -17,10 +19,10 @@ kvstore[key] end private - attr_reader :kvstore + attr_reader :client, :kvstore end end end end