View Single Post
Author Message
HirboSH
Junior Member
Join Date: Sep 2020
Location: Israel, Lod.
Old 11-02-2020 , 18:43   [SourcePawn/JS] Admin Applications
Reply With Quote #1

Applications

Introduction

A plugin that allows easier submission of applications to be one of the server's Admin, built into the game. All the answers stored at your own DB. [Discord bot included, the bot gives you the option to manage the applications easily];

Usage

Plugin Usage

sm_applications | sm_application | sm_apps;

Start a new application, then click the question you want to answer.

When you finish all the 6 questions, the application will be stored in your DB.


NOTE : In the DB qurey i set the column PlayerID to be ``UNIQUE``. It means that a player can apply an application only 1 time. [If the application gets declined, the player will be able to apply again];

Bot Usage

Run the bot.

Execute - YOUR_PREFIXhelp. [You can change the PRERFIX in .env file];

NOTE : The bot's goal is to make review the applications in a easier way.

!accept <Application_ID> will accept the application, send a message to a channel that you pre-set. (remember in .env file, CHANNEL?);
!decline <Application_ID> will decline the application.

NOTE : In both commands accept and decline the application will be deleted automatically.


Cvars

name, defualt value, description

1. sm_applications_timer_enabled - 1, Enable or disable plugin timer (A reminder for applying to be an Admin), [Default = 1 / Enbaled]

2. sm_applications_prefix - [Simple Applications], Set the plugin prefix. [Default = 'Simple Applications'];

Built With

Plugin

1. SourceMod + SDKTools - v1.10 - build 6499 https://www.sourcemod.net

Bot

1. Discord.js - v12.3.1; https://discord.js.org

2. DotENV - v8.2.0; https://www.npmjs.com/package/dotenv

3. Fs - v0.0.1-security; https://www.npmjs.com/package/fs

4. MySQL - v2.18.1; https://www.npmjs.com/package/mysql

5. Path - v0.12.7; https://www.npmjs.com/package/path


<3

You can find the full guide at the README file in the Github repo.

Github Repo : https://github.com/HirboSH/easy-admin-applications

Last edited by HirboSH; 03-19-2021 at 21:07.
HirboSH is offline