comcord/README.md

79 lines
3.0 KiB
Markdown
Raw Permalink Normal View History

2022-08-27 23:27:05 +00:00
# comcord
A CLI-based client for Discord inspired by [SDF](https://sdf.org)'s [commode](https://sdf.org/?tutorials/comnotirc).
## Why?
1. All CLI/TUI Discord clients are outdated/unmaintained or have flaws.
2. I've been spending more time in commode on SDF and have been accustomed to the experience.
## Usage
1. `pnpm i`
2. `node src/index.js <token>`
2023-05-31 03:03:44 +00:00
Your token will be then stored in `.comcordrc` after the first launch.
2022-08-27 23:27:05 +00:00
### User Accounts
2023-05-31 03:03:44 +00:00
User accounts are _partially_ supported via `allowUserAccounts=true` in your `.comcordrc`.
This is use at your own risk, despite spoofing the official client. I am not responsible for any banned accounts.
2022-08-27 23:27:05 +00:00
#### Guild members not populating
2023-05-31 03:03:44 +00:00
This is due to most libraries not implementing Lazy Guilds, as bots do not need lazy guilds to function.
If you are willing to implement Lazy Guilds based off of [unofficial documentation](https://luna.gitlab.io/discord-unofficial-docs/lazy_guilds.html)
and my already existing horrible hacks to make user accounts work in the first place, feel free to send a PR (on GitLab, GitHub repo is a read only mirror).
### Bot Accounts (prefered)
2022-08-27 23:27:05 +00:00
You **MUST** grant your bot all Privileged Gateway Intents.
## Design Decisions
2023-05-31 03:03:44 +00:00
- Node.js was chosen currently due to familiarity.
- Dysnomia was chosen due to familiarity and the nature of everything not being abstracted out to 200 different classes unlike discord.js.
- "Jank" by design. While I don't expect anyone to actually use comcord on serial terminals or teletypes other than for meme factor, the option is still there.
2022-08-27 23:27:05 +00:00
## TODO
- [x] Commands
- [x] Quit (q)
2022-08-28 01:53:55 +00:00
- [x] Switch guilds (G)
2022-08-28 02:57:40 +00:00
- [x] Switch channels (g)
2022-08-28 01:53:55 +00:00
- [x] List online users in guild (w)
2022-08-28 02:57:40 +00:00
- [x] Emote (e)
2022-08-27 23:27:05 +00:00
- Just sends message surrounded in `*`'s
- [ ] Finger (f)
- [ ] Shows presence data if available
- [ ] Creation date, join date, ID, etc
2022-08-28 03:22:06 +00:00
- [x] Room history (r)
- [x] Extended room history (R)
2022-08-28 03:56:02 +00:00
- [x] List channels (l)
2022-08-28 03:40:53 +00:00
- [x] List guilds (L)
- [x] Clear (c)
- [ ] Surf channels forwards (>)
- [ ] Surf channels backwards (<)
- [x] AFK toggle (A)
- [x] Send DM (s)
- [x] Answer DM (a)
2023-06-21 04:34:42 +00:00
- [x] Peek (p)
- [x] Message Receiving
2022-10-09 20:39:15 +00:00
- [x] Markdown styling
2023-06-21 04:34:42 +00:00
- [x] Common markdown (bold, italic, etc)
- [x] Figure out how spoilers would work
2022-10-09 20:39:15 +00:00
- [x] Emotes?????
- [x] Timestamp parsing
- [x] Mentions parsing
2022-08-27 23:27:05 +00:00
- [ ] Embeds in the style of commode's posted links
- [x] Messages wrapped in `*`'s or `_`'s parsed as emotes
2023-05-31 03:08:07 +00:00
- [x] Inline DMs to replicate commode's private messages
2022-08-28 03:22:06 +00:00
- [x] Replies
- [x] Message sending
- [x] Puts incoming messages into queue whilst in send mode
2022-08-27 23:27:05 +00:00
- [ ] Mentions
- [ ] Replies
- [x] Configuration
- [x] Default guild/channel
- No way to set in client (yet?), `defaultChannel=` and `defaultGuild=` in your `.comcordrc`.
2022-08-27 23:27:05 +00:00
- [ ] Threads
- [x] Not have the token just be in argv
- [x] Not have everything in one file
2023-05-31 03:03:44 +00:00
## Repository
If you're viewing this on GitHub or GitLab, you are viewing a read only mirror.
The main repository is located on [Gitdab](https://gitdab.com/Cynosphere/comcord) and is push mirrored to the other two.