Skip to content

Commit

Permalink
Removing deprecated code
Browse files Browse the repository at this point in the history
removing non slash supported code
  • Loading branch information
Humblemonk committed Jun 19, 2024
1 parent 6bbeba6 commit 942bf69
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/dice_maiden_logic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -537,22 +537,6 @@ def check_bot_info(event)
end
end

def check_prefix(event)
if event.channel.pm? || @launch_option == 'lite'
@prefix = '!roll'
return
end

begin
@server = event.server.id
@row = $db.execute "select prefix from prefixes where server = #{@server}"
@prefix = @row[0].join(', ')
@prefix = '!roll' if @row.empty? == true
rescue StandardError
@prefix = '!roll'
end
end

def input_valid(event)
event_input = event.content
if event_input =~ /\A^(#{@prefix}\s)/i
Expand Down

0 comments on commit 942bf69

Please sign in to comment.