-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from Mazawrath/development
v2.3.0
- Loading branch information
Showing
7 changed files
with
75 additions
and
19 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
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
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
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
42 changes: 42 additions & 0 deletions
42
src/main/java/com/mazawrath/beanbot/commands/copypasta/GnomedCommand.java
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,42 @@ | ||
package com.mazawrath.beanbot.commands.copypasta; | ||
|
||
import com.mazawrath.beanbot.utilities.Points; | ||
import de.btobastian.sdcf4j.Command; | ||
import de.btobastian.sdcf4j.CommandExecutor; | ||
import org.javacord.api.DiscordApi; | ||
import org.javacord.api.entity.channel.ServerTextChannel; | ||
import org.javacord.api.entity.message.embed.EmbedBuilder; | ||
import org.javacord.api.entity.server.Server; | ||
import org.javacord.api.entity.user.User; | ||
|
||
public class GnomedCommand implements CommandExecutor { | ||
private Points points; | ||
|
||
public GnomedCommand(Points points) { | ||
this.points = points; | ||
} | ||
|
||
@Command( | ||
aliases = {"gnomed", "banuser", "everyone"}, | ||
usage = "banuser [discriminated name]", | ||
description = "Bans a user", | ||
privateMessages = false | ||
) | ||
|
||
public void onCommand(DiscordApi api, ServerTextChannel serverTextChannel, User author, Server server) { | ||
if (points.removePoints(author.getIdAsString(), api.getYourself().getIdAsString(), server.getIdAsString(), 2)) { | ||
serverTextChannel.sendMessage("``` __\n" + | ||
" .-' |\n" + | ||
" / <\\| 'Ello me ol' chum\n" + | ||
" / \\'\n" + | ||
" |_.- o-o I'm g'not a g'nelf\n" + | ||
" / C -._)\\\n" + | ||
" /', | I'm g'not a g'noblin\n" + | ||
" | `-,_,__,'\n" + | ||
" (,,)====[_]=| I'm a g'nome and you've been GNOMED\n" + | ||
" '. ____/\n" + | ||
" | -|-|_\n" + | ||
" |____)_)```"); | ||
} | ||
} | ||
} |
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
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