Module: Cryptum::Event::GTFO
- Defined in:
- lib/cryptum/event/gtfo.rb
Overview
This Modules is used to Get the F* Out (GTFO) when the āGā Key is Pressed
Class Method Summary collapse
-
.help ⇒ Object
Display Usage for this Module.
-
.now(opts = {}) ⇒ Object
- Supported Method Parameters
-
Cryptum::Event::GTFO.now( ).
Class Method Details
.help ⇒ Object
Display Usage for this Module
30 31 32 33 34 |
# File 'lib/cryptum/event/gtfo.rb', line 30 public_class_method def self.help puts "USAGE: bot_conf = #{self}.now() " end |
.now(opts = {}) ⇒ Object
- Supported Method Parameters
-
Cryptum::Event::GTFO.now( )
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/cryptum/event/gtfo.rb', line 11 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 |