KartikeSingh / tutorial_bot

A discord tutorial bot made with JS
https://www.youtube.com/watch?v=En1rbbrar_Q&list=PLE7Nd_E0DDA837kBCGO4lqBW5ve-x_gk_
23 stars 53 forks source link

Request for a new command #2

Closed ToniOfQ closed 2 years ago

ToniOfQ commented 2 years ago

Can you please add a command for sending random waifu from MyWaifuList (https://mywaifulist.moe/random) with full details? Example: Name - Original Name - Romaji Name - Appears in - Place of Origin - Age - Date of Birth - Height - Weight - Blood Type - Waist - Bust - Hip - Popularity - Like - Trash - Description -

KartikeSingh commented 2 years ago

I can make a video on that but do they have some kind of API for this? Like for fetching these details

ToniOfQ commented 2 years ago

They do have an API, but it's paid

KartikeSingh commented 2 years ago

I see, then I will make a web scraping video, to do it for free :D

ToniOfQ commented 2 years ago

ok, thanks

KartikeSingh commented 2 years ago

no worrries, thanks a lot for the suggestion.

I will start on the video after I am done with the video I am currently working on ( Timeout in slash commands )

UnschooledGamer commented 2 years ago

Close the issue now

KartikeSingh commented 2 years ago

I am thinking to close after actually making a video, else I might forget about this

UnschooledGamer commented 2 years ago

Ok

KartikeSingh commented 2 years ago

looks like they are using protection, so that we can't send get requests to their pages via axios and similar things, I will try adding human like headers and some more stuff

NotSoMik commented 2 years ago

I got a new idea about the pokemon list command, if the pokemons exceed 1024 characters the bot will have to add buttons to the message, if you can also show the pokemon icons next to their names it would be great

ToniOfQ commented 2 years ago

looks like they are using protection, so that we can't send get requests to their pages via axios and similar things, I will try adding human like headers and some more stuff

I also had that issue. But when i try to fetch the site from RunKit, it worked.

const axios = require("axios")
const a = async () => {
await axios.get("https://mywaifulist.moe/waifu/kirisaki-chitoge").then((res) => {
return console.log(res)
}).catch((err) => {
return console.log(err)
})
}
a()

I didn't run prettier xD

KartikeSingh commented 2 years ago

@ToniOfQ I think when we send request from a different ip or maybe by adding some extra headers it might work. I will try to add some dummy headers for testing soon.

NotSoMik commented 2 years ago

I got a new idea about the pokemon list command, if the pokemons exceed 1024 characters the bot will have to add buttons to the message, if you can also show the pokemon icons next to their names it would be great

So can you try to add this? @KartikeSingh

ToniOfQ commented 2 years ago

Ok thanks. Btw i've started to learn js (my first programming language) a week ago.

KartikeSingh commented 2 years ago

Ok thanks. Btw i've started to learn js (my first programming language) a week ago.

wow that's cool, Well I do have a series on JavaScript but I will suggest you to just watch the first episode well some learning material:

Also a suggestion, when you learn something try to do different things with that code instead of moving on to the next thing. example let's say you learned how to use for loop to print numbers, then try to print Square of numbers and like different stuff, if you do that you won't forget the syntax and stuff.

Also you can join my discord, it is a bit easier to chat there :D

ToniOfQ commented 2 years ago

Ok thanks. Btw i've started to learn js (my first programming language) a week ago.

wow that's cool, Well I do have a series on JavaScript but I will suggest you to just watch the first episode well some learning material:

Also a suggestion, when you learn something try to do different things with that code instead of moving on to the next thing. example let's say you learned how to use for loop to print numbers, then try to print Square of numbers and like different stuff, if you do that you won't forget the syntax and stuff.

Also you can join my discord, it is a bit easier to chat there :D

thanks

KartikeSingh commented 2 years ago

I got a new idea about the pokemon list command, if the pokemons exceed 1024 characters the bot will have to add buttons to the message, if you can also show the pokemon icons next to their names it would be great

@rufy545 there you go https://www.youtube.com/watch?v=uGIl0eETaWU

ToniOfQ commented 2 years ago

Is it done @KartikeSingh?

KartikeSingh commented 2 years ago

@ToniOfQ you mean the waifu command? well we can use https://www.npmjs.com/package/puppeteer for this but it will eat lot of ram

ToniOfQ commented 2 years ago

Yes, but are you making it?

KartikeSingh commented 2 years ago

sure, I will!

ToniOfQ commented 2 years ago

thank you bro

KartikeSingh commented 2 years ago

no worries, thanks you for your patience