Skip to content

Commit

Permalink
Update redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-rifkin committed Jun 3, 2024
1 parent 6a05246 commit 6d5d5c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/redirect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,15 @@ export default class Redirect extends BotComponent {
async r(command: TextBasedCommand, user: Discord.User) {
await command.reply({
content:
`Hello <@${user.id}>, welcome to Together C & C++! This isn't a help channel, please ask your ` +
`Hello <@${user.id}>, welcome to Together C & C++! This is not a help channel, please ask your ` +
`question in one of the help channels above (${format_list(
(<(keyof Wheatley["channels"])[]>[])
.concat("cpp_help", "cpp_help_text", "c_help", "c_help_text")
.map(name => `<#${this.wheatley.channels[name].id}>`),
)})`,
)}), ` +
`or <#${this.wheatley.channels.tooling.id}> if your question is about tooling, ` +
`or <#${this.wheatley.channels.algorithms_and_compsci.id}> if your question pertains more to theory, ` +
`or any other help channel more suited for your quesiton.`,
should_text_reply: false,
});
}
Expand Down
2 changes: 2 additions & 0 deletions src/wheatley.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ const channels_map = {
general_discussion: tuple("855220264149057556", Discord.TextChannel),
code_review: tuple("1078717238678409369", Discord.ForumChannel),
showcase: tuple("1014328785685979136", Discord.ForumChannel),
tooling: tuple("331913460080181258", Discord.TextChannel),
algorithms_and_compsci: tuple("857668280012242944", Discord.TextChannel),
// off-topic
starboard: tuple("800509841424252968", Discord.TextChannel),
memes: tuple("526518219549442071", Discord.TextChannel),
Expand Down

0 comments on commit 6d5d5c5

Please sign in to comment.