🏡 index : ~doyle/dave.git

author dave <dave@ip-172-26-11-212.eu-west-2.compute.internal> 2019-03-03 23:48:28.0 +00:00:00
committer dave <dave@ip-172-26-11-212.eu-west-2.compute.internal> 2019-03-03 23:48:28.0 +00:00:00
commit
3ea1f660120a17cb375a39e839e17d4872b3dbd2 [patch]
tree
8fc1a8c0d7d5418227c06d2d745ca60bd728f278
parent
7fd873a823a26157067221bd57c0c0f51fd2b45e
download
3ea1f660120a17cb375a39e839e17d4872b3dbd2.tar.gz

donk acronyms are funny



Diff

 dave/modules/donk.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dave/modules/donk.py b/dave/modules/donk.py
index 8ef2201..2f19761 100644
--- a/dave/modules/donk.py
+++ a/dave/modules/donk.py
@@ -1,10 +1,11 @@
# -*- coding: utf-8 -*-
"""Reply with donk music whenever anyone mentions donk."""
import dave.module
import random


@dave.module.help("Puts a donk on it.", name="donk")
@dave.module.match(r"(.*)donk(.*)")
@dave.module.match(r"(.*)(d(\S+\s)o(\S+\s)n(\S+\s)k|donk)(.*)")
@dave.module.priority(dave.module.Priority.LOW)
def donk(bot, args, sender, source):
    bot.msg(source, "https://www.youtube.com/watch?v=ckMvj1piK58")
    bot.msg(source, "https://www.youtube.com/watch?v={}".format(random.choice(["ckMvj1piK58", "5dQkhKk5Kgk", "qAugqv8e2KM", "ctWh_AEA6RY", "LxXnmkNEyh4", "ckMvj1piK58"])))