Discord.py clone my voice to other channels - discord

Is there anyway I can create a bot using discord.py that joins my voice channel and share what I'm saying or whatever is playing to other voice channels in my server and other servers as well?

First of all, larger bots like "Groovy" or "Rythm" allow use in multiple channels as they can be run on a completely different shard for each server, meaning it can be used and commands run to function in each and every server.
It seems in your case, it would not be able to do this, as it would be able to join multiple channels but can only have usage in one channel at a time.
I have found only Discord.js has a feature like this, but similar, it records user voice and saves it as an MP3 file.
The Discord. js voice system allows your bot to join voice channels and play audio. The main part is, Discord does not officially support Discord bots receiving audio see here, so there may be some breakages.
Obviously, you aren't using JS so this would not be possible, or at least very difficult to make. But hope this helps in some way.

Related

Smart Life + IFTTT + Google Assistant trigger via Webhooks

Problem
I bought these LED's lights off Amazon that you setup with Smart Life, which has Google/Alexa/IFTTT integration. Which is great but when I go to IFTTT and I try to setup a webhooks to trigger the lights turning on IFTTT says the devices are not compatible and to check with the manufacturer (IFTTT has Smart Life compatibility but apparently not all devices are). I have sent out a request to the manufacturer about compatibility with IFTTT, but in the mean time I'm trying to brain storm of a way to get this to work.
Goal
I have an NFT scanner program running on Python that I would like to have the NFT scanner hit a webhook URL and it trigger changing these Smart Life lights to a certain color. Is there any other way to do this given that it does work with Google Assistant and is setup in my Google Home?
Lights for reference: https://www.amazon.com/gp/product/B07VZM3BJZ
The trick with the non-compatible SmartLife stuff is to create separate Tap-to-Run tasks in SmartLife for turning the equipment ON and OFF. IFTTT can access the Tap-to-Runs even when it cannot access the asset itself. Remember to update the link to SmartLife to include the newest additions.
Name the tasks in a logical manner because you will be getting a lot of them. Something like SL Porch ON works for me.

Discord Auto Respond C#

I was wondering if anyone knew how to, if possible, make a simple bot that just responds to DM's sent to you. For example, if a friend DM's you, a bot responds with something like
"This is an automated response, hang in there and I'll soon respond."
Thanks in advance.
Previously answered in Auto-reply to direct messages
It's against Discord's TOS https://support.discord.com/hc/en-us/articles/115002192352-Automated-user-accounts-self-bots-
Hopefully in the future, they create some small feature that just gives a basic response. Though, it is understandable why they don't want this as it could cause a lot of spam DM's and fake "people" hopping into your DM's.

Discord.py how would I add a command to clear out a certain amount of messages from a channel

I am looking to add a feature to my basic bot that will purge a number of messages in the channel
i.e
!purge 50
Will then delete 50 messages from the current channel.
You can do this really easily. Using purge, you can make this command.
By the way, please look at the docs before asking a question here. It would save everyone time.

Organise files for multiple mini-games for Discord bot

EDIT : (rewrite)
So, I'm doing a mini-games bot for my discord server. I have already done a bot with multiples features and it was organize like that :
- My main was handling my events. I was checking where my event was called and according to the channel, I will run my corresponding file.js.
- I have my main folder, with inside, one folder with my commands, one with my "handler" (like members counting, and other autonomous things), and the last one with my images.
Do you think it's correct, bad, and what can I improve ?
Can you send me your idea or your point on vue on that.
I try to make my code better each time I code, and organization is one of the thing I want to improve.
I hope it's a much more understandable.
Please read the handy DiscordJS Guide that covers this subject and maybe put a little more effort into your research next time: https://discordjs.guide/command-handling/#individual-command-files

Is it possible to restrict Alexa or an AVS device to a custom skill?

Is it possible to restrict and AVS device (a device running Alexa) to a single skill? So if I built an AI skill and have it running on a device, is it possible to keep the experience inside the custom skill so I don't have to keep saying Alexa, open
One trick you can do with AVS is to prepend every single request with a sound clip equivalent to: "ask to ..." It's definitely a hack, but I was able to use it with some success.
See my write-up here: https://www.linkedin.com/pulse/adding-context-alexa-will-blaschko-ma
The relevant parts (in case the link goes away).
Regular voice commands don't carry my extra information about the
user, but I wanted to find a way to tack on metadata to the voice
commands, and so I did just that--glued it right onto the end of the
command and updated my intents to know what the new structure would
be.
...
In addition to facial recognition, voice recognition could help
identify users, but let's not stop there. Any amount of context can be
added to a request based on available local data.
“Find frozen yogurt nearby" could silently become “Alexa open Yelp and
find frozen yogurt near 1st and Pine, Seattle” using some built in
geolocation in the device (phone, in this case).
I also use something similar in my open source Android Alexa library to send prerecorded commands: https://github.com/willblaschko/AlexaAndroid
I think you are looking for AWS Lex which allows you to write Alexa like skills without the rest of Alexa feature set.
http://docs.aws.amazon.com/lex/latest/dg/what-is.html

Resources