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
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%
git clone
cd
virtualenv league
source league/bin/activate
pip install flask flask-ask zappa awscli requests
- Fill out information for new Alexa skill ...
ngrok http 5000
in new terminalpython cooldown.py
- Type out response under Service Simulator under Amazon Alexa skill
- Press 'Ask champion cooldown'
git clone
cd
virtualenv league
source league/bin/activate
pip install flask flask-ask zappa awscli requests
zappa init
zappa deploy dev
- Change the runtime in zappa_settings.json to python3.6
- Paste deployment URL to Endpoint > Default Region > HTTPS
- Choose
My development endpoint is a sub-domain of a domain that has a wildcard certificate from a certificate authority
- Go to this link and install the skill to your Amazon account
- Go to https://echosim.io/welcome and login.
- Ask Alexa to 'open champion cooldown'.
-
Update LIST_OF_CHAMPIONS.txt under speech_assets/customSlotTypes
-
Update pronunciation.csv to include the new champion name and Alexa picked up name
ex. Nico,Neeko
Neeko,Neeko -
Update LIST_OF_CHAMPIONS on Alexa Dashboard for the skill
-
Run
zappa update
-
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
- Change directory to same file location as cooldown.py
- Run
zappa update
after making changes to code - Monitor queries made to Alexa using
zappa tail --since 1m
Type zappa help
for more information on Zappa
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
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'.