Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fourjr/discord-cli
A command line interface to use Discord.
https://github.com/fourjr/discord-cli
cli discord
Last synced: 10 days ago
JSON representation
A command line interface to use Discord.
- Host: GitHub
- URL: https://github.com/fourjr/discord-cli
- Owner: fourjr
- Created: 2018-03-09T16:02:58.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-08-08T19:34:05.000Z (about 2 years ago)
- Last Synced: 2024-10-13T09:26:59.087Z (25 days ago)
- Topics: cli, discord
- Language: Python
- Homepage:
- Size: 21.5 KB
- Stars: 80
- Watchers: 6
- Forks: 12
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# discord-cli
A command line interface to use Discord.## DISCLAIMER - PLEASE READ
This is for the 99.7% who refuse to read Discord ToS (and possibly this disclaimer as well).This project wasn't meant to replace discord's official client in any way shape or form.
If your account gets banned, don't come creating 700 Github Issues with you 2000 alts. I already warned you here.Using this program with a user account is much more dangerous than a bot account. I'm using `discord.py 1.0.0a` right here. It has `user-agent`s in it's requests to the Discord API to say that it isn't a client which means it isn't hard for Discord to realise that you aren't using the client.
This program will also allow you to send embeds (in the future). Sending these will raise a high alert as user accounts technically in the official clients aren't allowed to do this.
Using external clients were against Discord's wish and will from the start. Always was against the terms of service but there are still people who do this.
If you have finished reading this, and still want to have some super cool command line discord, go ahead and read on! Else, you better close this tab and clear your history before you get bANNed!
TL;DR Don't blame me if you get banned.
## Is this project meant for production?
No.
This project is **far from complete**. Refer to some of the below sections for further explanation.You can read through the code and maybe learn some new things though :)
## How do you use this?
I assume you already have at least Python 3.5 installed.
I also assume you have `git clone`d this.Install requirements from `requirements.txt`
```
python -m pip install -r requirements.txt
```Run the file
```
python main.py -t= -c=
```An example
```
python main.py -t=MjM4NDk0NzU2NTIxMzc3Nzky.CunGFQ.wUILz7z6HoJzVeq6pyHPmVgQgV4 -c=381870553235193857
```You can run the CLI without providing a token or a channel ID. If you do not provide a token, you will be prompted to include your email/password. This method does not work all the time, especially if you have not logged into Discord for a long time. It is still highly recommended to provide a token. 2FA is supported in this case. Of course, you would have to include a token if you are going to run this on the bot account.
If you do not provide a chnanel ID, the user will log in with no specified channel. You would have to then input a channel ID for the CLI to work.
![image](https://i.imgur.com/QvY5GIM.png)
*An example of a functioning CLI*![image](https://i.imgur.com/z0kPupy.png)
*The CLI Error Handling*## What else do I want to be here?
- [ ] Commands!
- [x] /lenny
- [x] /shrug
- [x] /channel
- [ ] /embed- [x] Remove f-strings - py3.5 compaitibility
## How can you help?
[CONTRIBUTING.md](CONTRIBUTING.md)