Skip to content

Commit

Permalink
Updating based on errors we were getting from Google translate: https…
Browse files Browse the repository at this point in the history
  • Loading branch information
lukestokes committed Jan 15, 2019
1 parent 44587b4 commit 62e9153
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const tlcfg = require("./config.json")
const fs = require("fs")
const Eris = require("eris")
const OS = require("os")
const translate = require("google-translate-api")
const translate = require("@vitalets/google-translate-api")
const lang = require("./langs.json")
const bot = new Eris(tlcfg.token, { maxShards: "auto", getAllUsers: true })
const prefix = tlcfg.prefix;
Expand Down Expand Up @@ -354,4 +354,4 @@ bot.connect()

// Uncaught error handling
process.on("unhandledRejection", e => { console.log(`unhandledRejection\n${e.stack}`) })
process.on("uncaughtException", e => { console.log(`uncaughtException\n${e.stack}`) })
process.on("uncaughtException", e => { console.log(`uncaughtException\n${e.stack}`) })
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"eris": "^0.7.2",
"flipout": "^1.0.0",
"gizoogle": "0.0.6",
"google-translate-api": "^2.3.0",
"@vitalets/google-translate-api": "^2.3.0",
"japanese": "^1.2.0",
"kpop": "^0.1.2",
"os-toolbox": "^0.2.9",
Expand Down

0 comments on commit 62e9153

Please sign in to comment.