revbot.js 0.0.1

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 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,133 @@
1
+ # revbot.js
2
+
3
+ # Note: this package is currently in the early stages of development and testing
4
+
5
+ `revbot.js` is a Node.js library for building bots on the Revolt platform. It provides an easy-to-use interface for interacting with Revolt's API, managing events, and handling various bot functionalities.
6
+ [revolt server](https://rvlt.gg/7hG9csvW) [docs](https://jade3375.github.io/revbot.js/)
7
+
8
+ ## Installation
9
+
10
+ ```bash
11
+ npm install revbot.js
12
+ ```
13
+
14
+ or
15
+
16
+ ```bash
17
+ yarn add revbot.js
18
+ ```
19
+
20
+ ## Basic Setup
21
+
22
+ Below is an example of how to set up a basic bot using `revbot.js`:
23
+
24
+ ### Example Code
25
+
26
+ ```ts
27
+ import { client } from "revbot.js";
28
+
29
+ const bot = new client({});
30
+
31
+ bot.on("ready", () => {
32
+ console.log("Bot is ready!");
33
+ });
34
+
35
+ bot.on("message", (message) => {
36
+ if (message.content === "ping") {
37
+ message.reply("pong");
38
+ }
39
+ });
40
+
41
+ bot.login("YOUR_BOT_TOKEN");
42
+ ```
43
+
44
+ ## Features
45
+
46
+ - Event-based architecture for handling messages, server updates, and more.
47
+ - Easy-to-use managers for channels, servers, users, and roles.
48
+
49
+ ## Development
50
+
51
+ To contribute or modify the library:
52
+
53
+ 1. Clone the repository:
54
+
55
+ ```bash
56
+ git clone https://github.com/Jade3375/revbot.js.git
57
+ cd revbot.js
58
+ ```
59
+
60
+ 2. Install dependencies:
61
+
62
+ ```bash
63
+ yarn install
64
+ ```
65
+
66
+ 3. Build the project:
67
+
68
+ ```bash
69
+ yarn build
70
+ ```
71
+
72
+ ## Contribution
73
+
74
+ We welcome contributions to `revbot.js`! To contribute, follow these steps:
75
+
76
+ 1. **Fork the Repository**
77
+ Go to the [repository](https://github.com/Jade3375/revbot.js) and click the "Fork" button to create your own copy.
78
+
79
+ 2. **Clone Your Fork**
80
+ Clone your forked repository to your local machine:
81
+
82
+ ```bash
83
+ git clone https://github.com/your-username/revbot.js
84
+ cd revbot.js
85
+ ```
86
+
87
+ 3. **Create a Branch**
88
+ Create a new branch for your feature or bug fix:
89
+
90
+ ```bash
91
+ git checkout -b feature-or-bugfix-name
92
+ ```
93
+
94
+ 4. **Make Changes**
95
+ Implement your changes or fixes in the codebase.
96
+
97
+ 5. **Test Your Changes**
98
+ Ensure your changes work as expected by running the project and any relevant tests:
99
+
100
+ ```bash
101
+ yarn test
102
+ ```
103
+
104
+ 6. **Commit Your Changes**
105
+ Commit your changes with a descriptive message:
106
+
107
+ ```bash
108
+ git add .
109
+ git commit -m "Description of your changes"
110
+ ```
111
+
112
+ 7. **Push Your Branch**
113
+ Push your branch to your forked repository:
114
+
115
+ ```bash
116
+ git push origin feature-or-bugfix-name
117
+ ```
118
+
119
+ 8. **Open a Pull Request**
120
+ Go to the original repository and open a pull request from your branch. Provide a clear description of your changes and why they should be merged.
121
+
122
+ ### Guidelines
123
+
124
+ - Follow the existing code style and structure.
125
+ - Write clear and concise commit messages.
126
+ - Add or update documentation if necessary.
127
+ - Ensure your changes do not break existing functionality.
128
+
129
+ Thank you for contributing to `revbot.js`!
130
+
131
+ ## License
132
+
133
+ This project is licensed under the MIT License.