We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3316eac commit 2a6ff9eCopy full SHA for 2a6ff9e
1 file changed
main.js
@@ -44,7 +44,7 @@ const endpoints = {
44
bot.use((ctx, next) => {
45
if (!ctx.session) {
46
console.clear();
47
- visited[ctx.session.lang] += 1;
+ visited[ctx.session.lang.name] += 1;
48
for (const [lang, count] of Object.entries(visited)) {
49
console.log(`${lang}: ${count}`);
50
}
@@ -61,7 +61,7 @@ const endpoints = {
61
command: 'start',
62
action: async (ctx) => {
63
64
65
66
67
0 commit comments