Skip to content

Commit 443cdc1

Browse files
committed
Merge branch 'main' into Issue466
2 parents 84350c5 + 277acf2 commit 443cdc1

File tree

27 files changed

+1725
-564
lines changed

27 files changed

+1725
-564
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @mcpenguin @Picowchew
1+
* @Fan-Yang-284 @probro27

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ You can follow the instructions outlined [in this document](docs/SETUP.md).
4545

4646
You can follow the steps [in this document](docs/CONTRIBUTING.md).
4747

48+
## Command Wiki
49+
50+
Check out our [Command Wiki](docs/COMMAND-WIKI.md) for more details on CodeyBot commands!
51+
4852
## License
4953

5054
All rights reserved for images.

config/production/vars.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
"OFFICE_STATUS_CHANNEL_ID": "997926133083422740",
99
"RESUME_CHANNEL_ID": "1064978680960516237",
1010
"IRC_USER_ID": "806518167404937260",
11-
"MOD_USER_ID_FOR_BAN_APPEAL": "293954951305101313"
11+
"MOD_USER_ID_FOR_BAN_APPEAL": "313794955447500800"
1212
}

config/staging/vars.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
"OFFICE_STATUS_CHANNEL_ID": "866861080301797386",
99
"RESUME_CHANNEL_ID": "866861080301797386",
1010
"IRC_USER_ID": "275813801792634880",
11-
"MOD_USER_ID_FOR_BAN_APPEAL": "302921509763022889"
11+
"MOD_USER_ID_FOR_BAN_APPEAL": "685613108630257701"
1212
}

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ services:
1010
- ./src:/usr/app/src
1111
- ./logs:/usr/app/logs
1212
- ./db:/usr/app/db
13+
- ./docs:/usr/app/docs

docs/COMMAND-WIKI.md

