1 |
<p align="center"> |
<p align="center"> |
2 |
<img src="https://res.cloudinary.com/rakinar2/image/upload/v1651761676/sudobot4_r257uw.png" height="200px" width="200px"> |
<img src="https://res.cloudinary.com/rakinar2/image/upload/v1659628446/SudoBot-new_cvwphw.png" height="200px" width="200px"> |
3 |
</p> |
</p> |
4 |
|
|
5 |
<h1 align="center">SudoBot</h1> |
<h1 align="center">SudoBot</h1> |
15 |
A Discord bot for moderation purposes. |
A Discord bot for moderation purposes. |
16 |
</p> |
</p> |
17 |
|
|
18 |
|
### Features |
19 |
|
|
20 |
|
- Strong automoderation system with tools like anti-spam and anti-raid |
21 |
|
- Useful moderation tools |
22 |
|
- Secure |
23 |
|
- Fun commands |
24 |
|
|
25 |
### Getting started |
### Getting started |
26 |
|
|
27 |
You can request an invite for SudoBot [here](https://sudobot.everything-server.ml/). |
You can request an invite for SudoBot [here](https://sudobot.everything-server.ml/). |
38 |
Then go inside the project directory, and run the following commands: |
Then go inside the project directory, and run the following commands: |
39 |
|
|
40 |
``` |
``` |
41 |
sh init.sh |
mkdir config tmp storage logs |
42 |
touch config/config.json .env |
touch logs/join-leave.log |
43 |
echo "{}" > config/snippets.json |
echo "{}" > config/snippets.json |
44 |
npm install |
cp sample-config.json config/config.json |
45 |
npm install -D |
npm install -D |
46 |
``` |
``` |
47 |
|
|
48 |
|
Then open up the `config/config.json` file and change at least the following: |
49 |
|
|
50 |
|
```json |
51 |
|
{ |
52 |
|
"global": { |
53 |
|
"id": "set your home guild id", |
54 |
|
"owners": ["set owner user ids here"], |
55 |
|
... |
56 |
|
}, |
57 |
|
"guild id here": { |
58 |
|
"prefix": "-", |
59 |
|
"mod_role": "the mod role, users having it will be able to use the bot", |
60 |
|
"gen_role": "general role id, which all users have", |
61 |
|
"mute_role": "the muted role id", |
62 |
|
"admin": "the admin role id. users having it will be immune to sudobot.", |
63 |
|
... |
64 |
|
} |
65 |
|
} |
66 |
|
``` |
67 |
|
|
68 |
|
**Note**: `...` means other options that exist in the config, you can edit them to customize the settings, but not required. |
69 |
|
|
70 |
Build the project: |
Build the project: |
71 |
|
|
72 |
``` |
``` |
84 |
``` |
``` |
85 |
npm start |
npm start |
86 |
``` |
``` |
87 |
|
|
88 |
|
And if everything was configured correctly, you should not see an error and the bot should say `Logged in as [tag]!`. |
89 |
|
Then you can run the following command in Discord to make sure everything is working: |
90 |
|
|
91 |
|
``` |
92 |
|
-about |
93 |
|
``` |
94 |
|
|
95 |
|
That should show the bot information. |
96 |
|
Congratulations! You've successfully set up your own instance of SudoBot! |
97 |
|
|
98 |
|
### Support |
99 |
|
|
100 |
|
- **Email**: [email protected] |
101 |
|
- **Discord Server**: [Support Server Invite](https://discord.gg/892GWhTzgs) |