Comments (5)
@JasonKDarby Have you tried using the start macro exposed by the bot namespace?
from discord.clj.
@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.
@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.
That was it, thanks! Again, really appreciating your effort 👍
from discord.clj.
Glad I could help and glad you're enjoying the framework! 👍
from discord.clj.
Related Issues (17)
- Is there a straightforward way to send a message that isn't a reply? HOT 2
- Improve Storage/Management of Extensions/Extension Documentation HOT 4
- logs-from limit not respected HOT 1
- Change the configuration file location HOT 2
- Duplicated DM help message on command trigger HOT 6
- Custom documentation "items" HOT 4
- Disconnection causes program to hang HOT 1
- Attempting to close a DiscordBot fails HOT 1
- Bot getting disconnected and not reconnecting HOT 1
- HTTP 400 randomly
- Create documentation for other types of events
- bot/create-bot throwing NoClassDefFoundError
- Heartbeat loop isn't halted along with the gateway HOT 3
- Client message receive and send go-loops never stop HOT 1
- Improve Docs or move them to a /docs/ folder so users can edit them in push requests HOT 2
- stateful macros from discord.bot do not work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from discord.clj.