Skip to content

Commit

Permalink
Merge pull request #1 from MozillaKerala/Admin_name_test
Browse files Browse the repository at this point in the history
Show Admin Name on message
  • Loading branch information
Waterloo committed Oct 28, 2015
2 parents f13c68d + 8a67520 commit eb22b16
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,18 +148,19 @@ function startmeeting(from) {



var meeting_msg = strformat("A Meeting was just started by admin at %time% on %date%\n\nThe agenda of the meeting is at %datelink%\n\nYou better be civil from now onwards because I'm logging everything you say.\n\nI'll tell you where to find the log after the meeting ends.", {
var meeting_msg = strformat("A Meeting was just started by %admin_name% at %time% on %date%\n\nThe agenda of the meeting is at %datelink%\n\nYou better be civil from now onwards because I'm logging everything you say.\n\nI'll tell you where to find the log after the meeting ends.", {
time:meeting_time ,
date: meeting_date,
datelink:meeting_link
datelink:meeting_link,
admin_name:env.admin_name
});

bot.sendMessage({
chat_id: env.tg_chatId,
text: meeting_msg
})

send({from:{first_name:'Admin'},text:meeting_msg});
send({from:{first_name:env.admin_name},text:meeting_msg});

}
});
Expand All @@ -184,13 +185,14 @@ function stopmeeting(from) {
} else {


var meeting_msg = strformat("The meeting that Admin started and chaired from %time% %date% has ended.\nYou can find the public logs of the meeting at %loglink%", {
var meeting_msg = strformat("The meeting that %admin_name% started and chaired from %time% %date% has ended.\nYou can find the public logs of the meeting at %loglink%", {
time:meeting_time ,
date: meeting_date,
loglink:meeting_logs
loglink:meeting_logs,
admin_name:env.admin_name
});

send({from:{first_name:'Admin'},text:meeting_msg});
send({from:{first_name:env.admin_name},text:meeting_msg});

bot.sendMessage({
chat_id: env.tg_chatId,
Expand Down

0 comments on commit eb22b16

Please sign in to comment.