-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add guru & role count command
- Loading branch information
Showing
5 changed files
with
126 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { Message } from 'discord.js'; | ||
import Command from 'src/libs/command'; | ||
|
||
export default class GuruCMD extends Command { | ||
constructor() { | ||
super({ | ||
name: 'guru', | ||
aliases: [''], | ||
description: 'Please check the guide below on how to ask questions.' | ||
}); | ||
} | ||
|
||
execute(message: Message): void { | ||
const embedObj = { | ||
title: 'Guidelines', | ||
description: this.description, | ||
color: '#e53935', | ||
fields: [ | ||
{ | ||
name: "Don't ask to ask, just ask", | ||
value: `Include as much as information you can to describe to problem directly. | ||
Don't ask to ask, just ask it and the members will not have to ask you in return. | ||
Such question will decrease the user engagement and the problem gets unnoticed most of the time. | ||
<https://dontasktoask.com/>` | ||
}, | ||
{ | ||
name: 'Code formatting', | ||
value: `No plain text or screenshot | ||
Make use of markdown provided by Discord to format the code and improve readability. It will be easier for others to go through the code. Don't post the screenshot of code as well. Keep it clean with the available features. | ||
Read more about markdown: https://www.markdownguide.org/cheat-sheet/ | ||
Apart from markdown you can use below platform for code sharing: | ||
GitHub Gist: https://gist.github.com/ | ||
CodeSandbox: https://codesandbox.io/s/ | ||
Pastebin: https://pastebin.com/"` | ||
} | ||
] | ||
}; | ||
message.channel.send({ embed: embedObj }); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export { default as help } from './help'; | ||
export { default as role } from './role'; | ||
export { default as guru } from './guru'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters