📄 nameprocessor.h
字号:
/**
* NameProcessor - Retrieves the bot's name (shortcut)
*
* @author Jonathan Roewen
*/
#ifndef NAME_PROCESSOR_H
#define NAME_PROCESSOR_H
#include "AimlProcessor.h"
#include "Kernel.h"
#include <string>
using namespace std;
class NameProcessor : public AimlProcessor
{
public:
~NameProcessor() { }
string getName() const {
return "name";
}
string getVersion() const {
return "1.0";
}
string process(Match *, PElement, Responder *, const string &id) {
return Kernel::respond("BOT NAME", id);
}
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -