Add in trigger for new fuee emote.

master
sigonasr2 6 years ago
parent 3eea966c19
commit 178cfbe199
  1. 2
      BandoriBot/.classpath
  2. BIN
      BandoriBot/BandoriBot.jar
  3. 19
      BandoriBot/projectbuilder.xml
  4. 12
      BandoriBot/src/sig/BandoriBot.java

@ -2,6 +2,6 @@
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="lib" path="D:/Downloads/JDA-3.8.0_423-withDependencies.jar" sourcepath="D:/Downloads/JDA-3.8.0_423-sources.jar"/>
<classpathentry kind="lib" path="C:/Users/clgreenfield/Downloads/JDA-3.8.0_423-withDependencies.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

Binary file not shown.

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="create_run_jar" name="Create Runnable Jar for Project sigIRCv2">
<!--this file was created by Eclipse Runnable JAR Export Wizard-->
<!--ANT 1.7 is required -->
<!--define folder properties-->
<property name="dir.buildfile" value="."/>
<property name="dir.workspace" value="${dir.buildfile}/.."/>
<property name="dir.jarfile" value="${dir.buildfile}"/>
<target name="create_run_jar">
<jar destfile="${dir.jarfile}/BandoriBot.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="sig.BandoriBot"/>
<attribute name="Class-Path" value="."/>
</manifest>
<fileset dir="${dir.jarfile}/bin"/>
<zipfileset excludes="META-INF/*.SF" src="C:/Users/clgreenfield/Downloads/JDA-3.8.0_423-withDependencies.jar"/>
</jar>
</target>
</project>

@ -311,6 +311,7 @@ public class BandoriBot extends ListenerAdapter{
stamp_map.put("kokoro_what_a_great_idea",Arrays.asList("greatidea","goodidea","greatthinking","goodthinking"));
stamp_map.put("sayo_im_sorry",Arrays.asList("sorry","gomen","apologize","somethingwrong","forgive"));
stamp_map.put("hagumi_hooray",Arrays.asList("hooray","hiphip","whoo","yahoo"));
stamp_map.put("kanon_keepgoing",Arrays.asList("keepgoing","dontstop","youcandoit","makeit","gaja","petan","pettan","pengu"));
}
public static void checkForStamp(MessageChannel channel, String user,String message) {
@ -334,7 +335,16 @@ public class BandoriBot extends ListenerAdapter{
} else {
if (filteredmessage.contains(message_search)) {
foundmatch=true;
CreateStamp(channel,key);
if (key.equalsIgnoreCase("kanon_fuee")) {
//If odd, other fuee.
if (filteredmessage.length()%2==0) {
CreateStamp(channel,key);
} else {
CreateStamp(channel,"kanon_keepgoing");
}
} else {
CreateStamp(channel,key);
}
System.out.println("Stamp "+key+" created by user "+user+" MESSAGE:"+message+".");
break;
}

Loading…
Cancel
Save