Shellia/README.md

92 lines
2.6 KiB
Markdown
Raw Normal View History

2022-08-21 08:11:24 +07:00
# Shellia
2022-08-21 08:44:47 +07:00
Telegram bot shell exec / commandline untuk mengelola remote server.
2022-08-21 09:10:00 +07:00
Pastikan sudah punya Telegram Bot. Kalau belum, chat [BotFather](https://t.me/BotFather) untuk membuat bot.
Simpan TOKEN HTTP API bot yang sudah kamu buat.
Kemudian cek ID User akun Telegram kamu untuk mendapatkan akses administrator bot. Untuk mendapatkan ID kamu dapat chat [IDBot](https://t.me/myidbot).
2022-08-21 08:30:34 +07:00
# Teknologi
Teknologi yang digunakan:
2022-08-21 09:02:40 +07:00
![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54) ![JavaScript](https://img.shields.io/badge/javascript-%23323330.svg?style=for-the-badge&logo=javascript&logoColor=%23F7DF1E) ![NPM](https://img.shields.io/badge/NPM-%23000000.svg?style=for-the-badge&logo=npm&logoColor=white) ![NodeJS](https://img.shields.io/badge/node.js-6DA55F?style=for-the-badge&logo=node.js&logoColor=white) ![Shell Script](https://img.shields.io/badge/shell_script-%23121011.svg?style=for-the-badge&logo=gnu-bash&logoColor=white)
2022-08-21 08:30:34 +07:00
Output:
![Telegram Bot](https://img.shields.io/badge/Telegram-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white)
2022-08-21 09:02:40 +07:00
# Cara Install
![Debian](https://img.shields.io/badge/Debian-D70A53?style=for-the-badge&logo=debian&logoColor=white) ![Ubuntu](https://img.shields.io/badge/Ubuntu-E95420?style=for-the-badge&logo=ubuntu&logoColor=white)
## Debian/Ubuntu distro
Install [node-pty dependencies](https://github.com/Microsoft/node-pty#dependencies).
~~~
sudo apt install -y make python build-essential
~~~
Install NPM
~~~
sudo apt install npm
~~~
Install PM2 untuk menjalankan Node server secara no-down-time
~~~
npm install pm2 -g
~~~
![Red Hat](https://img.shields.io/badge/Red%20Hat-EE0000?style=for-the-badge&logo=redhat&logoColor=white) ![Fedora](https://img.shields.io/badge/Fedora-294172?style=for-the-badge&logo=fedora&logoColor=white) ![Rocky Linux](https://img.shields.io/badge/-Rocky%20Linux-%2310B981?style=for-the-badge&logo=rockylinux&logoColor=white)
## RedHat/Fedora/Rocky distro
Install [node-pty dependencies](https://github.com/Microsoft/node-pty#dependencies).
~~~
sudo dnf install -y python
sudo dnf group install -y "C Development Tools and Libraries"
~~~
Install NPM
~~~
sudo dnf install npm
~~~
Install PM2 untuk menjalankan Node server secara no-down-time
~~~
npm install pm2 -g
~~~
## Clone & Start bot
Clone dan jalankan bot pada server
~~~
git clone https://gitea.unej.ac.id/techies/Shellia.git && cd shell-bot
npm install
~~~
Jalankan bot
~~~
node server
~~~
Jalankan bot secara no-down-time
~~~
pm2 startup
pm2 start server.js
~~~
# Orig
2022-08-21 08:30:34 +07:00
![Gitea](https://img.shields.io/badge/Gitea-34495E?style=for-the-badge&logo=gitea&logoColor=5D9425)