jalter
Version:
<a href="https://scathach.dev"><img align="right" src="https://cdn.discordapp.com/attachments/711217607876804629/932506038865911848/alter.png" width=28%></a>
53 lines (37 loc) • 2.23 kB
Markdown
# Jalter
<a href="https://scathach.dev"><img align="right" src="https://cdn.discordapp.com/attachments/711217607876804629/932506038865911848/alter.png" width=28%></a>
[](https://github.com/sinkaroid/booru/actions/workflows/test.yml)
*Automating user accounts is against Discord's Terms of Service.*
I won't make a public branch such as npm package because it's against TOS.
if you want use it just clone or fork this repo and read the documentation
## Features
- Covers the most endpoints.
- Non-standard stuff such a intervals, and delay, and farmer.
- Typings.
- Node.js runtime.
## Example
Don't forget to fill in your credentials [here](auth/credential.js)
> Q: How to get token?
A: Open devtools, try to request something then check the network tab.
### Normal stuff
```js
const { rest } = require('jalter').base; // standard stuff from raw api
await rest.sendMessage("channel_id", "hi!");
```
### Non standard stuff
Assign urself to do '!d bump' every 2 hours intervals
```js
const { farmerInterval } = require('./base/function');
async function autoBump() {
await farmerInterval("channel_id", "!d bump", 120);
}
autoBump()
```
## Documentation
Read [Documentation](Docs.md) there will be many utilities that will make it easier for you.
## Pronunciation
[`id_ID`](https://www.localeplanet.com/java/id-ID/index.html) • **/jalter/** — Jalan alternatif _(?)_
## Legal
### Automated user accounts (self-bots)
The question regarding "self bots" has come up here and there, and we'd like to make our stance clear:
Discord's API provides a separate type of user account dedicated to automation, called a bot account. Bot accounts can be created through the applications page, and are authenticated using a token (rather than a username and password). Unlike the normal OAuth2 flow, bot accounts have full access to all API routes without using bearer tokens, and can connect to the Real Time Gateway. Automating normal user accounts (generally called "self-bots") outside of the OAuth2/bot API is forbidden, and can result in an account termination if found.