DrMeepso's Forum Posts

  • You do not have permission to view this post

  • AnD4D add me on discord and we can continue on there

    DrMeepso#0000

    DO NOT ADD ME UNLESS YOUR AnD4D, YOU WILL BE BLOCKED

  • You did all this code yourself, DrMeepso ? Wow! How on Earth did you figure this out?

    Looking at it now, I can't make head nor tails of half of it, and it also appears to be different to the video example.

    This looks like it listens to a Discord, while your video version posts to a Discord.

    Also, "SendDiscordMSGToMainChannel" never appears to be called.

    I'd love to work on this more with you if I can twist your arm? :D

    EDIT - Yeah, I seem to be hitting the CORS issue, too... The Discord API references and instructions are pretty terrible. Doesn't seem to make sense that I can connect to Twitch with relative ease, but Discord is a confusing mess.

    Yeah the post is quite old and the video was filmed pretty much the same day i got it to work so it has been though some changes.

    As for discord.js it has decent documentation here docs

    when i first started trying to get it to work i did have to change the endpoint. so you may have to look into that.

    but that pretty much all i can help with because i made it so long ago.

  • Thanks, DrMeepso

    That's disappointing to hear. I've been trying to figure this out for a while. Maher to connect to Twitch API without too much issue, but Discord just looks complicated.

    Do you have any other tricks up your sleeves?

    I'd hate to get this close and walk away.

    It seems like the webbuild may have gotten a update

    github.com/discordjs/discord.js/tree/webpack

    but that's the best I can do

  • the Date object works on timespamps

    to get a date 3 days in the future you have to:

    FutureTimestamp = Date.ChangeDate(Date.Now,Date.GetDate(Date.Now)+3)

    THANK YOU SO MUCH!!!!!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • i need to set the date object forward and if i just + 3 my program wont run for 3 days before a new month. so is there a way to just shift the clock forward 3 days in the date object

    -Meepso

  • You can get the project files

    Here

  • DrMeepso This is awesome. No idea why nobody else commented on this. Do you have time to share a little bit on how you did this? I'm currently researching the same thing.

    Discord.js has deprecated the web build of there project meaning that thanks to cors this dose not work any longer. i will share the project files if i can dig them up

    I have also integrated a twitch bot with construct 3 and i think that one still works

    -DrMeepso

  • you can't just disable CORS.

    API request can be sent if your game is uploaded to a hosting that does not block CORS requests.

    What are you trying to do, what API do you want to use?

    im trying to send data request too my schools API and when i call it with a fetch in JS when i disable cors it works but other wise i haven't found a way to make it work with cors

  • i need to post to a API with cors diabled how do i do this

  • for what purpose ?

    Loading a sprite atlas form a URL then running it on a sprite

  • is it possible to play animations form a sprite atlas at runtime

    if this is possible could someone point me in the right direction

    Thanks!

    - Meepso

  • i have multiple sprites that i want to all different parallax values how should i go about this?

  • I want to load music form a url how would i go about this

  • is it possible to import a animation form a URL