ASEAN-Build-The-Earth / Merlion

ASEAN BTE : Merlion Discord bot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ASEAN BTE MERLION DISCORD BOT

Asean BTE Merlion Discord bot

Build Status Known Vulnerabilities GitHub license

For Contributors please see Our Code Of Conduct and Our Contributing guide

Authors: Association of Southeast Asian Nations Build The Earth

This discord bot was originally made for Asean build the earth. Bot had many basic features such as. Getting covid data and getting info if a mc server is online or not


Guide

How to install this project?

Follow this steps
  1. clone this repository to your pc/laptop
  2. cd to the folder
  3. run npm ci, then npm start.

How to Config?

Follow this steps
1. for this repos only, you'll need to create your discord bot to test out the code. (to create add new bot at discord devs portal)
2. run npm ci, then npm start. to initialize project
3. see .env.example.js, create a copy of it with the name `.env`. and convert to .env syntax and fill the data listed
.env.example.js
const env = {
    // discord bot token 
    "TOKEN":"YOUR_BOT_TOKEN",
    
    // database auths
    "DB_USER":"USERNAME",
    "DB_PASS":"PASSWORD",
    "DB_NAME":"abase",
}

.env
# discord bot token 
TOKEN = tHIsiIexAMpLeDisCodEboT.TokEn
   
# database auths
DB_USER = Herbol
DB_PASS = iLovePizza
DB_NAME = MyDatabase
4. invite the bot to your private discord server or whatever
5. run the bot (by `node .` in the console)
6. now you can try out your bot's code and do any edit you want!

Requirements:

node.js V16.8.0 or above
npm V7.21.0 or above
discord.js V13.0.0 or above
requirements guide
  • for node.js check by nodejs -v / node -v
  • for discord.js check by npm list discord.js
  • to download node v16, go here
  • if your node is up to date now, update discord.js
  • to install discord.js v13, go here

Project Hierarchy

 /home/me/my-bot
 β”œβ”€ πŸ“assets
 β”œβ”€ πŸ“‚commands
 β”‚  └─ πŸ“category
 β”‚     └─ my_command.js
 β”‚
 β”œβ”€ πŸ“‚src
 β”‚  β”œβ”€ πŸ“data
 β”‚  β”œβ”€ πŸ“lib
 β”‚  β”œβ”€ πŸ“listeners
 β”‚  β”œβ”€ πŸ“preconditions
 β”‚  └─ index.js
 β”‚  
 β”œβ”€ πŸ“‚utility
 └─ πŸ”’package.json
Project Hierarchy Overview,
these folders shown should not be edited or moved

πŸ“assets

non-code storage folder

<wip>

πŸ“commands

discord interaction commands directory

<wip>

πŸ“src

directory of internal stuff

<wip>

πŸ“src/data

non-code storage folder

<wip>

πŸ“src/lib

utility library

<wip>

πŸ“src/listeners

global interaction manager

<wip>

πŸ“src/preconditions

command condition detector

<wip>

πŸ“utility

utility function/logic

<wip>


Our Social Medias

Join our discord! here

See our Instragram here

See our Youtube here


Q and A

Who we are?

  • Developer team of ASEAN BTE Discord

What even is Asean BTE

What is this

  • We develop discord bot named Merlion here. This bot helps organize the discord server and such

Why should I help

  • We need help ;w;

πŸ§‘β€πŸ€β€πŸ§‘ Contributors



Also dont forget to star this repo :> 🌟

About

ASEAN BTE : Merlion Discord bot

License:MIT License


Languages

Language:JavaScript 100.0%