Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Luckshya
1
Community Plugins / Re: Discord Plugin
« on July 9th, 04:10 PM »
Update v0.4.4 changelog :-
  • Switched to lock-free queues instead of mutex locks on server thread, so a boost in performance
  • Added an option to toggle internal cache
  • Added cache events (see wiki for more info)
  • Switched to a single event onDiscordUpdate for all events with variable no. of arguments (see wiki)
  • Changed message event function parameters
  • Added new script objects to identify discord objects like Guild, Channel, User, ServerMember, Role, Message
  • Added GetGuild and GetOtherChannel functions (more info about them on wiki)
  • Event callbacks are now made through lock free queue
  • Added new constants for Discord EventType, ChannelType and MessageType

Wiki has been restructured and newly added features have been added it. Make sure to see the wiki before using them.
Added example code for both internal cache enabled and disabled on wiki.

Wiki: https://github.com/Luckshya/sleepydiscord-squirrel/wiki
Release: https://github.com/Luckshya/sleepydiscord-squirrel/releases/

I recommend to keep the internal cache disabled and manage cache yourself. I have also provided an example script on wiki to cache data.

EDIT: New release has been deleted for some reason, will be available back soon.
EDIT #2: Releases have been re-uploaded, make sure you get the latest one again.
2
SLC's Squirrel Plugin / [MODULE] Re: Discord module for SqMod
« on June 4th, 07:45 AM »
Update v0.4.3 changelog :-
  • Switched to lock-free queues instead of mutex locks on server thread, so a boost in performance
  • Added an option to toggle internal cache
  • Added cache events (see wiki for more info)
  • Changed message event function parameters
  • Added new script objects to identify discord objects like Guild, Channel, User, ServerMember, Role, Message
  • Added GetGuild and GetOtherChannel functions (more info about them on wiki)
  • Event callbacks are now made through lock free queue
  • Added new constants for Discord ChannelType and MessageType

Wiki has been restructured and newly added features have been added it. Make sure to see the wiki before using them.
Added example code for both internal cache enabled and disabled on wiki.

Wiki: https://github.com/Luckshya/sleepydiscord-sqmod/wiki
Release: https://github.com/Luckshya/sleepydiscord-sqmod/releases/

I recommend to keep the internal cache disabled and manage cache yourself. I have also provided an example script on wiki to cache data.
3
Community Plugins / Re: Discord Plugin
« on May 23rd, 05:19 PM »
Update v0.4.2 changelog :-
  • Added onDiscord_Error, onDiscord_Disconnect, onDiscord_Quit events.
  • Added ErrorEventHandler option to toggle custom error logger.

More info about the new features added here: https://github.com/Luckshya/sleepydiscord-squirrel/wiki
Latest Release: https://github.com/Luckshya/sleepydiscord-squirrel/releases

Example code on wiki updated!
4
SLC's Squirrel Plugin / [MODULE] Re: Discord module for SqMod
« on May 23rd, 05:17 PM »
Update v0.4.2 changelog :-
  • Added onError, onDisconnect, onQuit events.
  • Added ErrorEventHandler option to toggle custom error logger.

More info about the new features added here: https://github.com/Luckshya/sleepydiscord-sqmod/wiki
Latest Release: https://github.com/Luckshya/sleepydiscord-sqmod/releases

Example code on wiki updated!
5
Community Plugins / Re: Discord Plugin
« on May 21st, 04:28 PM »
If anyone needs any other feature/function, let me know.
6
SLC's Squirrel Plugin / [MODULE] Re: Discord module for SqMod
« on May 15th, 05:21 PM »
Update v0.4.1 changelog :-
  • Added invalid serverID check in GetRoleName function
  • Added EditChannel function

More about the new EditChannel here: https://github.com/Luckshya/sleepydiscord-sqmod/wiki/Session_EditChannel
Latest release: https://github.com/Luckshya/sleepydiscord-sqmod/releases
7
Community Plugins / Re: Discord Plugin
« on May 15th, 05:20 PM »
Update v0.4.1 changelog :-
  • Added invalid serverID check in GetRoleName function
  • Added EditChannel function

