• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

Feature Script events idea

Status
Not open for further replies.

Slama

New Member
Hello,

I would to ask you if you can add the following event to the scripting engine:
  • clientBan - This event will be triggered when someone was banned from the server.
Code:
{
    "msg": optional_reason,
    "client": {
        "clientId": idOfBannedClient,
        "clientNick": nickOfBannedClient,
        "clientUid": uidOfBannedClient,
        "clientServerGroups": [listOfServerGroupIds],
    },
    "invoker": {
        "clientId": idOfClient,
        "clientNick": nickOfClient,
        "clientUid": uidOfClient,
        "clientServerGroups": [listOfServerGroupIds],
    }
}

  • clientKick - This event will be triggered when someone was kicked from the server.
Code:
{
    "msg": optional_reason,
    "client": {
        "clientId": idOfKickedClient,
        "clientNick": nickOfKickedClient,
        "clientUid": uidOfKickedClient,
        "clientServerGroups": [listOfServerGroupIds],
    },
    "invoker": {
        "clientId": idOfClient,
        "clientNick": nickOfClient,
        "clientUid": uidOfClient,
        "clientServerGroups": [listOfServerGroupIds],
    }
}

  • clientDisconnect - This event will be triggered when someone disconnects from the server.
Code:
{
    "msg": optional_reason,
    "client": {
        "clientId": idOfClient,
        "clientNick": nickOfClient,
        "clientUid": uidOfClient,
        "clientServerGroups": [listOfServerGroupIds],
    }
}

  • clientConnect - This event will be triggered when someone connects from the server.
Code:
{
    "client": {
        "clientId": idOfClient,
        "clientNick": nickOfClient,
        "clientUid": uidOfClient,
        "clientServerGroups": [listOfServerGroupIds],
    }
}

Some improvements to this one:
  • clientMove - This event will be triggered when someone moves or gets moved.
Code:
{
    "newChannel": channelId,
    "oldChannel": channelId,
    "reason": optionalreason,
    "visibility": newvisiblity,
    "client": {
        "clientId": idOfMovedClient,
        "clientNick": nickOfMovedClient,
        "clientUid": uidOfMovedClient,
        "clientServerGroups": [listOfServerGroupIds],
    "invoker": {
        "clientId": idOfClient,
        "clientNick": nickOfClient,
        "clientUid": uidOfClient,
        "clientServerGroups": [listOfServerGroupIds],
    }
}

Finally, I want to tell you I'm french, so my english isn't parfect ! ^^

Thanks you, Slama.
 

Raphraph

Donor
is awesome!
Contributor
Insider
To make it somehow mor "official":
Flyth has read this thread and agree with some of these events :) So some of them could be implemented in one of the next versions.
This post isn't guaranteing any kind of implementation !!
 
Status
Not open for further replies.
Top