Statements are now generated via embed. Gruff & Prawn/Prawn-Table are no longer needed.
This commit is contained in:
@@ -50,12 +50,11 @@ class FrugalityBot
|
||||
module_name = filename.split('_').map(&:capitalize).join
|
||||
|
||||
begin
|
||||
# We find the module inside 'Commands' namespace
|
||||
comm_module = Commands.const_get(module_name)
|
||||
|
||||
# Register the command
|
||||
comm_module.register(@bot, @db)
|
||||
puts "Loaded command: #{module_name}"
|
||||
sleep(1.5)
|
||||
rescue NameError => e
|
||||
puts "Could not load #{filename}: Module 'Commands::#{module_name}' was not found."
|
||||
rescue StandardError => e
|
||||
|
||||
Reference in New Issue
Block a user