module GameStore
Public Instance Methods
Source
# File lib/game_store.rb, line 17 def clear(plugin:, network:, channel:, key: "game", store: RabbotDb) store.set_plugin_json(plugin: plugin, key: key, network: network, channel: channel, value: nil) end
Source
# File lib/game_store.rb, line 29 def list_by_key_prefix(plugin:, network:, channel:, key_prefix:, store: RabbotDb) store.list_plugin_json_by_key_prefix( plugin: plugin, key_prefix: key_prefix, network: network, channel: channel ) end
Source
# File lib/game_store.rb, line 9 def load(plugin:, network:, channel:, key: "game", store: RabbotDb) store.get_plugin_json(plugin: plugin, key: key, network: network, channel: channel, default: nil) end
Source
# File lib/game_store.rb, line 21 def norm_nick(nick) Normalize.nick(nick) end
Source
# File lib/game_store.rb, line 25 def same_nick?(left, right) norm_nick(left).casecmp?(norm_nick(right)) end
Source
# File lib/game_store.rb, line 13 def save(plugin:, network:, channel:, game:, key: "game", store: RabbotDb) store.set_plugin_json(plugin: plugin, key: key, network: network, channel: channel, value: game) end