Added local audio file playback
This commit is contained in:
@@ -8,7 +8,7 @@ import java.io.OutputStream;
|
||||
|
||||
import com.fpghoti.biscuit.Main;
|
||||
import com.fpghoti.biscuit.PluginCore;
|
||||
import com.fpghoti.biscuit.biscuit.Biscuit;
|
||||
import com.fpghoti.biscuit.guild.BiscuitGuild;
|
||||
import com.fpghoti.biscuit.logging.BColor;
|
||||
import com.fpghoti.biscuit.rest.MessageText;
|
||||
import com.fpghoti.biscuit.user.CaptchaUser;
|
||||
@@ -170,7 +170,7 @@ public class Captcha {
|
||||
//mark the PreUser as "done"
|
||||
p.setDone();
|
||||
|
||||
Biscuit biscuit = p.getBiscuit();
|
||||
BiscuitGuild biscuit = p.getBiscuitGuild();
|
||||
|
||||
if(biscuit == null) {
|
||||
Main.getMainBiscuit().error("CAPTCHA ERROR: Null Biscuit");
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.fpghoti.biscuit.captcha;
|
||||
|
||||
import com.fpghoti.biscuit.Main;
|
||||
import com.fpghoti.biscuit.biscuit.Biscuit;
|
||||
import com.fpghoti.biscuit.guild.BiscuitGuild;
|
||||
import com.fpghoti.biscuit.user.CaptchaUser;
|
||||
import com.fpghoti.biscuit.util.PermUtil;
|
||||
|
||||
@@ -35,7 +35,7 @@ public class HandleCaptcha {
|
||||
}
|
||||
|
||||
public static Boolean isCaptchaChannel(TextChannel c) {
|
||||
Biscuit biscuit = Biscuit.getBiscuit(c.getGuild());
|
||||
BiscuitGuild biscuit = BiscuitGuild.getBiscuitGuild(c.getGuild());
|
||||
Boolean a = true;
|
||||
for(String s: biscuit.getProperties().getCaptchaChannels()) {
|
||||
if(c.getName().equalsIgnoreCase(s)) {
|
||||
|
||||
Reference in New Issue
Block a user