Skip to content

Commit 67b8442

Browse files
committed
Add TRUNCATE_EXISTING to the quotes writer
1 parent 9f82197 commit 67b8442

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/commander/java/com/mcmoddev/mmdbot/commander/quotes/Quotes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ private static void syncQuotes() {
191191
loadQuotes();
192192
}
193193
final var db = VersionedDatabase.inMemory(CURRENT_SCHEMA_VERSION, quotes);
194-
try (final var writer = Files.newBufferedWriter(QUOTE_STORAGE.get(), StandardCharsets.UTF_8, StandardOpenOption.CREATE)) {
194+
try (final var writer = Files.newBufferedWriter(QUOTE_STORAGE.get(), StandardCharsets.UTF_8)) {
195195
GSON.toJson(db.toJson(GSON), writer);
196196
} catch (Exception exception) {
197197
TheCommander.LOGGER.error("Failed to write quote file...", exception);

src/listener/java/com/mcmoddev/mmdbot/thelistener/TheListener.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
import java.util.concurrent.Executor;
5454
import java.util.concurrent.Executors;
5555

56+
// TODO move to JDA
5657
public final class TheListener implements Bot {
5758

5859
public static final Logger LOGGER = LoggerFactory.getLogger("TheListener");

0 commit comments

Comments
 (0)