Skip to content

Commit

Permalink
fix: correct language controller
Browse files Browse the repository at this point in the history
  • Loading branch information
fengkx committed Jul 11, 2019
1 parent 04b7a59 commit 5087460
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions controlers/language.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const USERS = require('./proxies/users');
const i18n = require('./i18n');
const USERS = require('../proxies/users');
const i18n = require('../i18n');

exports.replyKeyboard = async (ctx, next) => {
const kbs = Object.keys(i18n).map((i) => {
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const send = require('./utils/send');
const logger = require('./utils/logger');
const errors = require('./utils/errors');
const i18n = require('./i18n');
const LANG = require('./proxies/users');
const LANG = require('./controlers/language');
const {
token,
view_all,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "noderssbot",
"version": "0.2.1",
"version": "0.2.2",
"description": "Another Telegram RSSBot in Node.js",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 5087460

Please sign in to comment.