Examples of sendChannelMessage()


Examples of com.github.theholywaffle.teamspeak3.TS3Api.sendChannelMessage()

    query.connect();
   
    final TS3Api api = query.getApi();
    api.selectVirtualServerById(1);
    api.setNickname("PutPutBot");
    api.sendChannelMessage("PutPutBot is online!");
   
    HashMap<ChannelProperty,String> properties = new HashMap<>();
    properties.put(ChannelProperty.CHANNEL_FLAG_PERMANENT, "1"); //Make channel permanent
    properties.put(ChannelProperty.CPID, "3"); //Make it a subchannel of channel 3
   
View Full Code Here

Examples of com.github.theholywaffle.teamspeak3.TS3Api.sendChannelMessage()

    query.connect();
   
    final TS3Api api = query.getApi();
    api.selectVirtualServerById(1);
    api.setNickname("PutPutBot");
    api.sendChannelMessage("PutPutBot is online!");

    api.registerAllEvents();
    api.addTS3Listeners(new TS3Listener() {

      public void onTextMessage(TextMessageEvent e) {
View Full Code Here

Examples of com.github.theholywaffle.teamspeak3.TS3Api.sendChannelMessage()

    query.connect();
   
    final TS3Api api = query.getApi();
    api.selectVirtualServerById(1);
    api.setNickname("PutPutBot");
    api.sendChannelMessage("PutPutBot is online!");
   
    api.registerAllEvents();
    api.addTS3Listeners(new TS3Listener() {
     
      public void onTextMessage(TextMessageEvent e) {
View Full Code Here

Examples of com.github.theholywaffle.teamspeak3.TS3Api.sendChannelMessage()

    api.addTS3Listeners(new TS3Listener() {
     
      public void onTextMessage(TextMessageEvent e) {
        if(e.getTargetMode()== TextMessageTargetMode.CHANNEL){//Only react to channel messages
          if(e.getMessage().equals("!ping")){
            api.sendChannelMessage("pong");
          }
          if(e.getMessage().toLowerCase().contains("hello")){
            api.sendChannelMessage("Hello "+e.getInvokerName());
          }
        }
View Full Code Here

Examples of com.github.theholywaffle.teamspeak3.TS3Api.sendChannelMessage()

        if(e.getTargetMode()== TextMessageTargetMode.CHANNEL){//Only react to channel messages
          if(e.getMessage().equals("!ping")){
            api.sendChannelMessage("pong");
          }
          if(e.getMessage().toLowerCase().contains("hello")){
            api.sendChannelMessage("Hello "+e.getInvokerName());
          }
        }
      }
     
      public void onServerEdit(ServerEditedEvent e) {
View Full Code Here

Examples of com.github.theholywaffle.teamspeak3.TS3Api.sendChannelMessage()

    query.connect();
   
    final TS3Api api = query.getApi();
    api.selectVirtualServerById(1);
    api.setNickname("PutPutBot");
    api.sendChannelMessage("PutPutBot is online!");

    for (Client c : api.getClients()) {
      System.out.println(c.getNickname() + " in channel: "
          + api.getChannelInfo(c.getChannelId()).getName());
    }
View Full Code Here

Examples of com.github.theholywaffle.teamspeak3.TS3Api.sendChannelMessage()

    query.connect();
   
    final TS3Api api = query.getApi();
    api.selectVirtualServerById(1);
    api.setNickname("PutPutBot");
    api.sendChannelMessage("PutPutBot is online!");

    api.registerAllEvents();
  }

  public static void troll(String name, TS3Api bot) {
View Full Code Here

Examples of com.github.theholywaffle.teamspeak3.TS3Api.sendChannelMessage()

            }
        } );

        System.out.println( api.moveClient( searchForChannel( "Lernen", api.getChannels() ).getId() ) );
        api.sendChannelMessage( "PutPutBot is online!" );

    }

    public static void troll( String name, TS3Api bot )
    {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.