Code Monkey home page Code Monkey logo

Comments (10)

maddinat0r avatar maddinat0r commented on July 20, 2024

You should be able to drag-and-drop the discord-connector.log file here into the text box (you'll maybe have to zip it first though).
There are still a lot of things to work on this plugin (that's why it's still in beta). This includes the whole networking architecture, which includes correct reconnect behavior and handling on the Websocket side. You'll have to wait until I find a proper architecture, since the current one is very hard to work with. After that I should be able to implement proper error handling, reconnecting and generally a guarantee for a stable connection.

from samp-discord-connector.

MichaelBelgium avatar MichaelBelgium commented on July 20, 2024

discord-connector.zip

Alright, here it is, zipped.
And yeah I understand you, I can wait - in the meanwhile I kinda report issues that I encounter 😛

from samp-discord-connector.

maddinat0r avatar maddinat0r commented on July 20, 2024

v0.2 is out now @MichaelBelgium, please try it out.

from samp-discord-connector.

MichaelBelgium avatar MichaelBelgium commented on July 20, 2024

Great @maddinat0r ! I'll let the bot stay online for a while and see if he shows offline again sooner or later (or never). I've been testing the callbacks too, I noticed u changed the DCC_OnChannelMessage callback but whenever it gets called an error occurs with number 19

[24/09/2017 13:21:18] [DEBUG] PawnCallbackManager::Execute(name=DCC_OnChannelMessage,amx=0x98c5db8, cb_idx=2, args_push_addr=12812)
[24/09/2017 13:21:18] [INFO] executing PAWN callback 'DCC_OnChannelMessage'...
[24/09/2017 13:21:18] [ERROR] error while executing PAWN callback 'DCC_OnChannelMessage': 19
[24/09/2017 13:21:23] [DEBUG] WebSocket::OnWsRead
[24/09/2017 13:21:23] [DEBUG] WebSocket::WsRead
[24/09/2017 13:21:30] [DEBUG] WebSocket::OnWsRead
[24/09/2017 13:21:30] [DEBUG] WebSocket::WsRead

Not sure what it means 🤔

from samp-discord-connector.

maddinat0r avatar maddinat0r commented on July 20, 2024

Oh, that's a mistake I've made. You can ignore that error. It means that the callback was not found (which is likely the case if you didn't use it in your code).

from samp-discord-connector.

maddinat0r avatar maddinat0r commented on July 20, 2024

On second thought, you probably DID implement the callback, since you wouldn't get a valid callback index.
Try checking your script for any mistakes. Do you use the OnChannelMessage callback in multiple scripts?

from samp-discord-connector.

MichaelBelgium avatar MichaelBelgium commented on July 20, 2024

Ok, I fixed it, And yes I had it indeed implemented. Had errors from sscanf and i used sscanf in the callback. When I fixed that sscanf shizzle, it didn't occur anymore, so nvm 😛

Also when i use DCC_GetUserEmail it returns empty tho, but i assume thats kind of a permission issue or some kind?

from samp-discord-connector.

maddinat0r avatar maddinat0r commented on July 20, 2024

No, that's because Discord doesn't send this information initially when the bot connects (only exception being the bot itself). I'd need to manually send a request to get that info, and I didn't really implemented requests yet (that's why there are almost only get-natives at the moment, and no set ones like SetMemberRole or SetMemberNickname).

from samp-discord-connector.

MichaelBelgium avatar MichaelBelgium commented on July 20, 2024

server has been online for a week now and it didnt show offline/disconnected once. Im sure this issue is kinda fixed 😃

from samp-discord-connector.

maddinat0r avatar maddinat0r commented on July 20, 2024

Okay, great! I'm going to close this now, feel free to reopen this issue or create a new one if your problem suddenly resurfaces.

from samp-discord-connector.

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.