2017-12-24 11:22:31 +01:00
|
|
|
/**
|
|
|
|
* Copyright (C) 2011-2013,2017 Nicolas Vinot <aeris@imirhil.fr>
|
|
|
|
* Copyright (C) 2017 Christian Pierre MOMON <cmomon@april.org>
|
|
|
|
*
|
|
|
|
* This file is part of (April) Hebdobot.
|
|
|
|
*
|
|
|
|
* Hebdobot is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* Hebdobot is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
* along with Hebdobot. If not, see <http://www.gnu.org/licenses/>
|
|
|
|
*/
|
|
|
|
package org.april.hebdobot;
|
|
|
|
|
2018-01-05 02:45:56 +01:00
|
|
|
import java.io.File;
|
|
|
|
|
2017-12-24 11:22:31 +01:00
|
|
|
import org.april.hebdobot.model.Hebdobot;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Class BotMock.
|
|
|
|
*/
|
|
|
|
public class BotMock extends Hebdobot
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Instantiates a new bot mock.
|
|
|
|
*
|
|
|
|
* @throws Exception
|
|
|
|
* the exception
|
|
|
|
*/
|
|
|
|
public BotMock() throws Exception
|
|
|
|
{
|
2018-01-05 02:45:56 +01:00
|
|
|
super("myHost", 0, "Hebdobot", "#april-mock", new File("/tmp/"), "revue.txt");
|
2017-12-24 11:22:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* (non-Javadoc)
|
|
|
|
* @see org.april.hebdobot.irc.Bot#onMessage(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
|
|
|
|
*/
|
|
|
|
@Override
|
|
|
|
public void onMessage(final String channel, final String sender, final String login, final String hostname, final String message)
|
|
|
|
{
|
|
|
|
super.onMessage(channel, sender, login, hostname, message);
|
|
|
|
}
|
|
|
|
}
|