Skip to content

A boilerplate for discord bots developed using ortio

License

Notifications You must be signed in to change notification settings

ibrahimelaradi/ortio-discord-ts

Repository files navigation

Ortio Quickstart Template

A quickstart template for discord bot projects using ortio

├── build               // Compiled files go here
├── src
│   ├── commands
│   │   └── ...         // Commands go here
│   ├── environment.ts  // Environment init
│   ├── client.ts       // Discord client config file
│   └── index.ts        // Entry file
├── .env                // Put API token here
├── .env.test           // Put testing variables here
├── .eslintrc.json      // ESLint config file
├── .jest.config.js     // Jest config file
├── jest.global.js      // Jest global script
├── package.json
├── tsconfig.json
└── README.md

Make sure to open .gitignore and add .env and .env.test after adding your tokens

Commands

  • npm run dev/yarn dev: Start development environment
  • npm run dev:watch/yarn dev:watch: Start transcompiler with --watch flag for update on change
  • npm run dev:start/yarn dev:start: Start nodemon on transcompiled files
  • npm run test/yarn test: Start testing

License

MIT © Ibrahim Elaradi