Giter Site home page Giter Site logo

clavaria-roleplay / bot Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 3.0 12.11 MB

Clavaria Roleplay Discord Bot and UCP systems, written in Python (NAFF)

License: GNU General Public License v2.0

Dockerfile 1.07% Procfile 0.06% Python 98.87%
dis-snek python sa-mp

bot's Introduction

Clavaria Helper Discord Bot

Discord server Build Production precommit-action Code style: black

Clavaria Roleplay Discord Server Bots & UCP System made with NAFF.

Kunjungi panduan resmi NAFF untuk memulai.

Features

  • Support Unity Roleplay Database Structure, so it can be used for all U:RP gamemodes.
  • Register UCP Account, only accept UCP name without spaces and underscore. Powered by Regex systems. (e.g. ✅ Firpanpus, and not ❌ Irpan_Maulidin)
  • Set Ingame Admin, straight from your discord server
  • check player stats, model KTP
  • Resend your verification code
  • Reset your own password
  • and more features to add, still wip though

Note:

Tidak disarankan untuk menjalankan repository ini secara langsung tanpa merubah codingan apapun (walaupun repository ini sudah Production Ready) karena repository ini telah didesign khusus hanya untuk Clavaria Roleplay. Repository ini dibuat publik hanya untuk media belajar/referensi.

Menjalankan Aplikasi

sebelum menjalankan aplikasi ini, buatlah satu file .env di folder root dan isi filenya menggunakan contoh berikut

PROJECT_NAME="Clavaria Helper"
LOAD_DEBUG_COMMANDS=true # untuk production ready, ganti value ini ke false
DISCORD_TOKEN="masukkan bot token anda disini, ambil di https://discord.com/developers/applications"
DATABASE_HOST="masukkan mysql database host kamu disini"
DATABASE_USER="masukkan username mysql kamu disini"
DATABASE_PASSWORD="masukkan password mysql kamu disini"
DATABASE_NAME="masukkan nama mysql database kamu disini"
IP="ip server kamu, support domain dan ip"
PORT="port server samp kamu"

Ada beberapa cara untuk menjalankan aplikasi ini.

Docker Compose

Repository ini sudah Docker Ready, anda hanya tinggal meng-pull container nya. Cek selengkapnya di halaman ini!

  • Pastikan Docker anda sudah terinstall versi terbaru!
  • Anda hanya butuh menjalankan command:
docker-compose up --detach

Manual Install

  • Download dan install Python versi terbaru (usahakan yg terbaru, jangan yang jadul)

WAJIB PAKE virtualenv, Please check python docs for more info!

saya anggap kalian sudah setup "virtualenv"
  • Install dependencies package nya menggunakan perintah ini
pip install -r ".\requirements.txt"
  • anda sudah siap menjalankan botnya. untuk menjalankan botnya, gunakan perintah ini
py main.py

Informasi Tambahan

Kami sudah siapkan konfigurasi pre-commit bawaan untuk merapihkan kodingan kalian.

Sangat direkomendasikan untuk menggunakan tool ini dengan menjalankan perintah berikut:

  1. pip install pre-commit
  2. pre-commit install

License

Seluruh source code ini menggunakan lisensi GNU GPL 2.0, Mohon mencantumkan Copyright notice saat anda menggunakan code ini!

Copyright ©️2022 Clemie McCartney (Sanity#0007). Licensed to Clavaria Roleplay.

bot's People

Contributors

gnztmpz avatar pre-commit-ci[bot] avatar sanityzeropercent avatar

Watchers

 avatar  avatar

Forkers

azfar7016 x6xav1

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.