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
You must have [Git for Windows](https://git-scm.com/download/win) installed. See this [StackOverflow answer](https://stackoverflow.com/a/46006249) for more details.
89
98
90
-
### Build the bot server
91
-
92
-
Be sure to install dependencies, and run a quick lint to generate needed files:
93
-
94
-
```sh
95
-
$ npm ci
96
-
$ npm run lint
97
-
```
99
+
### Build the bot
98
100
99
-
The first time you download the source, and each time the source code changes, you'll need to run this command before you run the bot:
101
+
Be sure to install dependencies, run a quick lint to generate needed files, compile the source, and deploy commands. Here's a handy command to do all of that:
100
102
101
103
```sh
102
-
$ npm run build
104
+
$ npm run setup
103
105
```
104
106
105
107
### Register Slash Commands
@@ -124,11 +126,25 @@ $ npm start
124
126
$ pm2 start .
125
127
```
126
128
127
-
## Commands
129
+
## Chat Input Commands
128
130
129
131
### /help
130
132
131
-
Prints the list of commands.
133
+
Prints some info about the bot, including the current running version and a link to the code repository.
134
+
135
+
### /profile
136
+
137
+
Retrieves the profile picture of the given user.
138
+
139
+
### /xkcd
140
+
141
+
Retrieves the most recent [XKCD](https://xkcd.com/) comic, or the given one.
142
+
143
+
## Context Menu Commands
144
+
145
+
### Fix Twitter Links
146
+
147
+
Transforms [twitter.com](https://twitter.com/) links in the given message to [vxtwitter.com](https://vxtwitter.com/) links in an ephemeral reply. Please use vxtwitter in your own messages, especially when the tweet is a video. Twitter's default embed stinks on some platforms.
"setup": "rm -r dist && npm ci && npm run export-version && npm run build:only --production && npm run baseline && npm run prisma:migrate && npm run commands:deploy",
8
+
"setup": "rm -rf dist && npm ci && npm run export-version && npm run build:only --production && npm run commands:deploy",
9
9
"commands:deploy": "node . --deploy",
10
10
"commands:revoke": "node . --revoke",
11
11
"baseline": "./node_modules/.bin/prisma migrate resolve --applied 20220915022732_initial_state # TODO: Use this to set initial tables on the database",
0 commit comments