Skip to content

Commit

Permalink
Use html instead of markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Guy Spronck committed Jun 23, 2016
1 parent 33b1a8e commit 044eadd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Commands/Stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class Stats implements ICommand {
// Displays chat statistics
exec(msg, reply):void {
this.db.GetStats(<Chat>msg.chat, (stats:String) => {
reply.markdown(stats);
reply.html(stats);
});
}
}
6 changes: 3 additions & 3 deletions src/Util/Database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ export class Database {
return b.msgcount - a.msgcount;
});

var response = `Stats for *${doc.name}*:\r\n`;
var response = `Stats for <strong>${doc.name}</strong>:\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}): <strong>${doc.users[i].msgcount}</strong>`;
sum += doc.users[i].msgcount
}

response += `\r\n\r\nTotal messages: *${sum}*`;
response += `\r\n\r\nTotal messages: <strong>${sum}</strong>`;
callback(response);
}
});
Expand Down

0 comments on commit 044eadd

Please sign in to comment.