1
1
mirror of https://gitlab.com/ceda_ei/Quadnite-Bot synced 2025-10-29 00:00:05 +01:00

Compare commits

..

3 Commits

Author SHA1 Message Date
e4311467b3 Fix wrong date in /info 2019-02-14 20:01:02 +05:30
bd2f38679c Add /start 2019-02-14 19:00:19 +05:30
59e8db799a Merge branch 'node_port' into 'master'
Node port

See merge request ceda_ei/Quadnite-Bot!3
2019-02-14 13:16:28 +00:00
2 changed files with 4 additions and 1 deletions

View File

@@ -60,5 +60,8 @@ module.exports = (bot, [ questions, kys, insults, commands_list, words ],
"https://wiki.archlinux.org/api.php")(ctx).then(x => ctx.reply(x,
{parse_mode: "HTML"})));
bot.command("info", (ctx) => ctx.reply(info()(ctx), {parse_mode: "Markdown"}));
bot.command("start", (ctx) => ctx.reply("Hi, I am Quadnite. If you are "
+ "chatting with me in private, you are most likely doing it wrong. "
+ "Add me to a group for fun. To give feedback, use /feedback"));
};

View File

@@ -24,7 +24,7 @@ module.exports = () => (ctx) => {
text += "Channel ID: ";
text += `\`${forward.id}\`\n`;
text += "Message Date: `";
const date = new Date(reply.forward_date);
const date = new Date(reply.forward_date*1000);
text += date.toUTCString();
text += "`";