|
| 1 | +# Simple Infrastructure (Version 1.9.9) (v13.x) |
| 2 | + |
| 3 | +A discord bot infrastructure that is simple to use but has many features. It receives frequent updates. (Slash Commands) |
| 4 | + |
| 5 | +## Features |
| 6 | + |
| 7 | +- ✅ **Multi-language support.** |
| 8 | +- ✅ **Server specific command sharing types.** |
| 9 | +- ✅ **SelectMenu and Button support.** |
| 10 | +- ✅ **SelectMenu and Button full component and options support.** |
| 11 | +- ✅ **Autocomplate support.** |
| 12 | +- ✅ **Right menu support.** |
| 13 | +- ✅ **Slash command support.** |
| 14 | +- ✅ **Slash subcommand support.** |
| 15 | +- ✅ **Slash subcommandgroup support.** |
| 16 | +- ✅ Async and super fast. `(takes about 1ms per interaction.)` |
| 17 | +- ✅ _variable_ slowdown support per interaction. |
| 18 | +- ✅ Per interaction bot required authorization support. |
| 19 | +- ✅ user required authorization support per interaction. |
| 20 | +- ✅ Customizable error messages. |
| 21 | +- ✅ Logic error warning systems. |
| 22 | +- ✅ User ban from bot. |
| 23 | +- ✅ autocomplete in interactions. |
| 24 | +- ✅ Global `Underline` object. (interactions, events, config, client, etc.) |
| 25 | +- ✅ Nested folder support. |
| 26 | +- ✅ interactive on/off support. |
| 27 | +- ✅ Interaction support available only to developers. |
| 28 | +- ✅ General event support. |
| 29 | +- ✅ Event autocomplete support. |
| 30 | +- ✅ Ability to close events. |
| 31 | +- ✅ Advanced config file. You don't need to modify the `index.js` file at all. |
| 32 | +- ✅ Ability to change interaction defaults. |
| 33 | +- ✅ Ability to add pre-interaction transactions easily. |
| 34 | +- ✅ Easily create interaction or event infrastructure. |
| 35 | +- ✅ Easy file deactivation. Interactions and events beginning with a hyphen (-) are ignored. |
| 36 | +- ✅ Ability to move value/reference in Button and Select menus. |
| 37 | +- ✅ Ability to specify a value before each operation with the Other object. |
| 38 | +- ✅ Fully automatic language support. Automatic detection of the language of the person using the command. |
| 39 | + |
| 40 | +## Installation |
| 41 | + |
| 42 | +### Download |
| 43 | +- Latest version of the infrastructure [download here](https://github.com/TheArmagan/basit-altyapi/releases/latest) |
| 44 | + |
| 45 | +### Requirements |
| 46 | +- Node.js; `v16.6.1` or higher. I tested it in `v16.6.1` version. You can download it from Node.js' own site. |
| 47 | +- Yarn; Yarn is 8-10 times faster and problem-solving than the package manager npm I use. To install it, simply type `npm install -g yarn` in your console. |
| 48 | + |
| 49 | +### Setup |
| 50 | +- It is enough to go to the project file location and write `yarn install`. |
| 51 | +- After [install](#installation) the project, you can start the project by typing `node index.js`. |
| 52 | + |
| 53 | +### Installation |
| 54 | +- You can carefully read the [`config.js`](./config.js) config file and adjust the bot's general settings to edit user error messages and other events. |
| 55 | +- For interactions, you can carefully read the [`ornekKomut.js`](./interactions/-ornekKomut.js) and [`-ornekSağtık.js`](./interactions/-ornekSağtık.js) file inside the `interactions` folder. |
| 56 | +- If you want to create a new interaction file, you can use the `yarn interaksiyon` interaction. In this way, it will save you the trouble of writing the first interaction infrastructure and will ask all kinds of questions about the interaction. |
| 57 | + |
| 58 | +- You can use `node publishInteractions.js global` to publish Slash interactions globally on discord or `node publishInteractions.js guild <guildId>` if you want to publish only for a server. Global interactions can take up to 1 hour to arrive on the servers. On the contrary, interactions with the server come within 5 to 10 seconds. *Note: While testing your bot, I recommend debugging using server interactions as opposed to global interactions. Because if you post global interactions as spam, you can drop ratelimit.* |
| 59 | +- You can use `node publishInteractions.js global clear` or `node publishInteractions.js guild <guildId> clear` interaction to clear all interactions. |
| 60 | + |
| 61 | + |
| 62 | +- For events, you can carefully read the file [`-ornekOlay.js`](./events/-ornekOlay.js) inside the `events` folder. |
| 63 | +- If you want to create a new event file, you can use the `yarn olay` interaction. In this way, it will save you the trouble of writing the first event infrastructure and will ask all kinds of questions about the event. |
| 64 | + |
| 65 | +## Update |
| 66 | + |
| 67 | +- When updating, all you need to do is replace the `types folder`, `other folder`, `index.js file`, `package.json file` with the old one. |
| 68 | + |
| 69 | +## Help |
| 70 | + |
| 71 | +- If you've read everything here but don't understand anything, you can watch our series [Simple Infrastructure Guide](https://www.youtube.com/watch?v=bQ9ZLpfyCyY&list=PLONuYdOGaaL3m705lBXLAp2okk0TE5EiO) designed for idiots. |
| 72 | +- You can join my discord server for help and get help from me: https://discord.gg/CFbGS6kXfD |
0 commit comments