🏡 index : ~doyle/dave.git

author dave <dave> 2019-06-22 17:45:00.0 +00:00:00
committer Jordan Johnson-Doyle <jordan@doyle.la> 2019-06-22 17:51:08.0 +00:00:00
commit
7c3bc34f7075965d780a842a0a22d10e940632c9 [patch]
tree
11353ee22b29c9e1c6b37152371ca23cd95f2ae3
parent
5f6e1fc979d2de961a19d0c226f2ec5bf9335bdd
download
7c3bc34f7075965d780a842a0a22d10e940632c9.tar.gz

don't mald quotes



Diff

 dave/modules/quote.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dave/modules/quote.py b/dave/modules/quote.py
index 7116190..3e0016a 100644
--- a/dave/modules/quote.py
+++ b/dave/modules/quote.py
@@ -38,7 +38,7 @@ def quote(bot, args, sender, source):
    row = query.order_by(sqlrandom()).first()

    bot.reply(source, sender, assembleFormattedText(A.normal[
        "<{}> ".format(row.attributed.strip()) if row.attributed else "", A.bold[row.quote]
        "<{}> ".format(row.attributed.strip()) if row.attributed else "", A.normal[row.quote]
    ]))

@dave.module.help("Syntax: fq [search]. Search for a quote.")
@@ -64,7 +64,7 @@ def find_quote(bot, args, sender, source):

    for quote in quotes:
        bot.reply(source, sender, assembleFormattedText(A.normal[
            "<{}> ".format(quote.attributed.strip()) if quote.attributed else "", A.bold[quote.quote]
            "<{}> ".format(quote.attributed.strip()) if quote.attributed else "", A.normal[quote.quote]
        ]))

@dave.module.help("Syntax: dq [uuid]. Allow the quote owner to delete a quote.")