More about the new EditChannel here: https://github.com/Luckshya/sleepydiscord-squirrel/wiki/Session_EditChannel
Latest release: https://github.com/Luckshya/sleepydiscord-squirrel/releases
8
SLC's Squirrel Plugin / [MODULE] Re: Discord module for SqMod
« on May 12th, 09:16 AM »
Update v0.4

A lot of bug fixes and features have been added which can be seen on wiki or the repository itself.

New project repository: https://github.com/Luckshya/sleepydiscord-sqmod
Wiki: https://github.com/Luckshya/sleepydiscord-sqmod/wiki
Releases: https://github.com/Luckshya/sleepydiscord-sqmod/releases
9
Community Plugins / Re: Discord Plugin
« on May 10th, 07:17 AM »
Major Update!
The plugin has been updated to fix some important bugs and crashes.
Fixed random crashes.
Fixed an issue that would cause other parts of the script to throw unknown errors.
All other fixes/changes can be seen through the repository commits.

Repository has been changed and the old one has been dropped out: https://github.com/Luckshya/sleepydiscord-squirrel
Some notable changes are: content parameter is added to MessageEmbed (https://github.com/Luckshya/sleepydiscord-squirrel/wiki/Session_MessageEmbed)

Latest release can be found here: https://github.com/Luckshya/sleepydiscord-squirrel/releases

The plugin now automatically queue the messages incase it hits the rate limit.
The messages are now sent asynchronously.
10
Client Scripting / Re: Animated GUISprites
« on March 31st, 05:42 PM »
Damn, you nailed it. Awesome!
11
Community Plugins / Re: HTTP requests module
« on March 23rd, 06:18 PM »
Update v0.2
  • Major fixes and updates to fix random crashes
  • Changed event callback system
  • Changed event name to  HTTP_OnResponse

Make sure to see the updated Example Code: https://github.com/Luckshya/httpreq-squirrel/wiki/Example-Code
Latest Release: https://github.com/Luckshya/httpreq-squirrel/releases/tag/0.2
12
SLC's Squirrel Plugin / [MODULE] HTTP requests module for SqMod
« on March 23rd, 06:01 PM »
Introduction
It's simple HTTP requests module that I made for SqMod after completing for official squirrel plugin.

Documentation
Wiki: https://github.com/Luckshya/httpreq-sqmod/wiki/
Example code: https://github.com/Luckshya/httpreq-sqmod/wiki/Example-Code

Source
Plugin Source: https://github.com/Luckshya/httpreq-sqmod

Installation/Requirements

Windows
Binaries: https://github.com/Luckshya/httpreq-sqmod/releases

Linux
Binaries: https://github.com/Luckshya/httpreq-sqmod/releases
(32 bit not available for now)

Current features
  • HTTP GET Request

Upcoming features
  • HTTP POST Request

Credits
13
Scripting and Server Management / Re: About NewSocket
« on February 21st, 07:56 AM »
I have used sockets for HTTP requests but I had to create sockets everytime to send a request. So I created that simple plugin for that.

Maybe try this: https://forum.vc-mp.org/?topic=7522.0

And you can use JSON parser to parse the json string to squirrel data using some available parser like https://github.com/electricimp/JSONParser
14
Community Plugins / HTTP requests module
« on February 21st, 07:53 AM »
Introduction
I made a simple HTTP requests module for myself and would like to share it here if it can be of any use for someone. It uses cURL.

Documentation
Wiki: https://github.com/Luckshya/httpreq-squirrel/wiki/
Example code: https://github.com/Luckshya/httpreq-squirrel/wiki/Example-Code

Source
Plugin Source: https://github.com/Luckshya/httpreq-squirrel

Installation/Requirements

Windows
Binaries: https://github.com/Luckshya/httpreq-squirrel/releases

Linux
Binaries: https://github.com/Luckshya/httpreq-squirrel/releases
(32 bit not available for now)

Current features
  • HTTP GET Request

Upcoming features
  • HTTP POST Request

Credits
15
Community Plugins / Re: Discord Plugin
« on April 8th, 2019, 07:01 PM »
Quote from umar4911 on April 8th, 2019, 06:46 PM
what does it really do? I mean does it skip that message or it parses that field
It does not skip and accepts the EmbedField without the name and value and then parse it.