Skip to content
← Back to Community
Voice Assistant Template
Profile icon
AdCharity

Simple Voice Assistant

Includes:

  • ok design with animations
  • easy adding commands
  • credit.js (add github/twitter easily to any page)
  • piss people off and block common source code key binds
  • current commands: help, background, hello, weather command

To make this voice assistant yours, all you have to do is edit commands.js. It's kind of self explanatory, but the requirements for each command include:

'command name': { params: 0, // not required if no parameters are needed description:'only necessary for the "help" command, but help yourself out and describe stuff anyway', run: (params) => { //this will execute when command is said } }

Usage

For now, commands must be said in [command][parameters for command] format. For example, "background red" changes the background of the voice assistant page to red.

Extra notes

Due to the nature of how I parse commands, only one word commands are allowed (but you can chain commands). You can, however, say "What's the weather in [region]" because I look for the keyword 'weather' and two parameters.

Voters
Profile icon
Kookiez
Profile icon
elipie
Profile icon
TheOceanFace
Profile icon
Leroy01010
Profile icon
Roar123
Profile icon
17lwinn
Profile icon
AmazingMech2418
Profile icon
Ripper787
Profile icon
CodingCactus
Profile icon
AgastyaSandhuja
Comments
hotnewtop
Profile icon
ChezCoder

The markings of a true pro-grammer hahahaha...............

no one laughed :(
Profile icon
CodingCactus

@ChezCoder I laughed at the fact that no one laughed

Profile icon
ChezCoder
Profile icon
MohitPulipati

deez nuts

Profile icon
Leroy01010

lalalalalalalalalalalalalallalallalalalal

Profile icon
glowlight

you have so much talent

Profile icon
AdCharity

@glowlight thanks :) I'm not that good though.

Profile icon
AmazingMech2418

Great job! You also inspired me to make a template like this, just using Adapt, allowing multi-word commands and natural language commands.

Profile icon
AdCharity
Profile icon
AmazingMech2418

@AdCharity What? This is still really great. The only downside to this one really is that it doesn't include a natural language processor. When you said it could only use single-word commands in the description, I kind of just had to make my own using Adapt.

Profile icon
AmazingMech2418

@AdCharity What do you mean I copied your meta tags? I just used the meta tags in HTML repls by default. If you realized this after posting, that would explain why you deleted the comment. Though, why did you send the ":|"?

Profile icon
AdCharity

@AmazingMech2418
I understand that there are standard meta tags in html5 repls. I meant to say that you copied my idea (yes lots of credit was given to me). I sent the :l because it comes across as rather strange that you would post a similar template 4 days after mine to compete.

Profile icon
AmazingMech2418

@AdCharity I actually just saw your template today and, honestly, I don't really care if my template beats yours. I just kind of wanted to show how to add a natural language processor to a virtual assistant. Also, with the template jam, while of course, it would be great to win, I'm more of doing it to get templates on the template page of Repl.it which I think would be really cool. I honestly wish we had more time so I could submit PowerWeb.js, but I know I don't have the time to finish it before next Friday and that's why I asked in the main template jam post if there was a way to submit something to be a template even if it is not submitted in the challenge.

Profile icon
AdCharity
Profile icon
AmazingMech2418

@AdCharity What's that for now?

Profile icon
AdCharity

@AmazingMech2418 lmao good luck with your other templates.
:l is also my way of expressing "no response"

Profile icon
AmazingMech2418

@AdCharity Oh. Okay. Thank you!

Profile icon
AgastyaSandhuja

This is really cool and creative!

Profile icon
[deleted]

This is pretty cool!

Profile icon
AdCharity

@FunnyLamma thanks :)