12 |
13 | ## Self-hosting
14 |
15 | This step-by-step guide assumes you have [NodeJS](https://nodejs.org/en/) version `16.9.0` or higher installed and that you have a Discord Bot user set up at [Discord's developer page](https://discord.com/developers/applications) that has been invited to your server with the scopes `applications.commands` and `bot`.
16 |
17 | 1. Fork and clone the repository
18 | 2. Copy `.env.example` to `.env` and insert your bot's Discord API token and Application ID.
19 | 3. Run `npm install`
20 | 4. Run `npm run deploy`. This will make the slash commands show up in the servers the bot are in, but **it can take up to _ONE HOUR_ before they show up**.
21 | 5. Make sure the bot has the required permissions in Discord:
22 | - [x] View channels
23 | - [x] Send messages
24 | - [x] Send messages in threads
25 | - [x] Create public threads
26 | - [x] Read message history
27 | 6. Run `npm start`
28 | 7. Deploy! :tada:
29 |
30 | ## Contributing
31 |
32 | Coming soon :tm:
33 |
34 | [Join the Discord](https://needle.gg/chat) if interested!
35 |
36 | ## License
37 | This program is free software: you can redistribute it and/or modify
38 | it under the terms of the GNU Affero General Public License as published by
39 | the Free Software Foundation, either version 3 of the License, or (at
40 | your option) any later version.
41 |
42 | This program is distributed in the hope that it will be useful,
43 | but WITHOUT ANY WARRANTY; without even the implied warranty of
44 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
45 | GNU Affero General Public License for more details.
46 |
47 | You should have received a copy of the GNU Affero General Public License
48 | along with this program. If not, see