Commit 1d3bb8e5 authored by Owez's avatar Owez 🏸

Formatted with black

parent 0e48114c
......@@ -10,6 +10,7 @@ jilkpw_wrapper = JilkpwWrapper()
jilk_view_question = "would you like to hear a random Jilk.pw server"
def _get_random_listing():
listings = jilkpw_wrapper.all()
random_listing = listings[random.choice(list(listings.keys()))]
......@@ -35,7 +36,10 @@ def launch_question():
@ask.intent("AMAZON.YesIntent")
def random_jilk():
return question(_get_random_listing()).reprompt(f"Sorry, I don't understand, {jilk_view_question} again?")
return question(_get_random_listing()).reprompt(
f"Sorry, I don't understand, {jilk_view_question} again?"
)
if __name__ == "__main__":
app.run(host="0.0.0.0", port=8084)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment