Package org.tsbs.manager

Examples of org.tsbs.manager.BotConfiguration


    private static BotConfiguration config;
    private static BotManager manager;

    public static void main( String[] args ) throws ClassNotFoundException, IllegalAccessException, InstantiationException, IOException, DirectoryNotFoundException, ConfigNotFoundException, InterruptedException
    {
        config = new BotConfiguration( "config\\config.cfg" );
        manager = BotManager.createBotManager( config );

        manager.activateChannel( ApiUtils.getSubChannel( manager.getAllServerChannels(), new String[]{ "Games", "Diablo3", "#1" } ) );
        manager.activateChannel( ApiUtils.getSubChannel( manager.getAllServerChannels(), new String[]{ "Games", "League of Legends", "#1" } ) );
        manager.activateChannel( ApiUtils.getSubChannel( manager.getAllServerChannels(), new String[]{ "Sonstiges", "Chillen", "Hangout" } ) );
View Full Code Here


    private TS3Api mApi;


    public ServerConnection() throws FileNotFoundException, IOException
    {
        this.mConfig = new BotConfiguration( "config/config.cfg" );
        this.mQuery  = new TS3Query( getConfig() );
        this.mQuery.connect();
        this.mApi    = this.mQuery.getApi();
        this.mApi.selectVirtualServerById( 1 );
    }
View Full Code Here

        map.put( "!move", new MoveFunction() );
        CommandHandler handler = new CommandHandler( 1, map );
        handler.run();


        BotConfiguration conf = new BotConfiguration( "config\\config.cfg" );
        TS3Config config2 = new TS3Config();
        config2.setHost( configMap.get( "host" ) );
        config2.setDebugLevel( Level.ALL );
        config2.setDebugToFile( true );
        config2.setLoginCredentials(conf.getLoginName(), conf.getLoginPassword() );
        config2.setFloodRate( TS3Query.FloodRate.DEFAULT );

        TS3Query query1 = new TS3Query( config2 );
        TS3BotChannelListener bot1 = new TS3BotChannelListener( query1, true, handler, 26 );
View Full Code Here

    {
        super.setUp();

        try
        {
            config = new BotConfiguration( "config\\config.cfg" );
        }
        catch ( IOException exc )
        {
            System.out.println( "config failed" );
        }
View Full Code Here

TOP

Related Classes of org.tsbs.manager.BotConfiguration

Copyright © 2018 www.massapicom. 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.