You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a discord bot using [Discord Developer Portal](https://discord.com/developers/)
4
-
Create a discord server
2
+
## First time setup
3
+
Create a discord bot using [Discord Developer Portal](https://discord.com/developers/)
4
+
Create a discord server (Its not recommended to have this bot in a public server)
5
5
6
-
Copy (or rename) the example config "configex.json" to "config.json"
7
-
Copy the bot's discord token to "DCTOKEN" (Application > Bot > Token)
8
-
Copy the application's clientID to "DCCLIENTID" (Application > OAuth > ClientID)
9
-
Copy the guildID to "DCGUILDID" (Turn on dev mode > Right Click guild > CopyID)
6
+
### Bot Permissions
7
+
**Make sure the bot has these permissons set, otherwise it will break!**
8
+
```
9
+
Privileged Gateway Intents
10
+
- Message Content Intent
10
11
11
-
Run the BOT
12
+
Server Role Permissions
13
+
- View Channels
14
+
- Manage Channels
15
+
- Send Messages
16
+
- Add Reactions
17
+
- Manage Messages
18
+
```
12
19
13
-
In hackmud run the command chat_pass and copy the result
14
-
In discord send /auth password:"pass"
15
-
Once it says its successfully set the Token run /setup
16
-
The guild you have setup should now have 2 categorys (chat and tell) with channels you have joined being populated under chat and filled with messages :D (If message history doesn't show up leave and rejoin the chat ingame then try again.)
20
+
Copy (or rename) the example config "configex.json" to "config.json"
21
+
Copy the bot's discord token to "token" (Application > Bot > Token)
22
+
Copy the application's clientID to "clientId" (Application > OAuth > ClientID)
23
+
Copy the guildID to "guildId" (Turn on dev mode > Right Click guild > CopyID)
24
+
Run `node deploy-commands.js` so all the commands deploy instantly to your server
25
+
Run the BOT using `node index.js`
26
+
27
+
In hackmud run the command chat_pass and copy the result
28
+
In discord send `/settings auth password:"pass"`
29
+
Once it says its successfully set the Token run `/settomgs setup` then `/client start`
30
+
The guild the bot is in should now have all of your users set as channels and it should start pulling messages.
31
+
32
+
## Contributions
33
+
All contributions are greatly appriciated! I am not great at coding so expect lots of spaghetti code.
34
+
35
+
36
+
Useful Links
37
+
[Hackmud Chat API Documentation](https://hackmud.com/forums/general_discussion/chat_api_documentation)
38
+
[Discord ACSI Color Codes](https://gist.github.com/kkrypt0nn/a02506f3712ff2d1c8ca7c9e0aed7c06)
0 commit comments