🏡 index : ~doyle/dave.git

author Adam Piekarski <arp1g13@soton.ac.uk> 2017-08-07 11:50:12.0 +01:00:00
committer Jordan Doyle <jordan@doyle.wf> 2017-08-07 12:18:05.0 +01:00:00
commit
7597eb878f9baf157b482aeb7135fc2fd63a08a6 [patch]
tree
01a6e27a43b15209cde811927be3dffa28f8cb1c
parent
30fab221bfce663146d5e95ae8372d14cf7d4458
download
7597eb878f9baf157b482aeb7135fc2fd63a08a6.tar.gz

add oi



Diff

 dave/modules/oi.py | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/dave/modules/oi.py b/dave/modules/oi.py
new file mode 100644
index 0000000..ea3d360 100644
--- /dev/null
+++ a/dave/modules/oi.py
@@ -1,0 +1,10 @@
# -*- coding: utf-8 -*-
"""Reply with oi music whenever anyone mentions oi."""
import dave.module


@dave.module.help("Get's oi oi oi in here", name="oi")
@dave.module.match(r"(.*)oi oi oi(.*)")
@dave.module.priority(dave.module.Priority.LOW)
def donk(bot, args, sender, source):
    bot.msg(source, "https://www.youtube.com/watch?v=dTek4AdPkik")