Vice City: Multiplayer
Server Development => Scripting and Server Management => Topic started by: Sebastian on February 23rd, 2019, 12:52 AM
Hey there !
I know there are servers which comunicate to Discord channels,
so I have to ask, as I'm gonna need it:
HOW TO ?
Can somebody do one for Squirrel too ?
The only issue with it is the amount of dependencies that come with it when made with C++. @Luckshya made one in Sleepy-Discord but it had no multi-threading which is kind of a big issue.
I made one in libdiscord, and to avoid a huge havoc of linking errors, I literally compiled the lib and bot on the same vps I'm running my server just to avoid getting all the DLLs and stuff manually ported.
Its just that if the plugin is to be released, it must be released with each linking module manually placed in the server directory for stuff to work and even then sometimes it just didn't because some stuff would be missing that the plugin/library depends on.
I myself used the libdiscord library to work on another thread and am currently using it for the next update of my server. I suggest you to start writing your own plugins as you're an old programmer and have enough experience to get started. For the community, when I've time I'll write another plugin to release publicly.
I'm not a programmer. Never worked in C++ or C# . Never wanted to.
I suggest you to start writing your own plugins as you're an old programmer and have enough experience to get started.
(can't call coding for vcmp "programming", as that's all I've done)
If I knew how to do it, trust me, this topic wouldn't even exist.
@Luckshya sent me an alpha version of the Sleepy-Discord plugin, so I'm gonna test it these days.
If everything goes smooth, he might release it for the public too.
That's why I made python plugin. Because python has lots of useful libraries. For example discord library: https://github.com/Rapptz/discord.py
If you are using squirrel, it's better to make a external app to forward message to discord.
@ysc3839 Good to see you back around :)
Ah, got it.
/meis going to fix it.
I'm always there. :D
I've tested @Luckshya 's plugin and works like a charm.
He will release the files when the time comes.
I actually wanted to release the multi-bot plugin instead of this single bot one but due to the limitations of official squirrel plugin, I'll also have to provide with my modified version of squirrel plugin along with it which will be really confusing.
So, only the plugin that I gave to seby (single bot) could work with official squirrel plugin.
However, I was working on a better model of discord plugin for SqMod but I'm facing several problems with it. So that's just what is keeping me away from releasing it, though I have the single bot plugin working great both on windows and linux.
I can link my plugin with any of the libdiscord or sleepy-discord library but thats not the problem.
PS: If anyone else also wants to check out the plugin, you can message me on discord (Luckshya#5109).