summaryrefslogtreecommitdiffstats
path: root/modules/ping.rb
diff options
context:
space:
mode:
Diffstat (limited to 'modules/ping.rb')
-rw-r--r--modules/ping.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/ping.rb b/modules/ping.rb
new file mode 100644
index 0000000..9069de1
--- /dev/null
+++ b/modules/ping.rb
@@ -0,0 +1,6 @@
+def module_ping(msg_body, sender_nick, config)
+ if msg_body =~ /^!.+ing/
+ answer = sender_nick + ", " + msg_body.gsub("ing","ong") + "."
+ return answer
+ end
+end \ No newline at end of file