I'm making Discord radio bot (In JavaScript) that streams online radios.I want to add now-playing command, but Idk how to recognize that song or where I can find metadata from that radio station. I want to add more than 10000 radio stations, but firstly I have to fix this...
Thx for every answer! (Also... Sorry for my english I'm from the Czech republic)
Related
In the image above, you can see the text with in blue color and the copy button.
I want to create the same thing, but don't know how to do it.
Does anyone know how to do it?
I just checked by joining the discord you sent. And the copy icon is just a simple icon with no use.
You can't at the moment make a "copy to clipboard" action using any sort of text inside an embed. (It was already suggested a while ago here)
Maybe Discord will add this feature someday.
If you just need to copy the exact same thing, they are doing something like:
[click me](https://google.com) 📋
Discord has not added this functionality yet. The icon there is likely just a small image.. However, you can use an external library called pyperclip. Then, run the following code with an interaction.(interactions are discord 2.0 stuff but are pretty stable in my opinion)
import pyperclip pyperclip.copy('The text to be copied to the clipboard.')
I know this sounds like a big ask, but I'm assuming someone else has already done this and has a simple answer because it seems like an obvious use case.
Twilio has a sample app available on GitHub for their video service. Unfortunately, I don't know much about react, so I was able to make a couple of little changes, but this one has me stumped.
The code is called: Twilio / twilio-video-app-react
https://github.com/twilio/twilio-video-app-react
When you launch the code to enter a video room, you are presented with a form to enter your name and the name of a video room. I need to remove that room name input field and replace it with a hidden variable that was provided in the URL. In other words:
Get a room name variable that was passed as a query parameter on the URL
Make sure the room name is "safe" (alphanumeric) and then put it into a hidden variable in the form
Remove the visible input field (room name) from the form
That would take me two minutes in PHP, and it's probably really easy in react as well, but I can't figure it out. Hope someone can point me in the right direction.
I’m writing a simple bot for a discord server, and I’m trying to explore a few different ideas and two of them require some kind of response and sub command based on responses. I want people to be able to poll something without it being done through reacting to a bots post. I’m unsure of how to go about this.
I’ll give one as an example.
Ideally, it could be structured something like this.
[initiate poll command] [poll name]
Then to respond, a user could do something like this:
[poll name] [yes/no]
Or for a pseudo-code example:
!start_poll Lets_do_this
!lets_do_this yes
Then if it meets a certain threshold of yes’s, a sub command would execute.
My idea would be to create a dictionary. Whenever someone starts a poll, you would add two keys to the dictionary: "[name]_yes", and "[name]_no". Each key would have an empty list. I would then use a command such as "!vote [poll] [yes/no]" to simplify the coding, and whenever somebody voted, I would add their discord ID to the corresponding list. It would be a good idea to check if their name is already on a list, however. Then if you wanted, you could take the size of each list to see how many people have voted for each. The dictionary would end up looking something like:
{
'lets_do_this_yes': ['Bob', 'Suzy'],
'lets_do_this_no': ['Dan'],
'lets_do_this_instead_yes': ['Dan','Joe'],
'lets_do_this_instead_no': ['Suzy']
}
Note: I haven't used discord.py, but I have experience with Python and Discord.JS
Hopefully this works for you.
Edit: The result example above would not actually have their Discord name, but rather their Discord ID, as that is unique to them where as their name can be changed.
I am trying to create a spreadsheet for a World of Warcraft community, based on certain posts/events happening where we #tag the involved people. We would then normally go to our excel sheet and enter manually the names of the participants and all the rest of the details.
I have been trying to do it with Zapier, and i managed to fix all my rules/steps, but the moment i #tag anyone, the text sent/parsed is " !185020918530048000> " instead of "Loco-Silvermoon" for example.
Please help, any insight would be most welcome.
Anyone got an idea about that? or any Bot/Platform that would work around that? My thought process took me two solutions. Either get a bot to replicate all the chat happening on that channel to another private channel that only i can see and where tagging is not allowed (no idea if that exists or work). OR, get a Bot with a plaintext option that would just send me the text instead of the tagtext.
I am creating a skill for Echo Show and was able to display text using BodyTemplate1. Now I wanted to highlight each word while Alexa utters those words. Could anyone know how to do this?
Not available yet. You can vote the feature request up though.
This is available now using APL (Alexa Presentation Language). The SpeakText directive will accomplish what you want to do.