Skip to content

Commit

Permalink
Delete depreciated code, pom.xml, added snack image
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan19 committed Dec 24, 2018
1 parent 5f12354 commit e36c060
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 387 deletions.
153 changes: 0 additions & 153 deletions pom.xml

This file was deleted.

4 changes: 2 additions & 2 deletions src/main/java/logic/DiceRoller.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public EmbedBuilder generateResults(MessageAuthor author) {
//Sum up total
int total = getTotal(topTwo, plotResult);
//Build embed
return buildResultEmbed(author, diceResults, pdResults, random, topTwo, dropped, total);
return buildResultEmbed(author, diceResults, pdResults, topTwo, dropped, total);
}

private int getPlotResult(ArrayList<Integer> pdResults) {
Expand All @@ -60,7 +60,7 @@ private int getPlotResult(ArrayList<Integer> pdResults) {
return plotResult;
}

private EmbedBuilder buildResultEmbed(MessageAuthor author, ArrayList<Integer> diceResults, ArrayList<Integer> pdResults, Random random, ArrayList<Integer> topTwo, ArrayList<Integer> dropped, int total) {
private EmbedBuilder buildResultEmbed(MessageAuthor author, ArrayList<Integer> diceResults, ArrayList<Integer> pdResults, ArrayList<Integer> topTwo, ArrayList<Integer> dropped, int total) {
return new EmbedBuilder()
.setTitle(TwoDee.getRollTitleMessage())
.setAuthor(author)
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/logic/SnackCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import org.javacord.api.entity.message.MessageAuthor;
import org.javacord.api.entity.message.embed.EmbedBuilder;

import java.awt.image.BufferedImage;

public class SnackCommand {

private MessageAuthor author;
Expand All @@ -17,6 +19,6 @@ public EmbedBuilder dispenseSnack(){
.setAuthor(author)
.setTitle("A snack for " + author.getDisplayName())
.setDescription("Here is a cookie!")
.setImage("");
.setImage("https://upload.wikimedia.org/wikipedia/commons/5/5c/Choc-Chip-Cookie.png");
}
}
Loading

0 comments on commit e36c060

Please sign in to comment.