Skip to content

Commit

Permalink
Shift the load-path when registering application commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
Droid00000 committed Nov 13, 2024
1 parent 4f9b828 commit ad4442e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/frost/commands/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

# We register our application commands using a seperate script so we don't need to register them every time the bot starts.

$LOAD_PATH.unshift File.join(File.expand_path(__dir__), 'src/frost')

require 'toml-rb'
require 'discordrb'
require 'data/constants'
Expand Down

0 comments on commit ad4442e

Please sign in to comment.