Sha256: c3fa884846e6b1685218ab476d3b35412a4c98372773ab1124ff747c7425bc47
Contents?: true
Size: 1.04 KB
Versions: 69
Compression:
Stored size: 1.04 KB
Contents
# frozen_string_literal: true module Cryptum # Cryptum::Event Namespace module Event # This Modules is used to Get the F* Out (GTFO) when the "G" Key is Pressed module GTFO # Supported Method Parameters:: # Cryptum::Event::GTFO.now( # ) public_class_method def self.now(opts = {}) terminal_win = opts[:terminal_win] option_choice = opts[:option_choice] env = opts[:env] event_history = opts[:event_history] bot_conf = opts[:bot_conf] terminal_win.key_press_event.key_g = false Cryptum::API::Orders.gtfo( option_choice: option_choice, env: env, event_history: event_history, bot_conf: bot_conf ) rescue Interrupt, StandardError => e Cryptum::Log.append(level: :error, msg: e, which_self: self, event_history: event_history) end # Display Usage for this Module public_class_method def self.help puts "USAGE: bot_conf = #{self}.now() " end end end end
Version data entries
69 entries across 69 versions & 1 rubygems