Lines changed: 327 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,327 @@
1+
# ADMIN
2+
## ban
3+
- **Aliases:** None
4+
- **Description:** Ban a user.
5+
- **Examples:**<br> `.ban @jeff spam`
6+
- **Options:**
7+
- ``user``: The user to ban.
8+
- ``reason``: The reason why we are banning the user.
9+
- **Subcommands:** None
10+
11+
# COIN
12+
## coin
13+
- **Aliases:** None
14+
- **Description:** Handle coin functions.
15+
- **Examples:**<br>`.coin adjust @Codey 100`<br>`.coin adjust @Codey -100 Codey broke.`<br>`.coin`<br>`.coin check @Codey`<br>`.coin c @Codey`<br>`.coin info`<br>`.coin i`<br>`.coin update @Codey 100`<br>`.coin update @Codey 0 Reset Codey's balance.`<br>`.coin transfer @Codey 10`<br>`.coin transfer @Codey 15 Lost a bet to Codey `
16+
- **Options:** None
17+
- **Subcommands:** `adjust`, `check`, `info`, `update`, `leaderboard`, `transfer`
18+
19+
## coin adjust
20+
- **Aliases:** `a`
21+
- **Description:** Adjust the coin balance of a user.
22+
- **Examples:**<br>`.coin adjust @Codey 100`<br>`.coin adjust @Codey -100 Codey broke.`
23+
- **Options:**
24+
- ``user``: The user to adjust the balance of.
25+
- ``amount``: The amount to adjust the balance of the specified user by.
26+
- ``reason``: The reason why we are adjusting the balance.
27+
- **Subcommands:** None
28+
29+
## coin check
30+
- **Aliases:** `c`, `b`, `balance`, `bal`
31+
- **Description:** The user to check the balance of.
32+
- **Examples:**<br>`.coin check @Codey`<br>`.coin c @Codey`
33+
- **Options:**
34+
- ``user``: The user to check the balance of.
35+
- **Subcommands:** None
36+
37+
## coin info
38+
- **Aliases:** `information`, `i`
39+
- **Description:** Get info about Codey coin.
40+
- **Examples:**<br>`.coin info`<br>`.coin information`<br>`.coin i`
41+
- **Options:** None
42+
- **Subcommands:** None
43+
44+
## coin leaderboard
45+
- **Aliases:** `lb`
46+
- **Description:** Get the current coin leaderboard.
47+
- **Examples:**<br>`.coin lb`<br>`.coin leaderboard`
48+
- **Options:** None
49+
- **Subcommands:** None
50+
51+
## coin transfer
52+
- **Aliases:** `t`
53+
- **Description:** Transfer coins from your balance to another user.
54+
- **Examples:**<br> `.coin transfer @Codey 10`<br> `.coin transfer @Codey 10 Lost a bet to @Codey`
55+
- **Options:**
56+
- ``user``: The user to transfer coins to.
57+
- ``amount``: The amount to transfer to the specified user.
58+
- ``reason``: The reason for transferring.
59+
- **Subcommands:** None
60+
61+
## coin update
62+
- **Aliases:** `u`
63+
- **Description:** Update the coin balance of a user.
64+
- **Examples:**<br> `.coin update @Codey 100`
65+
- **Options:**
66+
- ``user``: The user to update the balance of.
67+
- ``amount``: The amount to update the balance of the specified user to.
68+
- ``reason``: The reason why we are updating the balance.
69+
- **Subcommands:** None
70+
71+
# COMPANY
72+
## company
73+
- **Aliases:** None
74+
- **Description:** None
75+
- **Examples:**<br>`.company add coinbase SRE`<br>`.company find coinbase`
76+
- **Options:** None
77+
- **Subcommands:** `enroll`, `add`, `remove`, `find`, `profile`
78+
79+
## company add
80+
- **Aliases:** `a`
81+
- **Description:** Add a company to your profile
82+
- **Examples:**<br> `.company add https://www.crunchbase.com/organization/microsoft`<br> `.company a microsoft `
83+
- **Options:**
84+
- **Subcommands:** None
85+
86+
## company enroll
87+
- **Aliases:** `e`
88+
- **Description:** None
89+
- **Examples:**<br> `.company enroll https://www.crunchbase.com/organization/microsoft`<br> `.company enroll microsoft`
90+
- **Options:**
91+
- **Subcommands:** None
92+
93+
## company find
94+
- **Aliases:** `f`
95+
- **Description:** Find all individuals that work at the company.
96+
- **Examples:**<br> `.company find https://www.crunchbase.com/organization/microsoft`<br> `.company f microsoft`
97+
- **Options:**
98+
- **Subcommands:** None
99+
100+
## company profile
101+
- **Aliases:** `p`
102+
- **Description:** List all the companies you are associated with
103+
- **Examples:**<br> `.company profile`<br> `.company p`
104+
- **Options:** None
105+
- **Subcommands:** None
106+
107+
## company remove
108+
- **Aliases:** `r`
109+
- **Description:** Remove a company to your profile
110+
- **Examples:**<br> `.company remove https://www.crunchbase.com/organization/microsoft`<br> `.company r microsoft `
111+
- **Options:**
112+
- **Subcommands:** None
113+
114+
# FUN
115+
## flipcoin
116+
- **Aliases:** `fc`, `flip`, `flip-coin`, `coin-flip`, `coinflip`
117+
- **Description:** None
118+
- **Examples:**<br> `.flip-coin`<br> `.fc`<br> `.flip`<br> `.coin-flip`<br> `.coinflip`<br> `.flipcoin`
119+
- **Options:** None
120+
- **Subcommands:** None
121+
122+
## rolldice
123+
- **Aliases:** `rd`, `roll`, `roll-dice`, `dice-roll`, `diceroll`, `dice`
124+
- **Description:** Roll a dice! :game_die:
125+
- **Examples:**<br> `.roll-dice 6`<br> `.dice-roll 30`<br> `.roll 100`<br> `.rd 4`<br> `.diceroll 2`<br> `.dice 1`<br> `.rolldice 10`
126+
- **Options:**
127+
- ``sides``: The number of sides on the die.
128+
- **Subcommands:** None
129+
130+
# GAMES
131+
## bj
132+
- **Aliases:** `blj`, `blackjack`, `21`
133+
- **Description:** Play a Blackjack game to win some Codey coins!
134+
- **Examples:**<br>`.bj 100`<br>`.blj 100`
135+
- **Options:**
136+
- ``bet``: A valid bet amount
137+
- **Subcommands:** None
138+
139+
## connect4
140+
- **Aliases:** None
141+
- **Description:** Play Connect 4!
142+
- **Examples:**<br>`.connect4`<br>`.connect 4 @user`
143+
- **Options:** None
144+
- **Subcommands:** None
145+
146+
## rps
147+
- **Aliases:** None
148+
- **Description:** Play Rock, Paper, Scissors!
149+
- **Examples:**<br>`.rps`<br>`.rps 10`
150+
- **Options:**
151+
- ``bet``: How much to bet - default is 10.
152+
- **Subcommands:** None
153+
154+
# INTERVIEWER
155+
## interviewers
156+
- **Aliases:** `int`, `interviewer`
157+
- **Description:** Handle interviewer functions.
158+
- **Examples:**<br>`.interviewer`<br>`.interviewer frontend`
159+
- **Options:** None
160+
- **Subcommands:** `clear`, `domain`, `pause`, `profile`, `resume`, `signup`, `list`
161+
162+
## interviewer clear
163+
- **Aliases:** `clr`
164+
- **Description:** Clear all your interviewer data
165+
- **Examples:**<br>`.interviewer clear`
166+
- **Options:** None
167+
- **Subcommands:** None
168+
169+
## interviewer domain
170+
- **Aliases:** `domain`
171+
- **Description:** Add/remove a domain of your choice
172+
- **Examples:**<br>`.interviewer domain frontend`
173+
- **Options:**
174+
- ``domain_name``: A valid domain name
175+
- **Subcommands:** None
176+
177+
## interviewer list
178+
- **Aliases:** `ls`
179+
- **Description:** List all interviewers or those under a specific domain
180+
- **Examples:**<br>`.interviewer list`<br>`.interviewer list backend`
181+
- **Options:**
182+
- ``domain``: The domain to be examined
183+
- **Subcommands:** None
184+
185+
## interviewer pause
186+
- **Aliases:** `ps`
187+
- **Description:** Put your interviewer profile on pause
188+
- **Examples:**<br>`.interviewer pause`
189+
- **Options:** None
190+
- **Subcommands:** None
191+
192+
## interviewer profile
193+
- **Aliases:** `pf`
194+
- **Description:** Display your interviewer profile data
195+
- **Examples:**<br>`.interviewer profile`
196+
- **Options:** None
197+
- **Subcommands:** None
198+
199+
## interviewer resume
200+
- **Aliases:** `resume`
201+
- **Description:** Resume your interviewer profile
202+
- **Examples:**<br>`.interviewer resume`
203+
- **Options:** None
204+
- **Subcommands:** None
205+
206+
## interviewer signup
207+
- **Aliases:** `signup`
208+
- **Description:** Sign yourself up to be an interviewer!
209+
- **Examples:**<br>`.interviewer signup www.calendly.com`
210+
- **Options:**
211+
- ``calendar_url``: A valid calendly.com or x.ai calendar link
212+
- **Subcommands:** None
213+
214+
# LEETCODE
215+
## leetcode
216+
- **Aliases:** None
217+
- **Description:** Handle LeetCode functions.
218+
-
219+
- **Options:** None
220+
- **Subcommands:** `random`, `specific`
221+
222+
## leetcode random
223+
- **Aliases:** `r`
224+
- **Description:** Get a random LeetCode problem.
225+
- **Examples:**<br>`.leetcode`n<br>`.leetcode random`
226+
- **Options:**
227+
- ``difficulty``: The difficulty of the problem.
228+
- **Subcommands:** None
229+
230+
## leetcode specific
231+
- **Aliases:** `spec`, `s`
232+
- **Description:** Get a LeetCode problem with specified problem ID.
233+
- **Examples:**<br>`.leetcode specific 1`
234+
- **Options:**
235+
- ``problem-id``: The problem ID.
236+
- **Subcommands:** None
237+
238+
# MISCELLANEOUS
239+
## help
240+
- **Aliases:** `wiki`
241+
- **Description:** Get the URL to the wiki page.
242+
- **Examples:**<br>`.help`<br>`.wiki`
243+
- **Options:** None
244+
- **Subcommands:** None
245+
246+
## info
247+
- **Aliases:** None
248+
- **Description:** Get Codey information - app version, repository link and issue templates.
249+
- **Examples:**<br> `.info`
250+
- **Options:** None
251+
- **Subcommands:** None
252+
253+
## member
254+
- **Aliases:** None
255+
- **Description:** Get CSC membership information of a user.
256+
- **Examples:**<br>`.member [id]`
257+
- **Options:**
258+
- ``uwid``: The Quest ID of the user.
259+
- **Subcommands:** None
260+
261+
## ping
262+
- **Aliases:** `pong`
263+
- **Description:** Ping the bot to see if it is alive. :ping_pong:
264+
- **Examples:**<br> `.ping`<br> `.pong`
265+
- **Options:** None
266+
- **Subcommands:** None
267+
268+
## uptime
269+
- **Aliases:** `up`, `timeup`
270+
- **Description:** None
271+
- **Examples:**<br> `.uptime`<br> `.up`<br> `.timeup`
272+
- **Options:** None
273+
- **Subcommands:** None
274+
275+
# PROFILE
276+
## profile
277+
- **Aliases:** `userprofile`, `aboutme`
278+
- **Description:** Handle user profile functions.
279+
- **Examples:**<br> `.profile @Codey`
280+
- **Options:** None
281+
- **Subcommands:** `about`, `grad`, `set`
282+
283+
## profile about
284+
- **Aliases:** `a`
285+
- **Description:** Display user profile.
286+
- **Examples:**<br> `.profile about @Codey`<br> `.profile a @Codey`
287+
- **Options:**
288+
- ``user``: The user to give profile of.
289+
- **Subcommands:** None
290+
291+
## profile grad
292+
- **Aliases:** `g`
293+
- **Description:** Update Grad Roles.
294+
- **Examples:**<br> `.profile grad`<br> `.profile g`
295+
- **Options:** None
296+
- **Subcommands:** None
297+
298+
## profile set
299+
- **Aliases:** `s`
300+
- **Description:** Set parameters of user profile.
301+
- **Examples:**<br> `.profile set @Codey`<br> `.profile a @Codey`
302+
- **Options:**
303+
- ``customization``: The customization to be set for the user.
304+
- ``description``: The description of the customization to be set for the user.
305+
- **Subcommands:** None
306+
307+
# SUGGESTION
308+
## suggestion
309+
- **Aliases:** ``suggest``
310+
- **Description:** Handle suggestion functions.
311+
- This command will forward a suggestion to the CSC Discord Mods. Please note that your suggestion is not anonymous, your Discord username and ID will be recorded. If you don't want to make a suggestion in public, you could use this command via a DM to Codey instead.
312+
**Examples:**
313+
``.suggestion I want a new Discord channel named #hobbies.``
314+
- **Options:**
315+
- ``details``: Details of your suggestion
316+
- **Subcommands:** ``list``, ``update``, ``create``
317+
318+
# COFFEE CHAT
319+
## coffee
320+
- **Aliases:** None
321+
- **Description:** Handle coffee chat functions.
322+
- **Examples:**
323+
``.coffee match``
324+
``.coffee test 10``
325+
- **Options:** None
326+
- **Subcommands:** ``match``, ``test``
327+

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"dotenv": "^8.6.0",
3434
"emoji-regex": "^10.2.1",
3535
"engine-blackjack-ts": "^0.9.11",
36+
"heic2jpg": "^1.0.2",
3637
"js-yaml": "^4.1.0",
3738
"lodash": "^4.17.21",
3839
"moment": "^2.29.4",

0 commit comments

Comments
 (0)