Skip to content

Commit 02a0f88

Browse files
committed
chore: Rename CMCOP to Code Module Cop and update references throughout the project
1 parent 32db900 commit 02a0f88

5 files changed

Lines changed: 22 additions & 21 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,23 @@ jobs:
2525
run: npm install
2626

2727
- name: Build Docker image
28-
run: docker build -t cmcop-bot .
28+
run: docker build -t cop .
2929

3030
- name: Log in to Docker Hub
3131
uses: docker/login-action@v2
3232
with:
3333
username: ${{ secrets.DOCKER_USERNAME }}
34-
password: ${{ secrets.DOCKER_PASSWORD }}
34+
password: ${{ secrets.DOCKER_TOKEN }}
3535

3636
- name: Tag Docker image
3737
run: |
38-
docker tag cmcop-bot ${{ secrets.DOCKER_USERNAME }}/cmcop-bot:latest
39-
docker tag cmcop-bot ${{ secrets.DOCKER_USERNAME }}/cmcop-bot:${{ github.sha }}
38+
docker tag cop ${{ secrets.DOCKER_USERNAME }}/cop:latest
39+
docker tag cop ${{ secrets.DOCKER_USERNAME }}/cop:${{ github.sha }}
4040
4141
- name: Push Docker image
4242
run: |
43-
docker push ${{ secrets.DOCKER_USERNAME }}/cmcop-bot:latest
44-
docker push ${{ secrets.DOCKER_USERNAME }}/cmcop-bot:${{ github.sha }}
43+
docker push ${{ secrets.DOCKER_USERNAME }}/cop:latest
44+
docker push ${{ secrets.DOCKER_USERNAME }}/cop:${{ github.sha }}
4545
4646
- name: Clean up
4747
run: docker system prune -f

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# CMCOP - Telegram Group Management Bot
1+
# Code Module Cop - Telegram Group Management Bot
22

3-
[![Telegram](https://img.shields.io/badge/Telegram-Join%20Chat-blue)](https://t.me/CMCOP)
3+
[![Telegram](https://img.shields.io/badge/Telegram-Join%20Chat-blue)](https://t.me/cmcopbot)
44

5-
CMCOP is a powerful and flexible group management bot for Telegram and a dedicated [CodeModule](https://t.me/CodeModule) bot designed to help admins manage and moderate their groups effectively. This bot offers various features including welcome messages, role management, auto replies, and more.
5+
Code Module Cop is a powerful and flexible group management bot for Telegram and a dedicated [CodeModule](https://t.me/CodeModule) bot designed to help admins manage and moderate their groups effectively. This bot offers various features including welcome messages, role management, auto replies, and more.
66

77
## Features
88

@@ -27,7 +27,7 @@ CMCOP is a powerful and flexible group management bot for Telegram and a dedicat
2727
1. Clone the repository:
2828

2929
```bash
30-
git clone https://github.com/m-mdy-m/CMCOP.git
30+
git clone https://github.com/CodeModule-ir/cop.git
3131
cd cmcop
3232
```
3333

docker-compose.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ version: '3.8'
33
services:
44
bot:
55
build: .
6-
container_name: cmcop-bot
6+
container_name: cop
77
env_file:
88
- .env
99
depends_on:
1010
- db
1111
networks:
12-
- cmcop-net
12+
- cop-net
1313
restart: unless-stopped
1414

1515
db:
1616
image: mariadb:10.5
17-
container_name: cmcop-db
17+
container_name: cop-db
1818
environment:
1919
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
2020
MYSQL_DATABASE: ${DB_NAME}
@@ -23,11 +23,11 @@ services:
2323
volumes:
2424
- db-data:/var/lib/mysql
2525
networks:
26-
- cmcop-net
26+
- cop-net
2727
restart: unless-stopped
2828

2929
volumes:
3030
db-data:
3131

3232
networks:
33-
cmcop-net:
33+
cop-net:

docs/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Thank you for your interest in contributing to the [CodeModule](https://t.me/Cod
1717
1. **Fork the Repository:** Click the "Fork" button at the top right corner of the repository page on GitHub to create a personal copy of the repository.
1818
2. **Clone Your Fork:** Clone the repository to your local machine using the following command:
1919
```sh
20-
git clone https://github.com/m-mdy-m/CMCOP.git
20+
git clone https://github.com/CodeModule-ir/cop.git
2121
```
2222
3. **Set Up Your Environment:**
2323
- Ensure you have [Node.js](https://nodejs.org/) installed.

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "cmcop",
2+
"name": "cop",
33
"version": "1.0.0",
44
"description": "A Telegram bot for managing Telegram groups",
55
"main": "/src/app.js",
@@ -23,21 +23,22 @@
2323
},
2424
"repository": {
2525
"type": "git",
26-
"url": "git+https://github.com/m-mdy-m/CMCOP.git"
26+
"url": "git+https://github.com/CodeModule-ir/cop.git"
2727
},
2828
"keywords": [
29-
"CMCOP",
29+
"CodeModule",
30+
"Bot",
3031
"telegram-bot"
3132
],
3233
"author": "mahdi",
3334
"license": "MIT",
3435
"bugs": {
35-
"url": "https://github.com/m-mdy-m/CMCOP/issues"
36+
"url": "https://github.com/CodeModule-ir/cop/issues"
3637
},
3738
"engines": {
3839
"node": ">=20.0.0"
3940
},
40-
"homepage": "https://github.com/m-mdy-m/CMCOP#readme",
41+
"homepage": "https://github.com/CodeModule-ir/cop#readme",
4142
"dependencies": {
4243
"grammy": "^1.27.0",
4344
"mysql2": "^3.11.0",

0 commit comments

Comments
 (0)