Menu

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.

Show posts Menu

Messages - Luckshya

#1
Community Plugins / Re: Discord Plugin
Jul 09, 2020, 03: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
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
May 23, 2020, 04: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
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
May 21, 2020, 03:28 PM
If anyone needs any other feature/function, let me know.
#6
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
May 15, 2020, 04: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
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
May 10, 2020, 06: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
Mar 31, 2020, 04:42 PM
Damn, you nailed it. Awesome!
#11
Community Plugins / Re: HTTP requests module
Mar 23, 2020, 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
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
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
Feb 21, 2020, 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
Apr 08, 2019, 06:01 PM
Quote from: umar4911 on Apr 08, 2019, 05:46 PMwhat 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.