Comments (10)
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.
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.
v0.2 is out now @MichaelBelgium, please try it out.
from samp-discord-connector.
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.
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.
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.
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.
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.
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.
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)
- Utilise message components
- What to get User Role HOT 1
- Crash on 0.3.6 Pre release Linux
- bot token not specified HOT 2
- How to set name HOT 3
- How to get a maximum arrays in GetUserName HOT 3
- please add DCC_CreatePrivateMessage HOT 3
- Inconsistent of fetching discord profile by discord id (v3.5.6) HOT 1
- Release Packages: windows zip archive of v0.3.6-pre release doesn't comply with pawn.json
- DCC_FindUserById
- new usernames issue HOT 4
- Discord bot started to crash my server. HOT 3
- issue
- Problem when using 'DCC_FindUserByName'. HOT 1
- Plugin fails to recover after server internet disconnection
- Can we get Discord Tag ? HOT 1
- How use Timestamp?
- server crashed
- delete a certain amount of messages
- Connector Error / Could not Load plugin! 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 samp-discord-connector.