dracc

  • Jr. Member
  • Posts: 84

!RELOADED¡

  • Newbie
  • Posts: 6
Re: Discord
« Reply #16,  »
Do you think it would be possible for them to also make 32bit versions?

Alecu Madalin

  • Jr. Member
  • Posts: 92
Re: Discord
« Reply #17,  »
help


DizzasTeR

  • VC:MP Beta Tester
  • Infinite loops defy infinity by overflowing memory
  • Posts: 1,141
Re: Discord
« Reply #18,  »
This plugin only works for x64, make sure you are not running it on x32/x86

Alecu Madalin

  • Jr. Member
  • Posts: 92
Re: Discord
« Reply #19,  »
Quote from Doom_Kill3R on September 22nd, 2019, 06:17 PM
This plugin only works for x64, make sure you are not running it on x32/x86
mine is x64

nvm im retarded
i placed libcurl.dll, LIBEAY32.dll, SSLEAY32.dll, SSLEAY32.dll and settings.json into the root and works now


DarkRaZoR^

  • Full Member
  • VC:MP Battlefield Head Developer/KF Leader
  • Posts: 227
Re: Discord
« Reply #20,  »
Code: [Select]
[2019-12-15 12:18:20] [connect] WebSocket Connection 162.159.135.234:443 v-2 "WebSocket++/0.8.1" /?v=6 101
[2019-12-15 12:18:26] [error] handle_read_frame error: asio.ssl:335544539 (short read)
[2019-12-15 12:18:26] [info] asio async_shutdown error: asio.ssl:335544539 (short read)
Close 4000 Unknown error.
Error 4000: unknown error - We're not sure what went wrong. Try reconnecting?
[2019-12-15 12:18:26] [disconnect] Disconnect close local:[1006,short read] remote:[4000,Unknown error.]
[2019-12-15 12:18:26] [connect] Successful connection
[2019-12-15 12:18:26] [connect] WebSocket Connection 162.159.135.234:443 v-2 "WebSocket++/0.8.1" /?v=6 101

The bot seems to lag, not only the bot itself but the server, after frequent messages sending back and forth. Any clue? This error triggers when I launch the server terminal using a batch file (which opens up if the server terminal closes)

DizzasTeR

  • VC:MP Beta Tester
  • Infinite loops defy infinity by overflowing memory
  • Posts: 1,141
Re: Discord
« Reply #21,  »
This is an API related thing after alot of messages are sent, could either be discord sided or the library itself however a workaround as told by Luckshya on discord is to send multiple messages concatenated via \n in intervals rather than individually to reduce the chances of this happening.

Razor.

  • Jr. Member
  • Posts: 64
Re: Discord
« Reply #22,  »Last edited
@DizzasTeR, this plugin can work in Linux CentOS?

Code: [Select]
Plugin error >> dlopen() 'plugins/libDDiscord64.so' failed: libssl.so.1.1: cannot open shared object file: No such file or directory

Failed to load plugin: libDDiscord64

Used:
Code: [Select]
apt-get install libssl-dev

DizzasTeR

  • VC:MP Beta Tester
  • Infinite loops defy infinity by overflowing memory
  • Posts: 1,141
Re: Discord
« Reply #23,  »
Should work, it seems to not be able to find libssl 1.1, check if you have a newer/older version and try to get the 1.1 version if possible then try again
Re: Discord
« Reply #24,  »Last edited
Released v1.1

  • Squirrel events are not triggered now if default messages are enabled
  • Bot status is disabled since it seems to cause issues
  • Messages use Async option

Empty settings.json file attached (Thanks Xmair) with the post.

Binaries download link in first post.

I would still recommend using Luckshya's plugin if you are going to do some serious work with the discord bot, but if you just want a normal casual bot, that logs out player join/quits/chats, then yeah this can do the job.