Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 3 of 3
  1. #1
    Join Date
    July 2012
    Posts
    1

    Exclamation Server message every hour.

    Dear forum,

    Regarding my server i would like to have a message send to all users ever hour. I believe this is possible
    through the use of ServerQuery, however i don't have any experience in using this.

    So my question in short, does anyone know how to setup a message send every hour to all users?

    Thank you for your time and effort.

    Best regards,
    Mark van Batenburg

  2. #2
    Join Date
    July 2006
    Posts
    1,600
    I would use the http://forum.teamspeak.com/showthrea...amework-1-1-12 and set up a small php script:
    PHP Code:
    #!/usr/bin/php
    <?php
    $message 
    "Place your message here...";
    require_once(
    "/path/to/the/ts3phpframework/libraries/TeamSpeak3/TeamSpeak3.php");
    try {
      
    $instance TeamSpeak3::factory("serverquery://serveradmin:[email protected]:10011/");
      
    $instance->setPredefinedQueryName("Server");
      
    $instance->message($message);
      exit(
    0);
    } catch (
    Exception $e) {
      
    fprintf(STDERR"Error " $e->getCode() . ": " $e->getMessage() . "\n");
      exit(
    1);
    }
    ?>
    If you then want to run the script hourly you need to set up a cronjob:
    Code:
    crontab -e
    Edit: If you really use the serveradmin login with the script, make sure to set the script chmod 700
    Last edited by maxi1990; July 3rd, 2012 at 03:53 PM.

  3. #3
    Join Date
    February 2012
    Location
    France
    Posts
    69
    Hello!

    You can use the message function of the JTS3ServerMod.
    To download it : http://addons.teamspeak.com/director...erver-Bot.html

    If you have some question for how to configure it, tell me.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [Resolved] TS3 Server Crash after 1 hour.
    By Battle8111 in forum Server Support
    Replies: 7
    Last Post: June 16th, 2013, 04:03 PM
  2. Server shuts down after 1 hour
    By Swede73 in forum Windows
    Replies: 37
    Last Post: December 23rd, 2009, 11:22 AM

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
  •