discord.js Commando custom help command - discord

Is there any possible way to make the discord commando send a message in chat instead of dm's when doing the !help command for example.
I want to keep it with commando framework since it's easy to make commands with it and I like how you can do !help "command" and get details about that one command, but what I don't like is that it sends it all in to your dm's, and I want to have it in my discord server and some people have their dm's off too which is another problem. Is there any way to make it so that it sends in the normal chat instead?

Try to disable built in help command follow the docs and build your own help commands
In case you need help commands source of commando is here
bot.registry
.registerDefaultTypes()
.registerDefaultGroups()
.registerDefaultCommands({
help: true,
prefix: false,
eval: false,
ping: true,
commandState: false,
unknownCommand: false
});

Obviously you can specify the channel to send the command in (DM is a channel too). The fact that you ask this question implies you have just started learning coding / using discord.js.
Stack Overflow is not your personal Google / won't write code for you, come back once you have actual questions (read this to learn how to make good questions related to this site).
Enjoy your coding!

Related

Cannot use commands and events together in discord bot

Source, (Forgive my possible spaghetti code, I am not that good) I am trying to add commands on this old code that I made a while back and the commands through events work just fine but the actual proper commands do not work.
Please could I get some tips or help?
Here is the source https://repl.it/#DontSniffSugar/DiscordBot#main.py
The issue in your code is that you didn't process the commands. When overwriting the default on_message event you also have to process them.
#client.event
async def on_message(message):
# ...
await client.process_commands(message)
Also a small note for the future, don't post links to your code, the code should be in the question itself. Also you should enable some intents, if you don't what that is and how to enable them, take a look at the introduction
Reference:
Bot.process_commands

Intercept voice commands on Google Assistant or Alexa

I'm planning on doing an experiment, where we will setup a Google Assistant or Alexa device and see how people would interact with voice assistants in a certain environment. It's basically a Wizard of Oz experiment (https://en.wikipedia.org/wiki/Wizard_of_Oz_experiment). Is it possible to intercept the voice commands before they get passed to the Assistant or Alexa? This could help me decide/manage if I want to handle the user input or let Google/Alexa handle it.
Will you be using a purchased "original" device or will you use, e.g. an Raspberry PI and build it yourself?
For the former this won't be possible out of the bow. However, I recently stumbled upon an article. It describes a new device which would achieve something that might help you: It allows you to "reprogram" the activation word for Alexa and Google Assistant. The article mentions that the device's hardware is a Raspberry PI. So, I guess you could build something similar yourself. That was also the first idea that came into my mind.
I would imagine something like this:
On your raspberry you have a script (I guess written in python would be easiest) that listens for the wake-word, e.g. "Alexa" and also records the following voice. However, you have Alexa itself not running for now, so it doesn't get triggered. Your script also includes a logic for when to pass the command on to Alexa or what to do with it instead. When it decides that the command is to be passed on, the script starts Alexa and replays the recording. Thus, triggering it the same way the users would have triggered it, in the first place.
Another idea would be to use two microphones. One for your script and one for Alexa. Your script having the ability to mute/unmute those.
Pleas take into account that those are just spontaneous ideas. It's completely possible that I've missed something and this wouldn't work. But until somebody who has done this before comes up, I'd give it a try!

windows automation and voice control using wake word

I want to use a "wake word" with my windows 10 computer, instead of a hotkey, to run a custom windows automation command.
How can I setup windows to use a "wake word" and then run a custom command?
(Also how can I easily make a windows automation script to launch a program, or find the launched program, and send some keyboard keys and maybe mouse clicks?)
welcome! so it sounds like you want to do 3 things, so it should be 3 questions. If you edit these into 3 separate posts, then you might already find the answers, also. without needing to post. I guess the secret is to break down your complex problem into smaller problems first and try for yourself first. Then share what you tried.
OK, I break it down for you here:
Use voice control on windows (using cortana) with a "wake word" instead of hardware input device
https://www.laptopmag.com/articles/enable-hey-cortana-windows-10
Make a voice command run a custom Command (using cortana)
https://www.windowscentral.com/how-run-custom-commands-using-cortana-windows-10
you want to easily send keyboard and mouse commands by executing one custom command, check out these options as a sample
https://windowsreport.com/automate-pc-tasks/
Have a nice day, and you are not too far off from really getting the true benefits out of this site. Also if you break your questions down correctly, you will get upvotes and good reputation instead of a downvote from the people who check your question to see if its ok for use with this site. If you fix your question the downvote will be fixed by whoever did it, too.

Telnet - Connecting to Website Servers

I don't use Telnet a lot so I will need the answer explained really clearly and simple. I want to connect to a website (gmail) with Telnet. I have looked at this post but I am too new to Telnet to understand it:
Send email from gmail using Telnet
So basically, I want to use gmail in Telnet. I don't know what code I need. I also don't know what to do before I start (I heard something about "enabling port 25"). So please just tell me exactly what code I can use (batch file) or what steps I should directly in CMD. Please post an answer as an answer and tell me if this question is better fit for SuperUser. I have looked at multiple StackOverflow answers to this but they were to confusing or not exactly what I wanted. I also found this link: https://technet.microsoft.com/en-us/library/bb123686(v=exchg.160).aspx
and all was working fine with that method up until "MAIL FROM: sender#server.com" when I did that I got a syntax error. Why is that?

Alexa skill in java not waiting for response

I'm trying the WiseGuy sample app in Java and can get Alexa to say "knock knock" but then the light turns off and that's it, I don't get to say "who's there".
Same issue with my own skill, even though I'm using newAskResponse(). Is there anything else I need to do?
Thanks!
Etienne
Fixed it by using the jar file produced by Maven instead of directly using the source code. Not sure why that makes a difference.
When you face issues like this, don't forget, you can use the skill configuration "Test" tab, to test the skill, to make sure it's not an interpretation problem (which can happen often).
Also, if doing that still gives you a response that you are not expecting you can copy that intent request:
And that past it on your lambda function event Test, there you will be able to see a more detail "debug" and if you are still not sure, make sure you do a few prints to at least pin point where the issue is:)

Resources