Mulai

Beberapa langkah sederhana untuk memulai dengan EFB.

Pasang EH Forwarder Bot

EH Forwarder Bot dapat dipasang dengan cara berikut:

Pasang dari PyPI

`` pip`` secara default akan memasang versi stabil terbaru dari PyPI, namun versi pengembangannya tersedia di PyPI juga.

pip3 install ehforwarderbot

Pasang dari GitHub

Ini akan memasang komit terbaru dari GitHub. Kemungkinan tidak stabil, jadi lanjutkan dengan hati-hati.

pip3 install git+https://github.com/ehForwarderBot/ehforwarderbot.git

Alternative installation methods

You can find a list of alternative installation methods contributed by the community in the project wiki.

For scripts, containers (e.g. Docker), etc. that may include one or more external modules, please visit the modules repository.

Catatan

These alternative installation methods are maintained by the community, please consult their respective author or maintainer for help related to those methods.

A stable internet connection

Since the majority of our channels are using polling for message retrieval, a stable internet connection is necessary for channels to run smoothly. An unstable connection may lead to slow response, or loss of messages.

Buat direktori lokal

EFB menggunakan *nix pengguna konfigurasi gaya, yang dijelaskan secara detail di Direktori. Singkatnya, jika anda menggunakan konfigurasi default, anda perlu membuat ~/.ehforwarderbot, dan memberikan membaca dan izin menulis untuk pengguna yang menjalankan EFB.

Pilih, pasang dan aktifkan modul

Currently, all modules that was submitted to us are recorded in the modules repository. You can choose the channels that fits your need the best.

Petunjuk tentang pemasangan setiap saluran tersedia di dokumentasi mereka masing-masing.

Set up with the configuration wizard

When you have successfully installed the modules of your choices, you can the use the configuration wizard which guides you to enable channels and middlewares, and continue to setup those modules if they also have provided a similar wizard.

You can start the wizard by running the following command in a compatible console or terminal emulator:

efb-wizard

If you want to start the wizard of a module for a profile individually, run:

efb-wizard -p <profile name> -m <module ID>

Set up manually

Alternatively, you can enable those modules manually it by listing its Channel ID in the configuration file. The default path is ~/.ehforwarderbot/profiles/default/config.yaml. Please refer to Direktori if you have configured otherwise.

Harap dicatat bahwa meskipun anda dapat memiliki lebih dari satu saluran budak yang berjalan pada saat yang sama, anda hanya dapat memiliki satu saluran utama yang berjalan dalam satu profil. Sementara itu, middlewares benar-benar opsional.

For example, to enable the following modules:

  • Saluran utama
    • Demo Master ('' foo.demo_master'')

  • Saluran Slave
    • Demo Slave (foo.demo_slave)

    • Dummy Slave (bar.dummy)

  • Middlewares
    • Null Middleware ('' foo.null'')

config.yaml should have the following lines:

master_channel: foo.demo_master
slave_channels:
- foo.demo_slave
- bar.dummy
middlewares:
- foo.null

If you have enabled modules manually, you might also need configure each module manually too. Please consult the documentation of each module for instructions.

Luncurkan EFB

ehforwarderbot

Ini akan meluncurkan EFB langsung dalam lingkungan saat ini. Default :doc:'profil' yang bernama '' default'', untuk memulai EFB di profil yang berbeda, menambahkan ''--profil <profile-name>'' ke perintah.

Untuk opsi baris perintah yang lain, menggunakan ''--membantu '' pilihan.

Use EFB in another language

EFB supports translated user interface and prompts. You can set your system language or locale environmental variables (LANGUAGE, LC_ALL, LC_MESSAGES or LANG) to one of our supported languages to switch language.

You can help to translate this project into your languages on our Crowdin page.

Catatan

If your are installing from source code, you will not get translations of the user interface without manual compile of message catalogs (.mo) prior to installation.

Meluncurkan EFB sebagai proses daemon

Semenjak versi 2, EH Forwarder Bot telah menghapus daemon helper karena tidak stabil penggunaannya. Kami menyarankan anda untuk menggunakan solusi yang baik untuk pengelolaan daemon, seperti systemd, upstart, atau pm2.