discord-cli-node
This is a discord client written is node.js for the CLI. It allows you to send and read messages from a discord server.
Current limitations
- No access to DMs
- No access to servers you can't add a bot too
- Can't change settings or view users in the server
- Must be behind a discord bot
Usage
You can follow ##Installation to download and install this project or use the npx package (npx discord-cli-node
)
This project was created to help with development where it can be annoying to change windows just to try talking to a command. This can be used to send/read messages.
Commands in CLI
- !q, !e, !quit, !exit To exit the chat
- !p, !ping To ping a user, you will be prompted for a user to ping (hit enter to autocomplete) and a message to send after the ping
Features
- Read the last 50 messages sent in server
- Send messages
- View the time a message was sent, the user who sent it, and the message that was sent
- Ping Server members (has autocomplete to help quickly finish names)
Installation
-
Make sure node v20+, yarn and git is installed on your computer
-
Download and open the folder
git clone https://github.com/kozmiknano/discord-cli-node
cd discord-cli-node
-
Install the deps
yarn
-
Now you can get a discord bot token and do one of two things
- Just start the program (
yarn start
) and paste your token in
- Or, create a
.env
file and create a variable like so:
DISCORDTOKEN=yourdiscordtokenhere
Then run the program (yarn start
)