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

Diff of /trunk/README.md

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 571 by rakin, Mon Jul 29 17:30:51 2024 UTC revision 572 by rakinar2, Mon Jul 29 17:51:37 2024 UTC
# Line 1  Line 1 
1  <p align="center">  <p align="center">
2  <img src="https://res.cloudinary.com/rakinar2/image/upload/v1659628446/SudoBot-new_cvwphw.png" height="200px" width="200px">  <a href="https://www.sudobot.org" title="Official Website of SudoBot" target="_blank">
3    <!--
4    <img src="https://res.cloudinary.com/rakinar2/image/upload/v1720629036/nnanzhwwmpa2k3ebw0yg.png" height="114px" width="348px">
5    -->
6    <img src="https://res.cloudinary.com/rakinar2/image/upload/v1720629036/ku8wq70utgbrbyhzdl9a.png" height="114px" width="348px">
7    </a>
8  </p>  </p>
9    
10  <h1 align="center">SudoBot</h1>  <br />
11    
12  <p align="center">  <p align="center">
13  <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>  <a href="https://github.com/onesoft-sudo/sudobot/actions/workflows/build.yml"><img src="https://img.shields.io/github/actions/workflow/status/onesoft-sudo/sudobot/build.yml?branch=main&event=push&style=flat&logo=github&logoColor=%23fff&label=Build&labelColor=%23000&color=rgb(50%2C%2050%2C%2050)&cacheSeconds=60"></a>
14  <img src="https://img.shields.io/github/license/onesoft-sudo/sudobot?label=License" alt="GitHub">  <a href="https://gnu.org/licenses/agpl-3.0.html"><img src="https://img.shields.io/github/license/onesoft-sudo/sudobot?style=flat&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2C77u%2FPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiINCgkiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4NCjxzdmcgd2lkdGg9IjE5N3B4IiBoZWlnaHQ9IjE5N3B4IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSI%2BDQoJPGNpcmNsZSBjeD0iOTgiIGN5PSI5OCIgcj0iOTgiIGZpbGw9ImJsYWNrIi8%2BDQoJPGNpcmNsZSBjeD0iOTgiIGN5PSI5OCIgcj0iNzgiIGZpbGw9IndoaXRlIi8%2BDQoJPGNpcmNsZSBjeD0iOTgiIGN5PSI5OCIgcj0iNTUiIGZpbGw9ImJsYWNrIi8%2BDQoJPGNpcmNsZSBjeD0iOTgiIGN5PSI5OCIgcj0iMzAiIGZpbGw9IndoaXRlIi8%2BDQoJPHJlY3QgeD0iMTE1IiB5PSI4NSIgd2lkdGg9IjQ1IiBoZWlnaHQ9IjI1IiBmaWxsPSJ3aGl0ZSIvPg0KPC9zdmc%2B&logoColor=%23fff&label=License&labelColor=%23000&color=rgb(50%2C%2050%2C%2050)&cacheSeconds=60" /></a>
15  <img src="https://img.shields.io/github/package-json/v/onesoft-sudo/sudobot?label=Version" alt="GitHub package.json version">  <a href="https://www.codefactor.io/repository/github/onesoft-sudo/sudobot"><img alt="CodeFactor Grade" src="https://img.shields.io/codefactor/grade/github/onesoft-sudo/sudobot?style=flat&logo=codefactor&logoColor=%23fff&label=Codefactor&labelColor=%23000&cacheSeconds=60&link=https%3A%2F%2Fwww.codefactor.io%2Frepository%2Fgithub%2Fonesoft-sudo%2Fsudobot"></a>
16  <img src="https://img.shields.io/github/commit-activity/w/onesoft-sudo/sudobot?label=Commit%20Activity" alt="GitHub commit activity">  <a href="https://github.com/onesoft-sudo/sudobot/releases/latest"><img alt="GitHub package.json version" src="https://img.shields.io/github/package-json/v/onesoft-sudo/sudobot?style=flat&logo=npm&logoColor=white&label=Version&labelColor=%23000&color=rgb(50%2C%2050%2C%2050)&cacheSeconds=60"></a>
17  <a href="https://discord.gg/892GWhTzgs"><img src="https://img.shields.io/discord/964969362073198652?label=OSN+Support+Chat" alt="Discord"></a>  <img alt="GitHub commit activity" src="https://img.shields.io/github/commit-activity/w/onesoft-sudo/sudobot?style=flat&logo=git&logoColor=white&label=Commits&labelColor=%23000&color=rgb(50%2C%2050%2C%2050)&cacheSeconds=60">
18    <a href="https://discord.gg/892GWhTzgs"><img alt="Dynamic JSON Badge" src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fdiscord.com%2Fapi%2Fguilds%2F964969362073198652%2Fwidget.json&query=presence_count&suffix=%20online&style=flat&logo=discord&logoColor=white&label=Discord&labelColor=%23000&color=rgb(50%2C%2050%2C%2050)&cacheSeconds=60&link=https%3A%2F%2Fdiscord.gg%2F892GWhTzgs" alt="Discord" /></a>
19  </p>  </p>
20    
21  <p align="center">  <p align="center">
22  A Discord bot for moderation purposes. <a href="https://docs.sudobot.onesoftnet.eu.org/features/screenshots/">Click here</a> to see the screenshots.  A free and open source Discord bot for moderation purposes. <a href="https://docs.sudobot.org/features/screenshots/">Click here</a> to see the screenshots.
23  </p>  </p>
24    
25  ### Features  <!--
26    <p align="center">
27  - Strong automoderation system with tools like anti-spam and anti-raid ([Click here](https://onesoft-sudo.github.io/sudobot/automoderation/#what-can-the-bot-do) to see the full list)  <a href="https://github.com/onesoft-sudo/sudobot/releases/latest"><img alt="Download from GitHub" src="https://res.cloudinary.com/rakinar2/image/upload/v1702811535/kh7v7c5jb4v3na1e67mg.png" width="276" height="48"></a>
28  - Useful moderation tools and utilities  <a href="https://sourceforge.net/projects/sudobot/files/latest/download"><img alt="Download from SourceForge" src="https://a.fsdn.com/con/app/sf-download-button" width="276" height="48" srcset="https://a.fsdn.com/con/app/sf-download-button?button_size=2x 2x"></a>
29  - Secure  </p> -->
 - Fun commands  
 - Active development & support  
   
 ### Getting started  
   
 You can request an invite for SudoBot [here](https://sudobot.everything-server.ml/).  
 Alternatively, you can create your own Discord API application and then host SudoBot.  
   
 ### Setup for Custom Hosting  
   
 #### Requirements  
 * NodeJS version 16 or higher  
 * MongoDB version 5.0 or higher ([Click here to get free MongoDB service](https://www.mongodb.com/atlas))  
 * A Discord API application token with proper setup  
   
 #### Optional Services  
 * Cat and dog API Token (for fetching cat and dog images using `cat` and `dog` commands, the tokens can be obtained at [thecatapi.com](https://thecatapi.com) and [thedogapi.com](https://thedogapi.com))  
 * Pixabay API Token (can be obtained [here](https://pixabay.com/api/docs/))  
 * A Discord Webhook URL for sending error reports  
 * A JWT Secret for the API services (if you don't have an API secret, you can run `openssl rand -base64 10` to generate a random base64 string and use it as secret)  
   
 ### Setup steps  
   
 1. Download the latest release or clone the repo by running:  
   
 ```  
 git clone https://github.com/onesoft-sudo/sudobot  
 ```  
   
 2. Go inside the project directory, and run the following command:  
   
 ```  
 npm install -D  
 ```  
   
 3. Open up the `config/config.json` file and change at least the following:  
30    
31  ```json  ## ❗ Need Contributors
 {  
     "global": {  
         "id": "set your home guild id",  
         "owners": ["set owner user ids here"],  
         ...  
     },  
     "guild id here": {  
        "prefix": "-",  
        "mod_role": "the mod role, users having it will be able to use the bot",  
        "gen_role": "general role id, which all users have",  
        "mute_role": "the muted role id",  
        "admin": "the admin role id. users having it will be immune to sudobot.",  
        ...  
     }  
 }  
 ```  
32    
33  **Note**: `...` means other options that exist in the config, you can edit them to customize the settings, but not required.  This project needs more contributors. Please look at the [Todos](https://github.com/onesoft-sudo/sudobot/blob/main/TODO.md) to see what you can do to help us. Of course you can add new features and/or fix/improve something that isn't listed in the todos! We'll be really thankful if you contribute.
34    
35  > Alternatively, you can try the new `setup.js` installer script [BETA] by running `node setup.js`. It will ask you some questions about the configuration.  If you like the bot, then please make sure to star this repository! And also if possible, you could help us by donating. As an open source project development team, we don't earn anything after all these hard work. Even a small donation of $1 can help us a lot.
36    
37  4. Copy the `.env.example` file to `.env` and open it, edit the information (such as bot token. MongoDB URI, etc) as needed.  ### Features
38    
39  5. Build the project:  -   Strong auto moderation system with tools like anti-spam and anti-raid ([Click here](https://docs.sudobot.org/automoderation/#what-can-the-bot-do) to see the full list)
40    -   Useful moderation tools and utilities
41    -   Secure
42    -   Fun commands
43    -   Active development & support
44    
45  ```  ### Getting started
 npm run build  
 ```  
46    
47  6. Deploy slash commands globally:  You can request an invitation for SudoBot [here](https://discord.gg/pazm3tqYh5), it's completely free, and you can ask us for help anytime.
48    Alternatively, you can create your own Discord API application and then host SudoBot.
49    
50  ```  ### Setup for Custom Hosting
 node deploy-commands.js  
 ```  
51    
52  7. Start the bot:  Please look at [this page](https://docs.sudobot.org/getting-started) of the documentation.
53    
54  ```  ### Contributors [A-Z]
 npm start  
 ```  
55    
56  And if everything was configured correctly, you should not see an error and the bot should say `Logged in as [tag]!`.  Thanks to all the active and indirect contributors!
 Then you can run the following command in Discord to make sure everything is working:  
57    
58  ```  -   [Ar Rakin](https://github.com/virtual-designer) (Maintainer)
59  -about  -   [dicoderin](https://github.com/dicoderin)
60  ```  -   [GuynnR](https://github.com/GuynnR)
61    -   Hana (A Discord User)
62    -   [Kars](https://github.com/kars1996) (Contributed by giving away a domain to us)
63    -   [killerclaws12](https://github.com/killerclaws12)
64    -   [MonzterDev](https://github.com/MonzterDev)
65    -   [ninsaccplayzyt](https://github.com/ninsaccplayzyt)
66    -   [Ryanmello07](https://github.com/Ryanmello07) (Contributed by giving away a hosting server and by giving a lot of suggestions/ideas to us)
67    
68  That should show the bot information.  ### License
 Congratulations! You've successfully set up your own instance of SudoBot!  
69    
70  ### Contributors  SudoBot is licensed under the [GNU Affero General Public License v3.0](https://gnu.org/licenses/agpl-3.0.html). You can find the full license text in the [LICENSE](./LICENSE) file distributed in this repository.
71    
72  Thanks to all the contributors!  #### Exceptions
73    
74  * [Ar Rakin](https://github.com/virtual-designer)  - [The emojis](https://www.onesoftnet.eu.org/downloads/sudo/emojis/) are licensed under the [Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0/).
75  * [killerclaws12](https://github.com/killerclaws12)  - [The SudoBot Logo](https://res.cloudinary.com/rakinar2/image/upload/v1720629036/ku8wq70utgbrbyhzdl9a.png) is licensed under the [Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-nc-sa/4.0/).
76    - [The documentation website of SudoBot](https://docs.sudobot.org) is dual-licensed under the [GNU Affero General Public License v3.0](https://gnu.org/licenses/agpl-3.0.html) and the [GNU Free Documentation License v1.3](https://gnu.org/licenses/fdl-1.3.html).<br />Read the [README.md](./docs/README.md) file in the `docs` directory for more information.
77    - [BlazeBuild](./blazebuild), the build tool that SudoBot uses, is licensed under the [GNU General Public License v3.0](https://gnu.org/licenses/gpl-3.0.html).
78    
79  ### Support  ### Support
80    
81  - **Email**: [email protected]  -   **Email**: [email protected]
82  - **Discord Servers**: [The Everything Server](https://discord.gg/Km7ZcfXT6P), [OneSoftNet Server](https://discord.gg/892GWhTzgs)  -   **Website**: https://www.sudobot.org
83    -   **Discord Servers**: [OneSoftNet Server](https://discord.gg/892GWhTzgs)
84  ### Extra  
85    ### Extra
86    
87    -   **Download Emojis**: https://www.onesoftnet.eu.org/downloads/sudo/emojis/ <br />
88        Note that not all emojis are present there. You'll find the missing one's at [emoji.gg](https://emoji.gg).
89    -   **Dashboard**: https://github.com/onesoft-sudo/sudobot-dashboard <br />
90        The dashboard of SudoBot. Note that the dashboard is not complete yet.
91    
92  - **Dashboard**: The dashboard for SudoBot can be found [here](https://github.com/onesoft-sudo/sudobot-dashboard).  Copyright © 2022-2024 OSN and all the contributors of SudoBot.
 - **Download Emojis**: https://www.onesoftnet.eu.org/downloads/sudo/emojis/  

Legend:
Removed from v.571  
changed lines
  Added in v.572

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26