From 044eaddc770906508bdd347810cf105c990b068a Mon Sep 17 00:00:00 2001 From: Guy Spronck Date: Thu, 23 Jun 2016 08:37:28 +0200 Subject: [PATCH] Use html instead of markdown --- src/Commands/Stats.ts | 2 +- src/Util/Database.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Commands/Stats.ts b/src/Commands/Stats.ts index e94d389..9b99282 100644 --- a/src/Commands/Stats.ts +++ b/src/Commands/Stats.ts @@ -13,7 +13,7 @@ export class Stats implements ICommand { // Displays chat statistics exec(msg, reply):void { this.db.GetStats(msg.chat, (stats:String) => { - reply.markdown(stats); + reply.html(stats); }); } } diff --git a/src/Util/Database.ts b/src/Util/Database.ts index a3eab28..c242c04 100644 --- a/src/Util/Database.ts +++ b/src/Util/Database.ts @@ -47,14 +47,14 @@ export class Database { return b.msgcount - a.msgcount; }); - var response = `Stats for *${doc.name}*:\r\n`; + var response = `Stats for ${doc.name}:\r\n`; var sum = 0; for(var i = 0; i < doc.users.length; i++){ - response += `\r\n${doc.users[i].name} (${doc.users[i].username}): *${doc.users[i].msgcount}*`; + response += `\r\n${doc.users[i].name} (${doc.users[i].username}): ${doc.users[i].msgcount}`; sum += doc.users[i].msgcount } - response += `\r\n\r\nTotal messages: *${sum}*`; + response += `\r\n\r\nTotal messages: ${sum}`; callback(response); } });