Skip to content

skrwo/wikiukbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

33 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

@wikiukbot - A telegram bot to search the Ukrainian Wikipedia in inline mode

A very simple project was made in a hour just because I did not find something for it.

It is written in Node.js (ESM, that is why .mjs file extension) using grammY as a Telegram Bot API client.

Setup

Firstly, you need to register your bot on Telegram, using @BotFather

You also need a Node.js [>=20.12.0 due to process.loadEnvFile()] runtime for JavaScript

(It does not work with Deno due to process.loadEnvFile() and I have no clue if it works with Bun, so let me know if it does)

Using VPS or your local machine:

1. Clone the repository

git clone https://github.com/skrwo/wikiukbot
cd wikiukbot

2. Set up the environment variables

See .env.example file. You can either fill .env file or set the actual environment variables

3. Install dependencies

Using Node.js with npm: npm i

4. Run the bot

Using Node.js with npm: npm run start

Deploy with Vercel serverless functions:

1. Select this github repository, clone it

Deployment will fail because vercel does not allow you to configure your project at this step

2. Go to project settings

3. Set the root directory to src

4. Set the environment variables

Key Value
TELEGRAM_TOKEN Your telegram bot token here

5. Go to deployments & redeploy

About

๐Ÿ” Search Ukrainian Wiki quickly in Telegram

Topics

Resources

License

Stars

Watchers

Forks