Giter Site home page Giter Site logo

Comments (5)

gizmo385 avatar gizmo385 commented on July 16, 2024

@JasonKDarby Have you tried using the start macro exposed by the bot namespace?

from discord.clj.

JasonKDarby avatar JasonKDarby commented on July 16, 2024

@gizmo385 I did but I re-implemented it so that start could be asynchronous and would return the bot. I want to be able to write tests and run it in the REPL so I can't have start be blocking and I need a way to shut it down.

from discord.clj.

gizmo385 avatar gizmo385 commented on July 16, 2024

@JasonKDarby In the start function, you're loading the the clojure in your configured extensions directories. The defextension and defcommand macros modify a global atom, which contains all loaded commands and extensions. Reloading those files without resetting that atom might be causing those extensions and commands to get loaded multiple times.

Can you try moving the load call outside of your start function?

from discord.clj.

JasonKDarby avatar JasonKDarby commented on July 16, 2024

That was it, thanks! Again, really appreciating your effort 👍

from discord.clj.

gizmo385 avatar gizmo385 commented on July 16, 2024

Glad I could help and glad you're enjoying the framework! 👍

from discord.clj.

Related Issues (17)

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.