Jump to content
xLaming

Chat tool script

Recommended Posts

Posted (edited)

Hello, I was creating something to list my staff automatically and boom, I did a lot of stuff in one library,  then gonna share to you all...

 

I won't compile it to everyone use because it requires passwords, I don't want to involve myself and see people saying !@#$% about me later...

 

WordPress:

Spoiler

Note: THIS IS JUST A TOOL FOR LISTING YOUR STAFF AUTOMATICALLY YOU CAN'T HANDLE YOUR CHAT DIRECTLY FROM THE BLOG

 

GitHub: https://github.com/xLaming/xatchathandler_wp

Install from: https://wordpress.org/plugins/xat-auto-staff/

Version 1.2

 

Instalation:

  1. Upload it to your blog,

  2. Set-up chat name and chat password on “xat Auto Staff” on the menu sided,

  3. Add the shortcode [autostaff] to any page or post,

  4. Enable the power MANAGE on your chat,

  5. Yay, it’s up!


Examples:

 

FAQ:

Q. What is it?

  • R. Well, it's my script written in PHP using it you can list all the staff of your xat directly on your WordPress blog.

Q. Is it safe?

  • R. Yes, as you can see everything here is under SSL directly to the xat.com it needs your chat name and your password but it doesn't connect to any external link.

Q. Is it illegal?

  • R. No, there is a lot of people on official chats using something worse that is xat bot clients, this is just a tool that allows you to control YOUR chat.

 

Python:

Spoiler

GitHub: https://github.com/xLaming/xatchathandler_py

Version 1.2

 

Instalation:

  1. First clone or download it on your desktop;
  2. Install Python 3 (I didn't test on 2.7 you can try);
  3. Setup chat name and password;
  4. Uncomment what you want to use and change the value;
  5. Run it.

 

Available functions:

  • chat.getStaffList()
  • chat.setOuter('YOUR_OUTER_URL')
  • chat.setInner('YOUR_INNER_URL')
  • chat.setTransparent(False) --- Available: False or True
  • chat.setComments(True) -- Available: False or True
  • chat.setDescription('Your chat description')
  • chat.setTags('your,chat,tags')
  • chat.setAdsLink('xat.com/YourChat')
  • chat.setLanguage('en') --- It should be the short code of your language
  • chat.setButtonText(0, 'Your first tab text')
  • chat.setButtonName(0, 'Your first tab name')

 

FAQ:

Q. What is it?

  • R. Well, it's my script written in Python(which I have used 3.7 on development) using it you can manage 80% of you chat just using your console, or maybe your website (Django, Flask etc).

Q. It requires something else?

  • R. If you are using Linux you need add the permissions correctly to the file usercache.json, it is used to cache usernames and prevent the script against being slow.

Q. Is it safe?

  • R. Yes, as you can see everything here is under SSL directly to the xat.com it needs your chat name and your password but it doesn't connect to any external link.

Q. What it does?

  • R. You can do a lot of things, e.g you can change your chat backgrounds, description, button names, text etc. I started it creating just for showing staff list, it works 100% fine you just need to have the power MANAGE on your chat enabled. It have a lot of features you can try it yourself.

Q. Is it illegal?

  • R. No, there is a lot of people on official chats using something worse that is xat bot clients, this is just a tool that allows you to control YOUR chat.

 

PHP:

Spoiler

GitHub: https://github.com/xLaming/xatchathandler_php

Version 1.2

 

Instalation:

  1. First clone or download it on your desktop;
  2. Install PHP (I have used PHP 7.3);
  3. Setup chat name and password;
  4. Uncomment what you want to use and change the value;
  5. Run it.

 

Available functions:

  • $chat->getStaffList()
  • $chat->setOuter('YOUR_OUTER_URL')
  • $chat->setInner('YOUR_INNER_URL')
  • $chat->setTransparent(false) --- Available: false or true
  • $chat->setComments(true) -- Available: false or true
  • $chat->setDescription('Your chat description')
  • $chat->setTags('your,chat,tags')
  • $chat->setAdsLink('xat.com/YourChat')
  • $chat->setLanguage('en'); --- It should be the short code of your language
  • $chat->setButtonText(0, 'Your first tab text')
  • $chat->setButtonName(0, 'Your first tab name')

 

FAQ:

Q. What is it?

  • R. Well, it's my script written in PHP using it you can manage 80% of you chat just using your console, or maybe your website.

Q. It requires something else?

  • R. If you are using Linux you need add the permissions correctly to the file usercache.json, it is used to cache usernames and prevent the script against being slow.

Q. Is it safe?

  • R. Yes, as you can see everything here is under SSL directly to the xat.com it needs your chat name and your password but it doesn't connect to any external link.

Q. What it does?

  • R. You can do a lot of things, e.g you can change your chat backgrounds, description, button names, text etc. I started it creating just for showing staff list, it works 100% fine you just need to have the power MANAGE on your chat enabled. It have a lot of features you can try it yourself.

Q. Is it illegal?

  • R. No, there is a lot of people on official chats using something worse that is xat bot clients, this is just a tool that allows you to control YOUR chat.

 

Edited by xLaming
Updates.
  • Like 3
  • Wow 1

Share this post


Link to post
Share on other sites

New version is up,  I won't add handler for group powers since it's a lot of work...

 

Changes:

  • Well, now you can blacklist ids to prevent them being showed on staff list,
  • Unregistered users won't be shown anymore.

Version: 1.1

 

Demo: https://mundosmilies.com/chat/staff/

  • Wow 1

Share this post


Link to post
Share on other sites

PHP version released,

 

It's working perfectly, everything tested on PHP and Python.

  • Wow 1

Share this post


Link to post
Share on other sites

Hi, It´s Perfect« 

Now I don't have to create anything, it's already created, the only problem is that I can't use it.

My website is so complex that I can't afford to add anything else.
Time does not give me hope and xat does not give me confidence.

Good JOB, Thank´s!

  • Like 1
  • Confused 1

Share this post


Link to post
Share on other sites
Posted (edited)

that's really a great idea, but I don't know if all will know use it.

Edited by Vevrok

Share this post


Link to post
Share on other sites
Posted (edited)

Well,

 

What about a plugin for WordPress? Yeahh, I did it, but it just for showing the staff automatically

 

You can now list your chat staff directly on your WordPress blog, isn't that cool?

 

Maybe you will need to set permissions (READ & WRITE) to the file usercache.json

 

https://imgur.com/a/9IG1cY6

Edited by xLaming

Share this post


Link to post
Share on other sites
Posted (edited)

Ok, version 1.1 is uploaded to the GitHub,

 

WordPress has accepted me upload it to there,

 

If you want to install it directly to the WordPress you can set-up directly from their directory:

https://wordpress.org/plugins/xat-auto-staff/

 

Or you can find "xat Auto Staff" on the Plugins menu of your WordPress blog.

 

INSTALATION:

https://br.wordpress.org/plugins/xat-auto-staff/#installation

Edited by xLaming
Link fix
  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.