1 |
|
2 |
<p align="center"> |
3 |
<img src="https://res.cloudinary.com/rakinar2/image/upload/v1659628446/SudoBot-new_cvwphw.png" height="200px" width="200px"> |
4 |
</p> |
5 |
|
6 |
<h1 align="center">SudoBot</h1> |
7 |
|
8 |
<p align="center"> |
9 |
<a href="https://github.com/onesoft-sudo/sudobot/actions/workflows/build.yml"><img src="https://github.com/onesoft-sudo/sudobot/actions/workflows/build.yml/badge.svg" alt="Build"></a> |
10 |
<img src="https://img.shields.io/github/license/onesoft-sudo/sudobot?label=License" alt="GitHub"> |
11 |
<img src="https://img.shields.io/github/package-json/v/onesoft-sudo/sudobot?label=Version" alt="GitHub package.json version"> |
12 |
<img src="https://img.shields.io/github/commit-activity/w/onesoft-sudo/sudobot?label=Commit%20Activity" alt="GitHub commit activity"> |
13 |
<a href="https://discord.gg/892GWhTzgs"><img src="https://img.shields.io/discord/964969362073198652?label=Support+Chat" alt="Discord"></a> |
14 |
</p> |
15 |
|
16 |
<p align="center"> |
17 |
A Discord bot for moderation purposes. |
18 |
</p> |
19 |
|
20 |
### Features |
21 |
|
22 |
- Strong automoderation system with tools like anti-spam and anti-raid |
23 |
- Useful moderation tools |
24 |
- Secure |
25 |
- Fun commands |
26 |
|
27 |
### Getting started |
28 |
|
29 |
You can request an invite for SudoBot [here](https://sudobot.everything-server.ml/). |
30 |
Alternatively, you can create your own Discord API application and then host SudoBot. |
31 |
|
32 |
### Setup for Custom Hosting |
33 |
|
34 |
First, download the latest release or clone the repo by running: |
35 |
|
36 |
``` |
37 |
git clone https://github.com/onesoft-sudo/sudobot |
38 |
``` |
39 |
|
40 |
Then go inside the project directory, and run the following command: |
41 |
|
42 |
``` |
43 |
npm install -D |
44 |
``` |
45 |
|
46 |
Then open up the `config/config.json` file and change at least the following: |
47 |
|
48 |
```json |
49 |
{ |
50 |
"global": { |
51 |
"id": "set your home guild id", |
52 |
"owners": ["set owner user ids here"], |
53 |
... |
54 |
}, |
55 |
"guild id here": { |
56 |
"prefix": "-", |
57 |
"mod_role": "the mod role, users having it will be able to use the bot", |
58 |
"gen_role": "general role id, which all users have", |
59 |
"mute_role": "the muted role id", |
60 |
"admin": "the admin role id. users having it will be immune to sudobot.", |
61 |
... |
62 |
} |
63 |
} |
64 |
``` |
65 |
|
66 |
**Note**: `...` means other options that exist in the config, you can edit them to customize the settings, but not required. |
67 |
|
68 |
Build the project: |
69 |
|
70 |
``` |
71 |
npm run build |
72 |
``` |
73 |
|
74 |
Deploy slash commands globally: |
75 |
|
76 |
``` |
77 |
node deploy-commands.js |
78 |
``` |
79 |
|
80 |
Start the bot: |
81 |
|
82 |
``` |
83 |
npm start |
84 |
``` |
85 |
|
86 |
And if everything was configured correctly, you should not see an error and the bot should say `Logged in as [tag]!`. |
87 |
Then you can run the following command in Discord to make sure everything is working: |
88 |
|
89 |
``` |
90 |
-about |
91 |
``` |
92 |
|
93 |
That should show the bot information. |
94 |
Congratulations! You've successfully set up your own instance of SudoBot! |
95 |
|
96 |
### Support |
97 |
|
98 |
- **Email**: [email protected] |
99 |
- **Discord Servers**: [The Everything Server](https://discord.gg/Km7ZcfXT6P), [Support Server](https://discord.gg/892GWhTzgs) |