Skip to content

Commit 45bfe2b

Browse files
sbxtegigglingbed
authored andcommitted
Added Faq command
Cuz frequently asked questions
1 parent 357c108 commit 45bfe2b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package meteordevelopment.meteorbot.commands.help;
2+
3+
import meteordevelopment.meteorbot.commands.Category;
4+
import meteordevelopment.meteorbot.commands.Command;
5+
import meteordevelopment.meteorbot.utils.Utils;
6+
import net.dv8tion.jda.api.events.message.MessageReceivedEvent;
7+
8+
public class FaqCommand extends Command {
9+
public FaqCommand() {
10+
super(Category.Help, "Displays help about the FAQ", "faq");
11+
}
12+
13+
@Override
14+
public void run(MessageReceivedEvent event) {
15+
event.getMessage().delete().queue();
16+
event.getChannel().sendMessage(Utils.embed("Checkout the [FAQ](https://github.com/MeteorDevelopment/meteor-client/wiki) page for frequently asked questions.").build()).queue();
17+
}
18+
}

0 commit comments

Comments
 (0)