Skip to content

Commit

Permalink
Add consts.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
smrsan committed Oct 31, 2021
1 parent 3f39e68 commit d31e442
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/consts.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// import shell from "shelljs";
import Telegram from "node-telegram-bot-api";

// Database
export const DB_HOST = "127.0.0.1";
/*
shell.exec("tail -1 /etc/resolv.conf | cut -d' ' -f2", {
silent: true,
}); // WSL Host IP
*/
export const DB_PORT = "27017";
export const DB_URL = `mongodb://${DB_HOST}:${DB_PORT}`;
export const DB_NAME = "botName";
export const DB_USERS_COL = "users";

// Telegram
export const BOT_TOKEN = "BOT_TOKEN";
export const BOT_USERNAME = "usernamebot";
export const ADMIN_CHAT_ID = "123456789";
export const bot = new Telegram(BOT_TOKEN, {
polling: true,
// webHook: true
});

0 comments on commit d31e442

Please sign in to comment.