class EstraRB::Base
Public Instance Methods
anidare()
click to toggle source
# File lib/estra.rb, line 185 def anidare response = HTTParty.get(BASE_URL + "anigames/dare") if response.code == 200 parsed_json = JSON.parse(response.body) output = parsed_json["text"] return output else puts "It seems our API is not online for a while. Please try again later." end end
anitruth()
click to toggle source
# File lib/estra.rb, line 174 def anitruth response = HTTParty.get(BASE_URL + "anigames/truth") if response.code == 200 parsed_json = JSON.parse(response.body) output = parsed_json["text"] return output else puts "It seems our API is not online for a while. Please try again later." end end
bite()
click to toggle source
# File lib/estra.rb, line 72 def bite response = HTTParty.get(BASE_URL + "sfw/bite") if response.code == 200 parsed_json = JSON.parse(response.body) output = parsed_json["link"] return output else puts "It seems our API is not online for a while. Please try again later." end end
dare()
click to toggle source
# File lib/estra.rb, line 207 def dare response = HTTParty.get(BASE_URL + "games/dare") if response.code == 200 parsed_json = JSON.parse(response.body) output = parsed_json["text"] return output else puts "It seems our API is not online for a while. Please try again later." end end
headpat()
click to toggle source
# File lib/estra.rb, line 108 def headpat response = HTTParty.get(BASE_URL + "sfw/headpat") if response.code == 200 parsed_json = JSON.parse(response.body) output = parsed_json["link"] return output else puts "It seems our API is not online for a while. Please try again later." end end
highfive()
click to toggle source
# File lib/estra.rb, line 96 def highfive response = HTTParty.get(BASE_URL + "sfw/highfive") if response.code == 200 parsed_json = JSON.parse(response.body) output = parsed_json["link"] return output else puts "It seems our API is not online for a while. Please try again later." end end
hug()
click to toggle source
# File lib/estra.rb, line 26 def hug response = HTTParty.get(BASE_URL + "sfw/hug") if response.code == 200 parsed_json = JSON.parse(response.body) output = parsed_json["link"] return output else puts "It seems our API is not online for a while. Please try again later." end end
husbando()
click to toggle source
# File lib/estra.rb, line 163 def husbando response = HTTParty.get(BASE_URL + "anigames/husbando") if response.code == 200 parsed_json = JSON.parse(response.body) output = parsed_json["link"] return output else puts "It seems our API is not online for a while. Please try again later." end end
kill()
click to toggle source
# File lib/estra.rb, line 119 def kill response = HTTParty.get(BASE_URL + "nsfw/kill") if response.code == 200 parsed_json = JSON.parse(response.body) output = parsed_json["link"] return output else puts "It seems our API is not online for a while. Please try again later." end end
neko()
click to toggle source
# File lib/estra.rb, line 48 def neko response = HTTParty.get(BASE_URL + "sfw/neko") if response.code == 200 parsed_json = JSON.parse(response.body) output = parsed_json["link"] return output else puts "It seems our API is not online for a while. Please try again later." end end
poke()
click to toggle source
# File lib/estra.rb, line 60 def poke response = HTTParty.get(BASE_URL + "sfw/poke") if response.code == 200 parsed_json = JSON.parse(response.body) output = parsed_json["link"] return output else puts "It seems our API is not online for a while. Please try again later." end end
run()
click to toggle source
# File lib/estra.rb, line 15 def run response = HTTParty.get(BASE_URL + "sfw/run") if response.code == 200 parsed_json = JSON.parse(response.body) output = parsed_json["link"] return output else puts "It seems our API is not online for a while. Please try again later." end end
slap()
click to toggle source
# File lib/estra.rb, line 84 def slap response = HTTParty.get(BASE_URL + "sfw/slap") if response.code == 200 parsed_json = JSON.parse(response.body) output = parsed_json["link"] return output else puts "It seems our API is not online for a while. Please try again later." end end
smile()
click to toggle source
# File lib/estra.rb, line 37 def smile response = HTTParty.get(BASE_URL + "sfw/smile") if response.code == 200 parsed_json = JSON.parse(response.body) output = parsed_json["link"] return output else puts "It seems our API is not online for a while. Please try again later." end end
truth()
click to toggle source
# File lib/estra.rb, line 196 def truth response = HTTParty.get(BASE_URL + "games/truth") if response.code == 200 parsed_json = JSON.parse(response.body) output = parsed_json["text"] return output else puts "It seems our API is not online for a while. Please try again later." end end
updatereminder()
click to toggle source
# File lib/estra.rb, line 9 def updatereminder if Current_Ver != Version print("EstraRB Reminder: It seems EstraRB has a new version, please update this package to version #{Version}") end end
waifu()
click to toggle source
# File lib/estra.rb, line 152 def waifu response = HTTParty.get(BASE_URL + "anigames/waifu") if response.code == 200 parsed_json = JSON.parse(response.body) output = parsed_json["link"] return output else puts "It seems our API is not online for a while. Please try again later." end end
yaoi()
click to toggle source
# File lib/estra.rb, line 141 def yaoi response = HTTParty.get(BASE_URL + "nsfw/yaoi") if response.code == 200 parsed_json = JSON.parse(response.body) output = parsed_json["link"] return output else puts "It seems our API is not online for a while. Please try again later." end end
yuri()
click to toggle source
# File lib/estra.rb, line 130 def yuri response = HTTParty.get(BASE_URL + "nsfw/yuri") if response.code == 200 parsed_json = JSON.parse(response.body) output = parsed_json["link"] return output else puts "It seems our API is not online for a while. Please try again later." end end