/[sudobot]/trunk/README.md
ViewVC logotype

Contents of /trunk/README.md

Parent Directory Parent Directory | Revision Log Revision Log


Revision 176 - (show annotations)
Mon Jul 29 17:28:53 2024 UTC (8 months ago) by rakin
File MIME type: text/markdown
File size: 2687 byte(s)
doc: update readme
1 <p align="center">
2 <img src="https://res.cloudinary.com/rakinar2/image/upload/v1651761676/sudobot4_r257uw.png" height="200px" width="200px">
3 </p>
4
5 <h1 align="center">SudoBot</h1>
6
7 <p align="center">
8 <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>
9 <img src="https://img.shields.io/github/license/onesoft-sudo/sudobot?label=License" alt="GitHub">
10 <img src="https://img.shields.io/github/package-json/v/onesoft-sudo/sudobot?label=Version" alt="GitHub package.json version">
11 <img src="https://img.shields.io/github/commit-activity/w/onesoft-sudo/sudobot?label=Commit%20Activity" alt="GitHub commit activity">
12 </p>
13
14 <p align="center">
15 A Discord bot for moderation purposes.
16 </p>
17
18 ### Getting started
19
20 You can request an invite for SudoBot [here](https://sudobot.everything-server.ml/).
21 Alternatively, you can create your own Discord API application and then host SudoBot.
22
23 ### Setup for Custom Hosting
24
25 First, download the latest release or clone the repo by running:
26
27 ```
28 git clone https://github.com/onesoft-sudo/sudobot
29 ```
30
31 Then go inside the project directory, and run the following commands:
32
33 ```
34 mkdir config tmp storage logs
35 touch logs/join-leave.log
36 echo "{}" > config/snippets.json
37 cp sample-config.json config/config.json
38 npm install
39 npm install -D
40 ```
41
42 Then open up the `config/config.json` file and change at least the following:
43 **Note**: `...` means other options that exist in the config, you can edit them to customize the settings, but not required.
44
45 ```json
46 {
47 "global": {
48 "id": "set your home guild id",
49 "owners": ["set owner user ids here"],
50 ...
51 },
52 "guild id here": {
53 "prefix": "-",
54 "mod_role": "the mod role, users having it will be able to use the bot",
55 "gen_role": "general role id, which all users have",
56 "mute_role": "the muted role id",
57 "admin": "the admin role id. users having it will be immune to sudobot.",
58 ...
59 }
60 }
61 ```
62
63 Build the project:
64
65 ```
66 npm run build
67 ```
68
69 Deploy slash commands globally:
70
71 ```
72 node deploy-commands.js
73 ```
74
75 Start the bot:
76
77 ```
78 npm start
79 ```
80
81 And if everything was configured correctly, you should not see an error and the bot should say "The system has logged in to discord".
82 Then you can run the following command in Discord to make sure everything is working:
83
84 ```
85 -about
86 ```
87
88 That should show the bot information.
89 Congratulations! You've successfully set up your own instance of SudoBot!
90
91 ### Support
92
93 - **Email**: [email protected]
94 - **Discord Server**: [Support Server Invite](https://discord.gg/892GWhTzgs)

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26