https://github.com/joshmerlino/joshobot
The best Discord bot around
https://github.com/joshmerlino/joshobot
Last synced: 3 months ago
JSON representation
The best Discord bot around
- Host: GitHub
- URL: https://github.com/joshmerlino/joshobot
- Owner: JoshMerlino
- Created: 2020-08-28T18:17:15.000Z (almost 6 years ago)
- Default Branch: v0
- Last Pushed: 2024-06-18T05:55:32.000Z (almost 2 years ago)
- Last Synced: 2025-09-05T06:37:58.009Z (9 months ago)
- Language: JavaScript
- Size: 5.62 MB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Josh O' Bot
The all in one Discord bot!
Invite [Josh O' Bot](https://discord.com/api/oauth2/authorize?client_id=748971236276699247&permissions=8&scope=bot) to your Discord Server!
# Running the bot
ℹ To run the bot run `index.js`
⚠ Be sure to create a `.env` file and replace `...` with the appropriate variables.
```python
# Allow requests to own server
NODE_TLS_REJECT_UNAUTHORIZED = 0
# Nodejs mode
MODE = DEVELOPMENT # or PRODUCTION
# Secret API Keys
CLIENT_SECRET = ...
```
# Adding Commands
1. Make a new file in the `src/commands` (The name of the file does not matter as long is it is a `.js` file)
2. Follow this format in the new command file
```javascript
module.exports = class Command extends require("../Command.js") {
constructor() {
// Add aliases to command
super([ "new-command" ], ...arguments);
// Add command to help
this.register("Command Description...", HelpSection.GENERAL /* see or create enum values in src/enum/HelpSection.js */, [{
argument: "Argument",
required: true,
}]);
}
async onCommand({ args, sender, guildConfig, root, channel, guild, audit }) {
// TODO: Create command logic...
// Send command usage
return await this.sendUsage(channel);
}
}
```