Deprecated: Use of "parent" in callables is deprecated in /var/www/html/forum/src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php on line 431
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.
Use
sinusbot.getChannels();
It will give you information about all the channels in the server and the clients inside. For each client it will also display the client's server groups.
So you can loop through all the info and gather it all pretty quickly.
Hi!
I'm currently using a slightly modified version of this: https://forum.sinusbot.com/resources/auto-channel-creator.128/
I've noticed that if I try to add into the prefix or into the script the sign '#', it will fail to create a channel after the first one, giving out this error:
TS...
Never mind. Turns out I did my bit wrong.
Ready function for future visitors:
function findClientFromName(searchName) {
var foundClient = 'N0TH!NG';
searchName = searchName.toLowerCase();
allChannels = sinusbot.getChannels()...
@xDefcon
Hey, 2 questions. With this code:
function findClientFromName(clientName) {
var allChannels = sinusbot.getChannels();
var foundClient = 'nothing';
for (var i = 0; i < allChannels.length; i++) {
for (var = j = 0; j < allChannels[j].clients.length; j++) {...
Obviously splitting it to get the username by itself, but is there no way to get a client info from the name in the current API? couldn't find any documentation.
Nah you didn't get me, I know how to create a command, but I want to be able to target people. For example:
!command maxibanki
And then be able to do something to you.
Hey, writing a script right now that uses a command.
!command <Client-Name> <Message>
But I don't really know how to get the the client info (where I can also related to mode, clientUid, clientID, etc) from the name.
I'd appreciate any help.
Thanks.
Don't know where to put this thread, so bear with me, but quick question, where are songs saved? (Both downloaded from YouTube and manually uploaded).
Thanks!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.