Skip to content

Commit

Permalink
fix currency env variable for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
NiclasEgeler committed Aug 31, 2021
1 parent 132ead6 commit e629c29
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { env, log, startBot } from "./deps.ts";
import { handlers } from "./src/commands/event_handlers.ts";
import { getRate } from "./src/data/currency.ts";

// configure logger
await log.setup({
Expand Down
2 changes: 1 addition & 1 deletion src/data/currency.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Currency, CurrencyTime } from "../types/currency.ts";
import type { Currency } from "../types/currency.ts";
import { endpoint } from "../utils/endpoints.ts";
import { rest } from "../utils/rest.ts";

Expand Down
2 changes: 1 addition & 1 deletion src/data/stock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export async function tickSymbols(
ret.push(
await mapToStockModel(
info,
await getRate(info.currency, Deno.env.get("currency")!),
await getRate(info.currency, Deno.env.get("CURRENCY")!),
),
);
}
Expand Down
2 changes: 0 additions & 2 deletions src/discord/discord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ export let discord = {
},
};

// todo: implement!

async function createNewMessages(contents: string[]) {
var messages = await storage.discord.getMessages();
for (var i = messages.length; i < contents.length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion src/stock_ticker.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { log } from "../deps.ts";
import { tickSymbols, validateSymbol } from "./data/stock.ts";
import { tickSymbols } from "./data/stock.ts";
import { discord } from "./discord/discord.ts";
import { storage } from "./storage/storage.ts";
import { formatStocksInChunks } from "./utils/formatter.ts";
Expand Down

0 comments on commit e629c29

Please sign in to comment.