master
E. Almqvist 3 years ago
parent cbf9042fa8
commit 015820efad
  1. 7
      src/app.rb
  2. 4
      src/func.rb

@ -7,12 +7,7 @@ require "sqlite3"
require "sassc"
require_relative "database.rb"
def get_random_subtitle
subtitles = File.readlines "misc/subtitles.txt"
subtitles.sample.chomp
end
require_relative "func.rb"
get "/" do
slim :index

@ -0,0 +1,4 @@
def get_random_subtitle
subtitles = File.readlines "misc/subtitles.txt"
subtitles.sample.chomp
end
Loading…
Cancel
Save