Remove bot files

This commit is contained in:
RomanDoroshenko 2026-10-06 11:18:45 +00:00
parent 647b77a587
commit 45a6cedfc1
3 changed files with 0 additions and 25 deletions

4
.gitignore vendored
View File

@ -1,4 +0,0 @@
node_modules/
.env
.vibe42-run.log
.vibe42-run.pid

13
bot.js
View File

@ -1,13 +0,0 @@
const { Bot } = require('grammy');
// Токен берётся из переменной окружения BOT_TOKEN (файл .env)
const bot = new Bot(process.env.BOT_TOKEN);
bot.command('start', (ctx) => ctx.reply('Привет! Я бот. Напиши мне что-нибудь.'));
bot.on('message:text', (ctx) => {
ctx.reply('Ты написал: ' + ctx.message.text);
});
bot.start();
console.log('Бот запущен (long‑polling)');

View File

@ -1,8 +0,0 @@
{
"name": "bot",
"private": true,
"type": "commonjs",
"scripts": {
"start": "node --env-file=.env bot.js"
}
}