GithubHelp home page GithubHelp logo

Comments (14)

zfbx avatar zfbx commented on May 18, 2024

Silly question but did you move the timedmessages.js into /server/addons/ and when you start the bot it says something like

[zdiscord][2022-3-15 13:56:41][INF]: [ADDON] timedmessage.js addon found and loaded

from zdiscord.

ChrisLenga avatar ChrisLenga commented on May 18, 2024

...

Yes. Its loading perfectly, just not functioning.

from zdiscord.

ChrisLenga avatar ChrisLenga commented on May 18, 2024

Just an update -- I've tried several methods of investigation so far and nothing seems to be playing nice. Nothing in the debug side, script is definitely loading, and everything else works but this. Very odd stuff to say the least. Might toy with converting the CommonJS module over to an ES module to see if it throws any errors that is useful.

from zdiscord.

zfbx avatar zfbx commented on May 18, 2024

Did you make any progress on this? I haven't had time to setup another server to test it yet

from zdiscord.

ChrisLenga avatar ChrisLenga commented on May 18, 2024

Did you make any progress on this? I haven't had time to setup another server to test it yet

Not yet, sadly. I did successfully convert it over to ES, but it hasn't done much. I've been running that server for a solid day now, and thus far, nothing useful in debug either. I was expecting maybe somewhere I might get some type of error message along the way due to too many failed attempts.

Another curious thing that I'm going to look into some is the log function, as that's a relatively identical addon. I know for a fact the voice channel addon works flawlessly. Everything else is within spec and its not being rate limited, as I suspected that might be the route.

I plan on diving into that some more here shortly.

from zdiscord.

zfbx avatar zfbx commented on May 18, 2024

The voice channel plugin is a bit more of a pain with the limit of how often you can update that within the discord api. The channel id you set for the message thing type it in chat wrapped in <#ID> so like if it was 00000 it's be <#00000> it should auto convert to a mention of the channel you want the message to send in if it's correct. I will note however that I think I voided all errors for the addons only cause I didn't want them killing the bot

from zdiscord.

ChrisLenga avatar ChrisLenga commented on May 18, 2024

Yeah, I've found as I tinker with the voice channel bit, that it seems like a potential rate limit nightmare.

Good to know about the errors. I'll investigate that further and see.

from zdiscord.

zfbx avatar zfbx commented on May 18, 2024

} catch {
// Just incase something unforseen happens
}

yeah this could be important lmao just through a quick log on it

} catch(e) { 
    console.log(e)
}

from zdiscord.

ChrisLenga avatar ChrisLenga commented on May 18, 2024

Haha way ahead of you, as you had me curious. I didn't even think to check that.
image

from zdiscord.

ChrisLenga avatar ChrisLenga commented on May 18, 2024

Removing the color function made it work immediately.

from zdiscord.

ChrisLenga avatar ChrisLenga commented on May 18, 2024

Going to try switching it over to .setColor('#f2449e') rq

from zdiscord.

zfbx avatar zfbx commented on May 18, 2024

Opps.. lmao yeah it's setColor xD

from zdiscord.

ChrisLenga avatar ChrisLenga commented on May 18, 2024

Bingo! Works like a charm now.

from zdiscord.

zfbx avatar zfbx commented on May 18, 2024

af03e96 fixed for future people xD

from zdiscord.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.