Comments (10)
Which example did you try that didn't work?
There's an example in the README,one here, and another here
from nostrum.
If you're using https://github.com/dysnomian/hedwig_discord, it looks to be pretty out of date.
from nostrum.
The advanced example link in the hex docs is broken.
from nostrum.
After taking a quick look at the hedwig_discord repo, problem is likely in the Nostrum.Api.create_message
calls. We recently did a change to this function to make it more flexible for our users.
For example:
Api.create_message(msg.room, msg.text)
Should become:
Api.create_message(msg.room, content: msg.text)
Read our docs for more information.
from nostrum.
The problem I'm having is not sending messages, but getting the event that a message has been sent and its contents :/
from nostrum.
The hex release for this library is horrifically out of date because a certain dependency wasn't being updated on hex. If you can I'd change your dependency to the git version.
We're currently holding off on a hex release until some reworking is done to the user facing side of things.
from nostrum.
I'm currently using https://github.com/fire/hedwig_discord. It should be recent.
from nostrum.
I took a look at the code, you're not defining any event handlers here.
from nostrum.
Updated to the newer version of the event handlers from https://github.com/fire/hedwig_discord/blob/master/lib/hedwig_discord/connection.ex
A tricky problem is that I need to get the state from Hedwig.Adapters.Discord.
However, the bot responds to !ping as defined in the example.
from nostrum.
Hmm, I took a quick look, but I'm not really familiar with the framework.
If you have any other problems with the lib or think I can help you in some way, feel free to open another issue, or you can come ask around in the discord channel: https://discord.gg/2Bgn8nW
from nostrum.
Related Issues (20)
- Memory optimizations: User struct HOT 1
- Documentation improvement: Message nonce HOT 1
- Documentation improvement: Add "Purpose" section to Nostrum.Shard.Supervisor
- Feature planning: Distributed sharding
- Feature planning: Distributed ratelimiting
- Remove usage of token from environment in Nostrum.Shard.Payload
- Remove usage of token from environment in Nostrum.Api.Base
- Remove Nostrum.Api.get_token
- Remove usage of num_shards setting from Nostrum.Util
- Feature planning: Reducing reliance on globally registered name
- Feature planning: QLC expansion
- Investigate unmatched returns found by Dialyzer
- State documentation uses outdated example for user discriminator query HOT 3
- Documentation Cheat Sheets HOT 1
- Cache Adapters & QLC: Example Postgres Adapter
- Expanding the example bot section HOT 6
- Provide friendlier message for missing consumer startup
- Include installing a consumer as part of the setup instructions
- Feature planning: Behaviours HOT 2
- Update documentation in regards to wrap_qlc
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 nostrum.