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 "sassc"
require_relative "database.rb" require_relative "database.rb"
require_relative "func.rb"
def get_random_subtitle
subtitles = File.readlines "misc/subtitles.txt"
subtitles.sample.chomp
end
get "/" do get "/" do
slim :index slim :index

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