diff --git a/.gitignore b/.gitignore index 59da049..cb6fd01 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ nbproject/ node_modules/ +config/config.json diff --git a/bot.js b/bot.js index bf16695..0719e7c 100644 --- a/bot.js +++ b/bot.js @@ -34,3 +34,9 @@ bot.addListener("pm", function(from, message) { } }); +bot.addListener("message", (nick, to, text, message) => { + if(!text.startsWith("*")) { + console.log("Not for me!"); + return; + } +}); \ No newline at end of file diff --git a/config/config.json.example b/config/config.json.example new file mode 100644 index 0000000..e69de29