diracord 0.0.0-stage → 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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 lexersonly
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 CHANGED
@@ -1,3 +1,43 @@
1
- # Temporary Holding Version
1
+ # Diracord
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Uma linguagem de texto para criar bots de Discord: mais fácil que aoi.js, com
4
+ variáveis, `if`, `for` e funções de verdade, e erros que dizem exatamente o que corrigir.
5
+
6
+ ```dcs
7
+ command("ban", user: member, reason: text = "no reason") {
8
+ testing {
9
+ ban user reason
10
+ reply "$user.name was banned. Reason: $reason"
11
+ } catch err {
12
+ reply "Could not ban: $err"
13
+ }
14
+ }
15
+ ```
16
+
17
+ O mesmo arquivo atende `!ban @Joe spam` e `/ban`.
18
+
19
+ ## Começar
20
+
21
+ Requer Node.js 22.18 ou mais novo.
22
+
23
+ ```bash
24
+ npx diracord new my-bot
25
+ cd my-bot
26
+ cp .env.example .env # coloque o token do bot
27
+ npx diracord run
28
+ ```
29
+
30
+ | comando | o que faz |
31
+ |---|---|
32
+ | `diracord new <pasta>` | cria um projeto |
33
+ | `diracord check [--fix]` | mostra os erros com seta e sugestão; `--fix` corrige os seguros |
34
+ | `diracord run` | liga o bot |
35
+ | `diracord watch` | liga e recarrega a cada arquivo salvo |
36
+
37
+ O pacote já vem com o motor em Rust compilado para Linux (x64, arm64), macOS (Intel e
38
+ Apple Silicon) e Windows (x64).
39
+
40
+ Documentação, guias para quem vem do aoi.js e do discord.js, e todos os códigos de erro:
41
+ https://github.com/lexersonly/diracord
42
+
43
+ Licença MIT.
Binary file
Binary file
Binary file
Binary file