GithubHelp home page GithubHelp logo

thatismunn / divya-bot Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 2.0 209 KB

Sebuah bot yang dapat menghandle automatisasi moderasi.

License: GNU Affero General Public License v3.0

Shell 0.09% TypeScript 91.54% JavaScript 8.37%

divya-bot's Introduction

Divya, the Awkward Girl!

Wanita imut yang sangat aneh, bahkan dibilang terlalu aneh untuk masuk di nalar umum.

Alat Perang

  1. NodeJS v13 ke atas
  2. Python v3.7 (set Pathnya ke npm config apabila perintah command di cmd kamu bukan python3 atau python)
  3. Apabila kamu pengguna Windows, kamu perlu menginstall windows-build-tools atau compiler C++ dari Visual Studio. Sedangkan apabila kamu pengguna Linux, kamu perlu menginstall CMake/Ninja dan GCC Compiler.
  4. node-gyp telah terinstall dalam NPM kamu secara global.

Cara Install

  1. Clone repository ini bagaimanapun cara ente.
  2. Pastikan alat perang sudah terinstall dengan sempurna.
  3. Install dependensi yang diperlukan dengan perintah:
$ npm install
  1. Setelah itu, buka folder Database, kemudian copy paste database-sample.db menjadi database.db.
  2. Keluar dari folder itu, kemudian kita impor data ke dalam database dengan perintah:
$ npm run migrate:down
$ npm run migrate:up

Alasan kenapa mesti di migrate down dikarenakan ada dummy table di dalam database-sample hasil fork dari template ini.

  1. Kemudian, kamu build terlebih dahulu botnya dengan perintah:
$ npm run build
  1. Kemudian, copy paste .env.example menjadi .env kemudian diisi dengan beberapa kriteria di bawah ini:
    Property Default Value Keterangan
    PRODUCTION DEV/SERVE Isi DEV kalau masih dalam pengembangan, sebaliknya isi SERVE
    TOKEN null Isi dengan token bot kamu
    TOKEN_DEV null Isi dengan token bot untuk developing kamu
    SAWERIA_ID null Tidak usah diisi, untuk saweria
  2. Jalankan botnya dengan perintah:
$ npm start

Ada beberapa perintah yang dapat membantu kamu dalam membuat bot ini, diantaranya adalah:

# Untuk build bot sambil ngoding
$ npm build:watch
# Sapa tau lu pake pm2
$ pm2 start executor.js --name "FeliceCore" -- npm start
# Untuk cek gaya nulisnya udah benar atau belum
$ npm run lint
# Kalau lu tau pake Jest, dah disediain kok
$ npm run test

Ada Pertanyaan?

Silahkan mampir ke #tech-corner, tanyakan pada user yang bernama Stellarz_Munn#4554 atau [ Ryuu ]#9611 untuk masalah bot ini.

(C) 2021 - PGB Creative, All rights reserved.

divya-bot's People

Contributors

ikr4-m avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mosyafik youkugo

divya-bot's Issues

Moderation::RoleModifier terlalu OP

Bug ini dilaporkan oleh Ven dan Piman dan disaksikan oleh beberapa Moderator.

Kronologi

Super Moderator bisa mengangkat dirinya menggunakan role yang lebih gede daripada dia.

Cara memproduksi

PM2 Possibility for Windows 10

Tadi malam Felice jatuh gara-gara salah satu orang yang bisa akses RDP (kemungkinan besar mas Wahyu soalnya lagi fix server Ragnarok Online).

Jadinya, nanti ini bot bakal bisa spawn Daemon pake PM2.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.