Yet another Discord bot.
- Clone this repo to your local machine using
https://github.com/troIIsmile/djs
cp example.env .env
# fill out the .env file
# Replace the text after `TOKEN=` with your bot's token
# Replace the text after `OWNER=` with your Discord ID.
sudo apt install ffmpeg
npm install
- A download command
- Recursive command folder
- Works in Repl.it
- Update command that doesn't restart the bot
npm start
-
Option 1
- 🍴 Fork this repo!
-
Option 2
- 👯 Clone this repo to your local machine using
https://github.com/troIIsmile/djs.git
- 👯 Clone this repo to your local machine using
- Follow the setup.
- HACK AWAY! 🔨🔨🔨
- Commands basically are an object
- The
help
property shows up in the help command aliases
is optional and is astring[]
of names that will be used as aliases for your command- And of course: the
run
property- run is a function with the
this
value set to the bot (typings at utils/types) - if it returns a truthy value then it will try to post it
- it has two arguments
- argument 1 is the Discord.js message
- argument 2 is the arguments (
string[]
)
- run is a function with the
- The
- If you are using Visual Studio Code you should be able to create a command in a new TypeScript file by typing in "command" and pressing Tab.
- The command handler is in
trollsmile-core
: https://github.com/troiismile/core - The command loader is in
events/ready.ts
- The entry point is
init.ts
- 🔃 Create a new pull request using
https://github.com/troIIsmile/djs/compare/
.
Reach out to me at one of the following places!
- Website at
nxtbot.ml
- Twitter at
@troIIsmile
- ISC license
- Copyright 2020 © Jack.