Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: perillamint/kaelynBot
base: 45816d8643
...
head fork: perillamint/kaelynBot
compare: 5b01254b84
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 7 files changed
  • 0 commit comments
  • 1 contributor
Commits on Feb 13, 2013
maneulyori ModuleAPI fixes. 76bc46a
maneulyori Changed moduleAPI 5b01254
View
4 bot.js
@@ -156,8 +156,8 @@ client.messageCallback(function(message) {
if(((processedMessage.args[1] || '').startsWith(config.commandPrefix)) || (processedMessage.args[1] || '').startsWith('!'))
{
processedMessage.isCommand = true;
- processedMessage.args[1] = (message.args[1] || '').substring(config.commandPrefix.length, (message.args[1] || '').length);
- processedMessage.splitedMessage = processedMessage.args[1].split(" ");
+ processedMessage.command = (message.args[1] || '').substring(config.commandPrefix.length, (message.args[1] || '').length);
+ processedMessage.splitedMessage = processedMessage.command.split(" ");
processedMessage.moduleCommand = processedMessage.splitedMessage[0];
}
}
View
4 modules/diceIntermodule.js
@@ -22,7 +22,7 @@ function messageHandler(message)
var diceResult = moduleAPICall("dice.js", "diceRoller", diceString[2]);
- client.privmsg (message.args[0], "TOTAL: "+diceResult.total);
- client.privmsg (message.args[0], "Rolls: "+diceResult.rolls);
+ client.privmsg (message.channel, "TOTAL: "+diceResult.total);
+ client.privmsg (message.channel, "Rolls: "+diceResult.rolls);
}
}
View
6 modules/maxima.js
@@ -21,14 +21,14 @@ function messageHandler(message)
{
if(message.splitedMessage[1] == "재시동")
{
- client.privmsg(message.args[0], "Restarting maxima process...");
+ client.privmsg(message.channel, "Restarting maxima process...");
maxima.kill('SIGKILL');
maxima = spawn('maxima', []);
- client.privmsg(message.args[0], "Restarting finished.");
+ client.privmsg(message.channel, "Restarting finished.");
}
- client.privmsg (message.args[0], "Placeholder!");
+ client.privmsg (message.channel, "Placeholder!");
}
}
View
4 modules/ping.js
@@ -14,10 +14,10 @@ function messageHandler(message)
{
if(message.splitedMessage[0] == "")
{
- client.privmsg (message.args[0], message.nick + ", 퐁!");
+ client.privmsg (message.channel, message.nick + ", 퐁!");
}
else if(message.splitedMessage[0] == "")
{
- client.privmsg(message.args[0], "E: 시간 역행 탐지됨.");
+ client.privmsg(message.channel, message.nick + ", 핑!... 어라 이상한데?");
}
}
View
4 modules/repository.js
@@ -14,7 +14,7 @@ function messageHandler(message)
{
if(message.splitedMessage[0] == "소스")
{
- client.privmsg (message.args[0], "이 봇의 소스는 GPL v3 아래에 공개되어 있으며, 이 곳에서 열어보실 수 있습니다. https://github.com/maneulyori/kaelynBot");
- client.privmsg (message.args[0], "조각난 코드가 보이시나요? 모두의 힘을 합쳐 코드를 완성해 갑시다.");
+ client.privmsg (message.channel, "이 봇의 소스는 GPL v3 아래에 공개되어 있으며, 이 곳에서 열어보실 수 있습니다. https://github.com/maneulyori/kaelynBot");
+ client.privmsg (message.channel, "조각난 코드가 보이시나요? 모두의 힘을 합쳐 코드를 완성해 갑시다.");
}
}
View
6 modules/systeminfo.js
@@ -16,19 +16,19 @@ function messageHandler(message)
if(message.splitedMessage[0] == "업타임")
{
var uptime = exec('uptime', function(error, stdout, stderr) {
- client.privmsg (message.args[0], stdout);
+ client.privmsg (message.channel, stdout);
});
}
else if(message.splitedMessage[0] == "쿨링팬")
{
var sensors = exec('echo "CPU Fan: " $(sensors | grep fan1)', function(error, stdout, stderr) {
- client.privmsg (message.args[0], stdout);
+ client.privmsg (message.channel, stdout);
});
}
else if(message.splitedMessage[0] == "온도")
{
var gputemp = exec('nvidia-smi -q -d TEMPERATURE | grep Gpu', function(error, stdout, stderr) {
- client.privmsg (message.args[0], stdout);
+ client.privmsg (message.channel, stdout);
});
}
else if(message.splitedMessage[0] == "uname")
View
3  modules/todo.js
@@ -14,8 +14,7 @@ function messageHandler(message)
{
if(message.splitedMessage[0] == "TODO")
{
- client.privmsg (message.args[0], "TODO: Add channel blacklist");
- //client.privmsg (message.args[0], "TODO: Project spellcaster");
+ client.privmsg (message.channel, "TODO: Add channel blacklist");
client.privmsg (message.channel, "TODO: sqlite DBAPI");
}
}

No commit comments for this range

Something went wrong with that request. Please try again.