BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Age of Conan Archive => AoC 0.6.x Custom/Unofficial modules => Topic started by: Wullan on August 09, 2011, 08:21:51 am

Title: TS3 Class Functions module
Post by: Wullan on August 09, 2011, 08:21:51 am
Hello there. For our guild I made a TS3 Class Function module which offers functions for monitoring status on TS3 server. Also I prepared an small custom module which generates the current TS3 tree with all channels and clients connected to. Also you can see tne state of sound input and output of connected clients. For admins it also offers a KICK function for unwanted clients.

This is the picture of ingame message: (http://forum.royalultima.cz/navody/bot/ts/ts1.jpg)

These functions from my class I also used to enhace fucntionality of !ONLINE and !WHOIS functions. Guildmates must use one of their character name(registered in guild and BOT) on TS3 so it can show their TS3 status in game. These functions are also used by my RAID module, to show RL if all confirmed members are on TS in the right channel and many more.

It is prepared as new CLASS, with some thigs only for our guild(for example CZ language), but if you have interest I can prepare it for public use and the manual for deployment of this module.

Cya on BF
Wullan
Title: Re: TS3 Class Functions module
Post by: dillinger on August 09, 2011, 01:27:59 pm
Nice module!

Can you implement a feature wich shows who connects / disconnects from the TS3 server in the guild chat? A English or German version would be great!

Regards, dill
Title: Re: TS3 Class Functions module
Post by: kenny on August 09, 2011, 05:34:25 pm
Nice module!

Can you implement a feature wich shows who connects / disconnects from the TS3 server in the guild chat? A English or German version would be great!

Regards, dill

This can be done pretty easily.
I'll look into it when I have time. Might take some days.

In the meantime, I already created a module which allows you to move/kick some or all clients from the TeamSpeak Server (limited to SuperUser rights, of course).

If you are interested that module, tell me. I will clean it up and release it then.

~kenny
Title: Re: TS3 Class Functions module
Post by: Drizzurdeen on August 09, 2011, 06:18:57 pm
Quote
If you are interested that module, tell me. I will clean it up and release it then.

I AM INTERESSTED IN ;)
Title: Re: TS3 Class Functions module
Post by: GaRoN on August 10, 2011, 12:24:22 am
I'm interessted too ^^
Title: Re: TS3 Class Functions module
Post by: kenny on August 10, 2011, 01:59:26 pm
Here you go, guys:
http://www.dead-mans-shore.net/tsadmin.phps

I polished it for a bit and added commentary.
It requires you to have the tsquery php library inside your /extra folder. Refer to the TS3 list module for installation instructions.

The syntax is the following:
!tsadmin moveall [channelid] - moves ALL teamspeak users into this channel
!tsadmin kick [clientid] - kicks client (this adds a message telling the user who kicked him, so be careful)
!tsadmin move [clientid] [channelid] - moves user into the channel

I will release a modification of the ts3 list module in the near future. It contains links next to each channel to issue the moveall command, kick links next to each user and shows the channel ID next to each channel in the list.

Have fun with it.
If you make any significant changes to it, please release them to the public for everyone to enjoy.

- kenny (kenrikun on asgard)
Title: Re: TS3 Class Functions module
Post by: GaRoN on August 10, 2011, 07:12:29 pm
@ Kenny

Could it be that's it a first small code to build on it ??

Quote
[tsadmin] All clients have been moved to the selected channel.

I've test it ... it tells  something had done .. but in real there nothing changes in Teamspeak³ like moving in the selected channel

@Wullan

would be nice to see the modul & see it in english .. its little bit difficult to translate from Czech to english or for me to german I think ^^

greets GaRoN
Title: Re: TS3 Class Functions module
Post by: Drizzurdeen on August 10, 2011, 11:54:41 pm
@ garon ... u are using my ts ;) ... so i know u don't have the password for the superadmin u use for the mod ^^
Title: Re: TS3 Class Functions module
Post by: GaRoN on August 11, 2011, 07:48:32 am
Quote
        // As I have no idea how the settings system of BeBot works,
        // you'll have to configure it here for now. I know its hack-ish.
        // What you have to enter in each of the variables should be self-explanatory.

        // You will HAVE to enter your TS3 serverquery data here because a guest user has no moving rights.
        // If you fear your TS data will be stolen, create a seperate ServerQuery user and add it to a seperate
        // group only giving it rights to kick and move.

