Forum

Results 1 to 12 of 12
  1. #1
    Join Date
    June 2016
    Posts
    12

    [Bot] MagicBot: Auto create sub-channels when a client join a channel [PHP]

    Hi there,

    I created a little bot that will create a sub-channel for a client and move him inside. So for example you have channel "League of Legends", and then when a user join this channel he will get moved in a temporary sub-channel that would be nammed for example "Freljord", and so an other user playing league would either generate a new channel (that could be auto nammed "Demacia" for example) or join the other client.

    This way, you always have enough channels for everyone while keeping your server clear.

    There is 2 way of configuring the channel names, Dynamic or static :
    - Static: You set a list of names.
    - Dynamic: You set a name such as "Room number " and the bot add a digit (1, 2, 3..) for each new channel.

    Also, you can create personalised channel name, like user id X (or server group X) would get a personalised channel name
    (ex: for admins, they all have their own channel name below "Admin Desk")


    You'll need php 5+ on your server and a tool such as screen so the bot stay alive when you quit ssh connection.
    Enjoy

    This is a beta and will probably stay as a beta as i now stopped administrating teamspeak servers.
    The code and config files are really dirty, i made it a looong time ago ;-;

    If you have any doubts with configuration comment below, but please use your head before

    Please note: This is for PERSONNAL use only, please do not sell this product.


    **** Problem solving ****

    First try to connect your bot with modules setted off, and configure them one by one so you know where it fails.

    "invalid URI" : The bot cannot connect. Most common mistake is the bot name being invalid, please avoid spaces. Check the server connection settings.
    Attached Files Attached Files
    Last edited by TheTrueElektro; January 25th, 2018 at 10:56 PM.

  2. #2
    Join Date
    December 2017
    Location
    Grenoble (France)
    Posts
    9
    good idea !
    Thank you.
    Why not implement an automatic description and an automatic icon?

  3. #3
    Join Date
    June 2016
    Posts
    12
    Well i can do it if you wish. Icon problem is i have to implement a way to get icon id ^^

  4. #4
    Join Date
    December 2017
    Location
    Grenoble (France)
    Posts
    9
    do what you want ^^

    what is anti_timeout ?

  5. #5
    Join Date
    June 2016
    Posts
    12
    Quote Originally Posted by Guraz View Post
    what is anti_timeout ?
    It is related to the API. Basically you don't need to change that, it is to avoid the bot disconnecting without trying to reconnect.

  6. #6
    Join Date
    June 2013
    Location
    Ohio, US
    Posts
    10
    This is a script I've been looking awhile for. There was one for SinusBot, but it's outdated and doesn't work properly. Yours works perfectly! I have 124 possible sub-channels (4 for each of my 31 channels), and my friend and I did a hard spam test on it and it doesn't crash or anything! I will report if I find anything wrong, but you did a great job mate!

    EDIT: One suggestion is to somehow keep the channels in numerical order, because currently when for example there is "Channel 1" and "Channel 2," if 1 is deleted and someone else creates a new room, "Channel 1" will go below "Channel 2"

  7. #7
    Join Date
    June 2016
    Posts
    12
    Nice well if it start cashing you can use the anti spam filter so should be alright :P i also tried to crash it with around 15 persons :')

    Yeah i should have shared it before but.. lazy i am

    It is a good suggestion, however it mean sort channels by name and it's kinda hard to do without spamming request :/ I'll think about this, maybe i can try something out :P

  8. #8
    Join Date
    October 2017
    Location
    Brasil, Rio de Janeiro
    Posts
    11
    Wow, very good job!


    I'll use this

  9. #9
    Join Date
    June 2016
    Posts
    12
    Quote Originally Posted by Noslec View Post
    Wow, very good job!


    I'll use this
    Hope you'll like it

  10. #10
    Join Date
    January 2019
    Posts
    1

    how i can run d'is bot

    how i can run d'is bot

  11. #11
    Join Date
    June 2008
    Posts
    17,798
    In package you find a README and and How to use file.
    You may read it.
    When sending me private messages: Please make sure to include reference link to your forum thread or post.

    TeamSpeak FAQ || What should i report, when i open a client thread?

  12. #12
    Join Date
    June 2016
    Posts
    12
    Quote Originally Posted by simo60651 View Post
    how i can run d'is bot
    Hey, Just read the provided README.

    Also, please understand this is a Linux-based bot, and you'll need to run this bot in command line inside a server.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Request] Auto Create Channel
    By AzginPrens in forum Client Plugins / Lua Scripts
    Replies: 3
    Last Post: March 21st, 2018, 04:01 PM
  2. [Resolved] Servergroup that can create channels with 25 join power
    By Midnightfox in forum Permission System
    Replies: 6
    Last Post: March 28th, 2012, 07:42 AM
  3. [Request] Channel Auto Join
    By XmaX182 in forum Tools / Web Based
    Replies: 0
    Last Post: December 21st, 2009, 01:08 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •