Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shiyinq/anonim-chat
🎠Anonymously chat with a stranger.
https://github.com/shiyinq/anonim-chat
anon-chat anonim-chat anonymous-chat bot telegram-bot
Last synced: about 9 hours ago
JSON representation
🎠Anonymously chat with a stranger.
- Host: GitHub
- URL: https://github.com/shiyinq/anonim-chat
- Owner: Shiyinq
- License: gpl-3.0
- Created: 2021-06-22T06:45:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-18T03:05:15.000Z (3 months ago)
- Last Synced: 2024-08-18T13:06:17.846Z (3 months ago)
- Topics: anon-chat, anonim-chat, anonymous-chat, bot, telegram-bot
- Language: JavaScript
- Homepage:
- Size: 1.39 MB
- Stars: 43
- Watchers: 2
- Forks: 27
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# anonim-chat
[![GitHub top language](https://img.shields.io/github/languages/top/Shiyinq/anonim-chat)](https://github.com/Shiyinq/anonim-chat)
![GitHub repo size](https://img.shields.io/github/repo-size/Shiyinq/anonim-chat)
![GitHub last commit](https://img.shields.io/github/last-commit/Shiyinq/anonim-chat)
![GitHub commit activity](https://img.shields.io/github/commit-activity/w/Shiyinq/anonim-chat)| ![anonim-chat-1](docs/images/anonim-chat-1.png) | ![anonim-chat-2](docs/images/anonim-chat-2.png) | ![anonim-chat-3](docs/images/anonim-chat-3.png) |
|:---:|:---:|:---:|Anonymously chat with a stranger.
## Table of Contents
- [anonim-chat](#anonim-chat)
- [Table of Contents](#table-of-contents)
- [Requirements](#requirements)
- [Development](#development)
- [Deployment](#deployment)## Requirements
- Node JS v20.10.0
- NPM v10.2.3
- nodemon lates
- MongoDB v5## Development
Clone and install dependencies.**1. Clone this repository**
```
git clone https://github.com/Shiyinq/anonim-chat.git
```
**2. Navigate to the project directory**```bash
cd anonim-chat
```
**3. Install dependencies**```bash
npm install
```**4. Create `.env` file**
```base
cp .env.example .env
```**5. Fill the `BOT_TOKEN`**
you can get token from [@BotFather](https://t.me/botfather)
**6. Run the bot script**
```bash
npm run dev
```**7. Test your bot**
- Open Telegram and find the bot you created with @BotFather.
- Start a conversation with your bot to ensure it's responding correctly.
- For a more comprehensive test:
- Use two different Telegram accounts.
- Simulate a conversation between a user and your bot.## Deployment
Before you begin, ensure you have [Docker](https://docs.docker.com/engine/install/) installed.**1. Clone the repository**
```bash
git clone https://github.com/Shiyinq/anonim-chat.git
cd anonim-chat
```**2. Create environment files**
```bash
cp .env.example .env
```Open `.env` file you have created and update the values.
**3. Build and run the Docker containers**
```bash
docker compose up --build -d
```
Wait a few minutes for the setup to complete, bot running on http://localhost:8080.