Skip to content

Latest commit

 

History

History
101 lines (75 loc) · 3.65 KB

README.md

File metadata and controls

101 lines (75 loc) · 3.65 KB

League of Legends Champion Cooldown - Alexa Skill

Link to Alexa Skill

This is the code repository for the Amazon Alexa skill named League of Legends Champion Cooldown

champion-cooldown             
├── cooldown.py  
├── LIST_OF_CHAMPIONS.txt           
├── pronunciation.csv             
├── README.md                     
├── speech_assets                   
│   ├── customSlotTypes
│   │   ├── LIST_OF_ABILITIES
│   │   └── LIST_OF_CHAMPIONS.txt
│   ├── IntentSchema.json
│   └── sample_utterances.txt
└── templates.yaml

Sample Utterances

Look under sample utterances for examples.

what is Tryndamere Q cooldown at rank 5 with 10% cooldown
what is Tryndamere E cooldown
what is Tryndamere R cooldown at 20%

Instructions

Running on local

  1. git clone
  2. cd
  3. virtualenv league
  4. source league/bin/activate
  5. pip install flask flask-ask zappa awscli requests
  6. Fill out information for new Alexa skill ...
  7. ngrok http 5000 in new terminal
  8. python cooldown.py
  9. Type out response under Service Simulator under Amazon Alexa skill
  10. Press 'Ask champion cooldown'

Deploy using AWS Lambda

  1. git clone
  2. cd
  3. virtualenv league
  4. source league/bin/activate
  5. pip install flask flask-ask zappa awscli requests
  6. zappa init
  7. zappa deploy dev
  8. Change the runtime in zappa_settings.json to python3.6
  9. Paste deployment URL to Endpoint > Default Region > HTTPS
  10. Choose My development endpoint is a sub-domain of a domain that has a wildcard certificate from a certificate authority

Testing without an Amazon Echo

  1. Go to this link and install the skill to your Amazon account
  2. Go to https://echosim.io/welcome and login.
  3. Ask Alexa to 'open champion cooldown'.

Updating for New Champions

  1. Update LIST_OF_CHAMPIONS.txt under speech_assets/customSlotTypes

  2. Update pronunciation.csv to include the new champion name and Alexa picked up name
    ex. Nico,Neeko
    Neeko,Neeko

  3. Update LIST_OF_CHAMPIONS on Alexa Dashboard for the skill

  4. Run zappa update

  5. Test using zappa tail --since 1m after asking Alexa for the new champion

Note: This is a csv file, don't include the space between comma. Also uppercase the two seperate names

Debugging

  1. Change directory to same file location as cooldown.py
  2. Run zappa update after making changes to code
  3. Monitor queries made to Alexa using zappa tail --since 1m

Type zappa help for more information on Zappa

Troubleshooing

If you encounter this error when installing flask-ask:
ModuleNotFoundError: No module named 'pip.req'

Run the following commands pip install --upgrade "pip<10"
pip install flask-ask
pip install --upgrade pip

Features

Users are able to go through a conversation with Alexa if they don't know how to use the one shot intent.

They can say 'start over' to reprompt Alexa to start a new query.

Repeating the query is simply said by 'repeat'.

If the user wants to go to the previous query, state 'previous'.