mybot
├── .github
│ └── workflows
│ └── nodejs.yml
├── src
│ ├── index.ts
│ ├── deploy-commands.ts
│ ├── commands
│ │ ├── index.ts
│ │ └── ping.ts
│ ├── database
│ │ └── postgres.ts
│ └── types
│ └── index.ts
├── package.json
├── tsconfig.json
├── .env.example
├── .gitignore
└── README.md
-
Clone the repository:
git clone https://github.com/yourusername/mybot.git cd mybot -
Install dependencies:
npm install -
Set up environment variables:
- Copy
.env.exampleto.envand fill in the required values, including your PostgreSQL connection string and Discord bot token.
- Copy
-
Run the bot:
npm start
- To use the
/pingcommand, mention a user in the command, like so:The bot will respond with:/ping @UserMentionI am Pinging @UserMention.
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your branch and create a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.# jackiebot