Skip to content

A Discord bot base generator for multiple programming languages

License

Notifications You must be signed in to change notification settings

elegantlyclandestine/dcbotfactory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Discord Bot Factory

Generate your Discord bot's base with all your desired functions at the ready

Features

  • Easily make a base for your Discord bot with CLI or config file
  • Base commands are included by default
    • If you want a bot from scratch, pass scratch on base_user_functions
      and none on base_bg_functions and external_packages
  • Multiple choices for pre-written user-side interactions:
    • Bot maintenance comfort functions
      (redeploy if C++, restart if TS/JS or Python, debug, etc.)
    • Server management (roles, channels, etc.)
    • Member management (ban, kick, timeout, etc.)
    • Fun & games (economy and related)
    • Alternate reality game (Enigma-like puzzle capabilities)
  • Multiple choices for pre-written background interactions:
    • File management
    • Update via Git pull (connected to bot maintenance)
    • SQL database management via SQLite
    • Engagement logging (message, voice chat, etc.)
    • Watchdog (in case of any suspicious users)
  • Add external packages for DBF to include in your bot base
  • Bot bases available in multiple programming languages that have a Discord wrapper/library

How to use

There are two ways you can use DBF.

Command line

You can make your base directly from the command-line application by executing it without options like so:

dbf

This brings up a setup prompt asking you for certain things related to your bot. Fill those in, and it should generate a new folder for your bot with files in your desired configuration and in your desired programming language.

Config file

Alternatively, you can tell dbf what you want done on a dbf.cfg file formatted like so:

language: cpp
name: mybot
licence: mit
init_readme: true
intents: default/(intents)/all
base_user_functions:
    maintenance
    server_management
    member_management
    fun_and_games
    message_handling
base_bg_functions:
    sql_database_management
    engagement_logging
    watchdog
external_packages:
    sqlite3
    csv_parser

Then, in your terminal, cd to the directory where dbf.cfg is located, and execute the following command:

dbf --build-from-config

It will now generate a base according to your configuration file.

If you are, however, working on a Node.js/TypeScript project, there are some more variables involved.

Your JS/TS config file would look like this:

language: (js/ts)
name: mybot
licence: mit
init_readme: true
intents: default/(intents)/all
version: 1.0.0
description: A Discord bot
base_user_functions:
    maintenance
    server_management
    member_management
    fun_and_games
    message_handling
base_bg_functions:
    sql_database_management
    engagement_logging
    watchdog
external_packages:
    sqlite3

About

A Discord bot base generator for multiple programming languages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages