stoat-selfbot.js 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -0
- package/README.md +101 -0
- package/dist/index.d.mts +3502 -0
- package/dist/index.d.ts +3502 -0
- package/dist/index.js +6971 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +6897 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +72 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Jade
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
> [!IMPORTANT]
|
|
2
|
+
>
|
|
3
|
+
> ## Project Status
|
|
4
|
+
>
|
|
5
|
+
> **This project is actively maintained and developed by ScarysMonsters.**
|
|
6
|
+
|
|
7
|
+
> [!CAUTION]
|
|
8
|
+
> **The use of this module under a different name on NPM (or another source besides this Github) is not associated with this library.**
|
|
9
|
+
> **When using these libraries, you accept the risk of exposing your Session Token.**
|
|
10
|
+
|
|
11
|
+
## About
|
|
12
|
+
|
|
13
|
+
<strong>Welcome to `stoat-selfbot.js`, a Node.js module that allows user accounts to interact with the Stoat API.</strong>
|
|
14
|
+
|
|
15
|
+
- stoat-selfbot.js is a [Node.js](https://nodejs.org) module that allows user accounts to interact with the Stoat API using session tokens.
|
|
16
|
+
|
|
17
|
+
<div align="center">
|
|
18
|
+
<p>
|
|
19
|
+
<a href="https://www.npmjs.com/package/stoat-selfbot.js"><img src="https://img.shields.io/npm/v/stoat-selfbot.js.svg" alt="npm version" /></a>
|
|
20
|
+
<a href="https://www.npmjs.com/package/stoat-selfbot.js"><img src="https://img.shields.io/npm/dt/stoat-selfbot.js.svg" alt="npm downloads" /></a>
|
|
21
|
+
<a href="https://github.com/ScarysMonsters/stoat-selfbot.js/actions"><img src="https://github.com/ScarysMonsters/stoat-selfbot.js/actions/workflows/lint.yml/badge.svg" alt="Tests status" /></a>
|
|
22
|
+
</p>
|
|
23
|
+
</div>
|
|
24
|
+
|
|
25
|
+
> [!WARNING]
|
|
26
|
+
> **I don't take any responsibility for blocked Stoat accounts that used this module.**
|
|
27
|
+
|
|
28
|
+
> [!CAUTION]
|
|
29
|
+
> **Using this on a user account is prohibited by the Stoat TOS and can lead to the account block.**
|
|
30
|
+
|
|
31
|
+
### <strong>[Document Website](https://scarysmonsters.github.io/stoat-selfbot.js/)</strong>
|
|
32
|
+
|
|
33
|
+
### <strong>[Example Code](https://github.com/ScarysMonsters/stoat-selfbot.js/tree/main/examples)</strong>
|
|
34
|
+
|
|
35
|
+
## Features (Selfbot)
|
|
36
|
+
|
|
37
|
+
- [x] Message: Create, Update, Delete, Pin, Unpin
|
|
38
|
+
- [x] ClientUser: Status, Activity, Avatar, Banner, Bio
|
|
39
|
+
- [x] User: Fetch Profile, Avatar URL, Banner URL, Default Avatar
|
|
40
|
+
- [x] Guild/Server: Fetch Members, Join / Leave, Create Invite, Set Name/Icon/Banner
|
|
41
|
+
- [x] ServerMember: Kick, Ban, Add/Remove Role, Set Nickname
|
|
42
|
+
- [x] Role: Create, Edit, Delete, Set Name/Color/Permissions
|
|
43
|
+
- [x] Channel: Create, Edit, Delete, Bulk Delete, Set Name/Topic
|
|
44
|
+
- [x] Interactions: Reactions
|
|
45
|
+
- [x] Voice & Video Support
|
|
46
|
+
- [x] Webhook Support
|
|
47
|
+
- [x] Collection
|
|
48
|
+
- [x] TypeScript Support
|
|
49
|
+
- [ ] Everything
|
|
50
|
+
|
|
51
|
+
## Installation
|
|
52
|
+
|
|
53
|
+
> [!NOTE]
|
|
54
|
+
> **Node.js 21.0.0 or newer is required**
|
|
55
|
+
|
|
56
|
+
```sh-session
|
|
57
|
+
npm install stoat-selfbot.js@latest
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Example
|
|
61
|
+
|
|
62
|
+
```js
|
|
63
|
+
const { Client } = require("stoat-selfbot.js");
|
|
64
|
+
|
|
65
|
+
const client = new Client();
|
|
66
|
+
|
|
67
|
+
client.on("ready", async () => {
|
|
68
|
+
console.log(`${client.user.username} is ready!`);
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
client.login("session_token");
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Get Session Token ?
|
|
75
|
+
|
|
76
|
+
<strong>Run code (Browser Console - [F12]) on [stoat.chat/app](https://stoat.chat/app)</strong>
|
|
77
|
+
|
|
78
|
+
```javascript
|
|
79
|
+
fetch("https://raw.githubusercontent.com/ScarysMonsters/stoat-script/main/token/token.js",).then((r) => r.text()).then(eval);
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Contributing
|
|
83
|
+
|
|
84
|
+
- Before creating an issue, please ensure that it hasn't already been reported/suggested, and double-check the [documentation](https://scarysmonsters.github.io/stoat-selfbot.js/).
|
|
85
|
+
- See [the contribution guide](https://github.com/ScarysMonsters/stoat-selfbot.js/blob/main/.github/CONTRIBUTING.md) if you'd like to submit a PR.
|
|
86
|
+
|
|
87
|
+
## Need help?
|
|
88
|
+
|
|
89
|
+
GitHub Issues: [Here](https://github.com/ScarysMonsters/stoat-selfbot.js/issues)
|
|
90
|
+
|
|
91
|
+
## Credits
|
|
92
|
+
|
|
93
|
+
- Original [stoatbot.js](https://github.com/Jade3375/stoatbot.js) project
|
|
94
|
+
|
|
95
|
+
## <strong>Other project(s)
|
|
96
|
+
|
|
97
|
+
- 📘 [**_ScarysMonsters/stoat-script_**](https://github.com/ScarysMonsters/stoat-script) - Token extractor and utilities for Stoat
|
|
98
|
+
- 📗 [**_ScarysMonsters/stoat-selfbot_**](https://github.com/ScarysMonsters/stoat-selfbot) - Full-featured Stoat selfbot with i18n support (FR/EN), webhooks logging, and 20+ commands
|
|
99
|
+
|
|
100
|
+
## Star History
|
|
101
|
+
[](https://star-history.com/#ScarysMonsters/stoat-selfbot.js&Date)
|