1.0.0 • Published 1 year ago

discord-typescript-bot v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Installation

npx:

# Creates a folder inside the route
npx create_discord_bot_typescript folder_name
# Clone in the actual route without creating a new folder
npx create_discord_bot_typescript .

Execution

// FOR PRODUCTION
npm start 	//run builded javascript bot
// FOR PRODUCTION
npm run tsc  //compile typescript to javascript
// FOR DEVELOPMENT
npm run dev  // run project transpiled to javascript

Usage

.env:

# COMPLETE FIELDS
BOT_TOKEN= 			# NECESSARY
BOT_ID=					# NECESSARY
MONGODB_URI=	# OPTIONAL
USER_DB=				# OPTIONAL
HOST_DB=				# OPTIONAL
NAME_DB=				# OPTIONAL
PASSWORD_DB=		# OPTIONAL
PORT_DB=				# OPTIONAL

src/config/config.ts:

// Modify this parameter as you want
export default {
	devs: ["403917639673577482"],   // DEVELOPERS ID
	prefix: "$",  // MAIN PREFIX
	colors: {
		main: "#e3d041", // MAIN COLOR
	},
};