1.0.0 • Published 3 years ago
discord-typescript-bot v1.0.0
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 javascriptUsage
.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= # OPTIONALsrc/config/config.ts:
// Modify this parameter as you want
export default {
devs: ["403917639673577482"], // DEVELOPERS ID
prefix: "$", // MAIN PREFIX
colors: {
main: "#e3d041", // MAIN COLOR
},
};1.0.0
3 years ago