In the modul is a info that i've used.. I thought that should be going .. sry if I've misunderstood something there ^^
I've maked my ServerQuery to a extra servergroup and gave it the kick & move rights ^^

on !ts3 my serverquery works ^^

greets GaRoN
Title: Re: TS3 Class Functions module
Post by: dillinger on August 11, 2011, 08:24:31 am
Thanx 4 the mod, I'll test it asap.
Title: Re: TS3 Class Functions module
Post by: dillinger on August 11, 2011, 04:17:22 pm
kenny, your module is quite bashin' :) the only thing that I really miss is an option to switch entire channels with all clients in it. At this time, I can only switch all server clients to a channel grp.

dill
Title: Re: TS3 Class Functions module
Post by: kenny on August 11, 2011, 10:27:59 pm
kenny, your module is quite bashin' :) the only thing that I really miss is an option to switch entire channels with all clients in it. At this time, I can only switch all server clients to a channel grp.

dill

Added to ToDo - I'll look into that on weekend.
I guess it'll be my coding weekend, I have work to do on 5 BeBot modules. Expect some stuff coming from me.

~ kenny


//EDIT: One more thing. Is there any actual interest in the option of excluding some channels from "moveall"? I don't need this, so if noone needs it I'll save my time :)

//EDIT2: I just realized there is no actual error handling on this module. Added to ToDo. *sigh*
Title: Re: TS3 Class Functions module
Post by: GaRoN on August 12, 2011, 01:02:48 am
Yes .. I think its better to let guys in roleplay-, afk- or radio-channel where they are or not ?? ^^ Also if you make a moveall raid and there are parallel some in hm-group in a group-channel it isn't funny too...

Could be very cool if it work with different priority commands for groups like raid (!moveall entrance to raid) and conferences where all have to be in a channel(!moveguild to guildconference)

I don't know if this is possible ^^
Title: Re: TS3 Class Functions module
Post by: dillinger on August 15, 2011, 12:17:32 pm
Just add a option to switch group clients to another group "Group 1 > Group 2" :)

dill
Title: Re: TS3 Class Functions module
Post by: kenny on August 16, 2011, 01:32:32 am
I haven't had as much free time as I expected this weekend, so I didn't really manage to code all of what was to do.
I added the "movechan" feature to the tsadmin module, though.
You can redownload it from my earlier post.

The syntax is the following:
!tsadmin movechan [old channelID] [new channelID]

I haven't had a chance to test the changes I made yet, but it should work. If it doesn't, I am very sorry and will resolve the issues with it as fast as I can. Please make sure to leave your feedback.

enjoy
kenny
Title: Re: TS3 Class Functions module
Post by: dillinger on August 16, 2011, 09:24:27 am
Nope, !movechan does not work:

Code: [Select]
Parse error: syntax error, unexpected ';' in C:\xampp\php\custom\modules\tsadmin.php on line 81
Title: Re: TS3 Class Functions module
Post by: dillinger on August 16, 2011, 09:27:34 am
Doublepost sry, f*cking UMTS!  :-X
Title: Re: TS3 Class Functions module
Post by: kenny on August 17, 2011, 01:05:35 am
Awkward, I forgot closing a " ) " :|
I fixed it, please try it again.
Title: Re: TS3 Class Functions module
Post by: dillinger on August 17, 2011, 08:19:02 am
yes, you made it!  8)

!movechan is quite AWESOME!

thanx mate
Title: Re: TS3 Class Functions module
Post by: kenny on August 17, 2011, 11:11:51 pm
yes, you made it!  8)

!movechan is quite AWESOME!

thanx mate

Good to hear it worked out, thanks for your feedback :)
This also confirms the base for "ignore channels" - it's just a case of putting it together now. I'll do it in the following days or if not, I'll do it on weekend (this time, really :) ) !
Title: Re: TS3 Class Functions module
Post by: kenny on August 29, 2011, 12:29:59 pm
Just in case no one noticed, I updated the TS3 admin module to support excluded channels. As usual, I did not test this so please tell me if it worked for you :)

You can download it from my initial post.
The array specifying the ignored channels is located in line 37. Remember to copy the TS configuration values from your old php file.
SimplePortal 2.3.7 © 2008-2024, SimplePortal