Git Product home page Git Product logo

Comments (10)

Kraigie avatar Kraigie commented on August 27, 2024

Which example did you try that didn't work?
There's an example in the README,one here, and another here

from nostrum.

Kraigie avatar Kraigie commented on August 27, 2024

If you're using https://github.com/dysnomian/hedwig_discord, it looks to be pretty out of date.

from nostrum.

fire avatar fire commented on August 27, 2024

The advanced example link in the hex docs is broken.

from nostrum.

skippi avatar skippi commented on August 27, 2024

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.

fire avatar fire commented on August 27, 2024

The problem I'm having is not sending messages, but getting the event that a message has been sent and its contents :/

from nostrum.

Kraigie avatar Kraigie commented on August 27, 2024

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.

fire avatar fire commented on August 27, 2024

I'm currently using https://github.com/fire/hedwig_discord. It should be recent.

from nostrum.

Kraigie avatar Kraigie commented on August 27, 2024

I took a look at the code, you're not defining any event handlers here.

from nostrum.

fire avatar fire commented on August 27, 2024

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.

Kraigie avatar Kraigie commented on August 27, 2024

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)

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.