Class: BaseClient
- Inherits:
-
Discordrb::Bot
- Object
- Discordrb::Bot
- BaseClient
- Defined in:
- lib/advanced_ruby_command_handler/base.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize ⇒ BaseClient
constructor
A new instance of BaseClient.
Constructor Details
#initialize ⇒ BaseClient
Returns a new instance of BaseClient.
23 24 25 26 27 28 |
# File 'lib/advanced_ruby_command_handler/base.rb', line 23 def initialize %w[BOT_TOKEN BOT_BASE_PREFIX BOT_OWNER].each do |environment_variable| raise Errors::MissingEnvironmentVariable.new(environment_variable, "Environment variable '#{environment_variable}' missing in your .env file") unless ENV[environment_variable] end super(:token => ENV["BOT_TOKEN"], :ignore_bots => true) end |