From 7ce44633b5bf53d4a2fa50c8da6718af0765f9c2 Mon Sep 17 00:00:00 2001 From: Andrew Carpenter Date: Tue, 24 Oct 2017 22:58:05 -0400 Subject: [PATCH] I promise I tested the cli this time first :\ --- index.js | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 0e28943..f39e095 100644 --- a/index.js +++ b/index.js @@ -4,8 +4,9 @@ const tts = require('google-tts-api') const { get } = require('axios') const { escape } = require('validator') +const { resolve } = require('path') const { readFileSync } = require('fs') -const eafd = readFileSync(`audio/eafd.mp3`) +const eafd = readFileSync(resolve(__dirname, `audio`, `eafd.mp3`)) module.exports = async (name) => { let url = await tts(escape(name), `en`, 1) diff --git a/package.json b/package.json index 47797d8..18d83ad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eafd", - "version": "1.1.0", + "version": "1.2.0", "description": "\"Enter name here\" can eat a fat, um, turkey", "main": "index.js", "files": ["index.js", "cli.js", "audio/eafd.mp3"],