• 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.

Private Messaging through bot

Everlike

Well-Known Member
Contributor
If so, this is propably the most simple Script possible for your needs.
Just type !msg UIDofTheRecipient messageToTherecipient

//edit: I split the message by " " (spaces) So your message can not contain spaces. Its easy to fix, if you want me to tell me, if this isn´t what you need anyway, I dont.

Hope I could´ve helped you.

Greetings, Everlike
 

Attachments

  • clientMessenger.js
    524 bytes · Views: 22

jasiubor

Member
Okay dude, so you want to write something like "!msg UIDhere messageHere" to your sinusbot, and the sinusbot should write a message to the uid with the content of messsageHere, am I right? You want to use this for real clients or your querybot?
Exactly, I want to type to querybot :) The little problem is I need to have spaces in messages :/
 

irgendwr

no longer active, "retired" staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
Hey guys you've missed something:
The sinusbot has to have enough power to see and message the query client.
This is not possible unless the bot is server query admin.
(That's why the error occurred in @Lukas Westholt's script)
 

jasiubor

Member
[Sorry for the late of reply]
The sinusbot that I got has equal permission to me. (not 100% sure, will check that)
Also, the bot can see the message from the querybot because I can see those in logs on *next to me* monitor.
 
Top