From 72752c0ca3bc85ac9858686264767bfa69029b52 Mon Sep 17 00:00:00 2001 From: Martin Donkersloot Date: Tue, 15 Aug 2017 19:48:17 +0200 Subject: [PATCH] Set version to 1.3.1, moved releases.json from data to root. --- package.json | 2 +- data/releases.json => releases.json | 0 src/util/file-io.ts | 6 +----- 3 files changed, 2 insertions(+), 6 deletions(-) rename data/releases.json => releases.json (100%) diff --git a/package.json b/package.json index af13b3f..5e18b55 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dank-times-bot", - "version": "1.3.0", + "version": "1.3.1", "description": "This Telegram bot keeps track of 'dank' times such as 13:37 and 04:20, and awards points to users who call them out.", "main": "built/main.js", "scripts": { diff --git a/data/releases.json b/releases.json similarity index 100% rename from data/releases.json rename to releases.json diff --git a/src/util/file-io.ts b/src/util/file-io.ts index 7aa8c79..1fa15ca 100644 --- a/src/util/file-io.ts +++ b/src/util/file-io.ts @@ -1,7 +1,3 @@ -/** - * Exposes file I/O related functions for DankTimesBot. - */ - import * as fs from "fs"; import { BasicChat } from "../chat/basic-chat"; import { Chat } from "../chat/chat"; @@ -14,7 +10,7 @@ const backupFile = dataFolder + "/backup.json"; const configFile = dataFolder + "/config.json"; // settings.json is deprecated, using config.json instead. Here for backwards compatibility. const settingsFile = dataFolder + "/settings.json"; -const releasesFile = dataFolder + "/releases.json"; +const releasesFile = "./releases.json"; const apiKeyEnvKey = "DANK_TIMES_BOT_API_KEY"; const jsonIndentation = 2;