Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xxgicoxx/devtools-bot

Serverless Telegram bot for development tools.
https://github.com/xxgicoxx/devtools-bot

development devtools serverless tools vercel vercel-serverless

Last synced: 6 days ago
JSON representation

Serverless Telegram bot for development tools.

Awesome Lists containing this project

README

        

# DevTools Bot
Serverless Telegram bot for development tools.



# Features
* /bcrypt `text` - Text to bcrypt hash
* /binary `text` - Text to binary
* /hex `text` - HEX to ASCII
* /md5 `text` - Text to MD5 hash
* /short `url` - Short url
* /slug `text` - Slug text
* /uuid - Generate UUID
* /help - Help

# Prerequisites
* [Node.js](https://nodejs.org/en/)

# Running
### 1. Telegram
````
# Create an Telegram bot
Find @BotFather on Telegram, type /newbot and follow the instructions.

# Credentials
Save your token from @BotFather.
````

### 2. Vercel Deploy
````
# Account
Create an Vercel account on https://vercel.com/.

# Install Vercel CLI
npm install -g vercel

# Vercel CLI login
vercel login

# Deploy
vercel

# Set Vercel environment variables
TELEGRAM_USERNAME
TELEGRAM_TOKEN
````

### 3. Setting up the Telegram webhook
````
curl --location --request POST https://api.telegram.org/bot/setWebhook --header 'Content-type: application/json' --data '{"url": "https://project-name.username.vercel.app/api/webhook"}'
````

# Built With
* [Node.js](https://nodejs.org/en/)

# Authors
* [xxgicoxx](https://github.com/xxgicoxx/)

# Acknowledgments
* [FlatIcon](https://www.flaticon.com/)