Is it possible to make a command to search for embeds? - discord.js

Im trying to make a command to search for embeds that i have created ex /search blahblah would it be possible?
I just wanted to see if it is possible

Related

Is there a way to make a search bar on discord.py?

I recently made a discord bot that webscrapes through a specific website and searches for what the user specifies but the problem is that people spell things wrong and it the bot can't find what they're looking for. One way I thought to fix this is to make a sort of search bar, for example it shows results as they type in like any search engine search bar. Is there anyway to do this or are there any other solutions?
You can do this using an autocomplete in a slash command.

How to build a custom chatbot with custom voice?

Basically I wanted to build a chatbot with voice. But I wanted the voice to be custom. I checked over the link:
https://www.sitepoint.com/how-to-build-your-own-ai-assistant-using-api-ai/
https://dialogflow.com/
The above links say how to build a chatbot but it does not tell about the necessary programming required for a custom voice.
Even if a custom voice is not possible when using other API for chatbot, how to create a chatbot API of our own?
To start with, I have a basic requirement like:
If I say hello, the chatbot should respond using voice "hello" but in the voice that I configure. (I would record it previously and store it in a file and it should play that file)
How to configure this "voice" or "sound" portion of it?
if you want to store every response in a file then why do u need a chat bot. Simply use if else condition. If output is hello then points it towards that file name.
Still i dont know what u want to achieve with it.

How to create a django model from an existing specific database table?

Can I use inspectdb, if so how can I use it in pycharm? I am new to django. Thanks
To run a Django command in PyCharm you should create a new configuration.
So, first of all click on Run in the top bar menu. Then click on Edit Configuration.
Now, a new window should be opened which display all your configurations. In the top-right corner you can find a plus (+) symbol, click on it and choose Django server.
In this way, you have created a new Django configuration.
Then, you should compile all information that you needed.
I think that for inspectdb command you should insert the following parameters:
Custom run command -> inspectdb
Additional options -> only if you want, if i remember well you can specify the table name
Environment variables
Python interpreter
At the end click on Apply and Ok
To run the command click on Run and choose the new command.

Need to create the reference of capabilities for mobile testing by selenium

I just started mobile automation using selenium and appium. I need to create a object which directly enter the value in textbox. Currently first it is launching the app then I am able to reach on the perticular textbox . I do not want to launch the app again and again I just want to enter the information in textbox,dropdown etc.. Please help me to write the program...
You can get textbox by id using uiautomatorviewer if it's android or by xpath if it's on webbrowser, then you can use
driver.findElement(By.id("id here as string of textbox")).sendKeys("what you want to send");
at the end you can confirm by clicking accept or something using
driver.findElement(By.id("id of accept button")).click();
keep in mind that if you use id you must use By.id, xpath then By.xpath and so on.

Watson document conversion not working for my downloaded pdf files

i tried following the steps mentioned "https://github.com/watson-developer-cloud/document-conversion-nodejs" and is able to load the app which works well with sample pdf file.
But when i try using my pdf file it throws error "Missing required parameters:
either params.file or params.document_id must be specified"
Also in the above mentioned git hub link the step 7 is not clear, it mentions run node setup.js but i am not able to find out that file.
has anybody faced this kind of issue.Kindly reply.
Thanks for pointing out the confusing step 7 in the document-conversion-nodejs repo. That's not a valid step and I've submitted a pull request to remove it.
You should be able to change the sample files with your own, if this is what you are trying to do. I would need to see some of your code to maybe figure out what is going on with it.
There is an alternative repository [watson-developer-cloud/node-sdk] that you also can use to create your NodeJS application. It also has an example (examples/document_conversion.v1.js) on how to run the service.
Besides entering your service credentials, all you need to do is place the document you want to convert in the "resources" folder and point to it in this line:
fs.createReadStream(__dirname + '/resources/YOUR_DOCUMENT')
The tutorial and the API documentation could also be of help.

Resources