From 5bab3d968c7f58c7c4826e0d25eef9bd895b626e Mon Sep 17 00:00:00 2001 From: Gil Lohner Date: Sun, 6 Oct 2024 22:57:29 +0200 Subject: [PATCH] folder strucuture bot --- commands.js => bot/commands.js | 0 config.js => bot/config.js | 0 handlers/meetupHandlers/meetupDisplayingHandler.js | 2 +- handlers/meetupHandlers/meetupSuggestionHandler.js | 2 +- utils/nostrUtils.js | 2 +- 5 files changed, 3 insertions(+), 3 deletions(-) rename commands.js => bot/commands.js (100%) rename config.js => bot/config.js (100%) diff --git a/commands.js b/bot/commands.js similarity index 100% rename from commands.js rename to bot/commands.js diff --git a/config.js b/bot/config.js similarity index 100% rename from config.js rename to bot/config.js diff --git a/handlers/meetupHandlers/meetupDisplayingHandler.js b/handlers/meetupHandlers/meetupDisplayingHandler.js index b54b17f..a3a3c66 100644 --- a/handlers/meetupHandlers/meetupDisplayingHandler.js +++ b/handlers/meetupHandlers/meetupDisplayingHandler.js @@ -1,5 +1,5 @@ import userStates from "../../userStates.js"; -import config from '../../config.js'; +import config from '../../bot/config.js'; import { extractTelegramUsername, formatLocation, diff --git a/handlers/meetupHandlers/meetupSuggestionHandler.js b/handlers/meetupHandlers/meetupSuggestionHandler.js index 0f16221..5a2ea96 100644 --- a/handlers/meetupHandlers/meetupSuggestionHandler.js +++ b/handlers/meetupHandlers/meetupSuggestionHandler.js @@ -7,7 +7,7 @@ import { import { fetchLocationData } from '../../nominatim.js' -import config from '../../config.js'; +import config from '../../bot/config.js'; import userStates from '../../userStates.js' const handleMeetupSuggestion = (bot, msg) => { diff --git a/utils/nostrUtils.js b/utils/nostrUtils.js index 976cf3f..e152947 100644 --- a/utils/nostrUtils.js +++ b/utils/nostrUtils.js @@ -8,7 +8,7 @@ import { getPublicKey, nip19 } from 'nostr-tools'; -import config from '../config.js'; +import config from '../bot/config.js'; const sha256 = (data) => crypto.createHash('sha256').update(data).digest('hex');