diff --git a/.gitignore b/.gitignore index cac4058..160d30d 100644 --- a/.gitignore +++ b/.gitignore @@ -52,11 +52,7 @@ hs_err_pid* .gradle /build/ -tokenDiscord.txt -*.db .idea/ gradle/wrapper/gradle-wrapper.jar -src/main/bin/logback.xml -src/main/bin/jsonboss.json -src/main/resources/twitter4j.properties -src/main/resources/hibernate.cfg.xml +src/main/resources/application-dev.properties +src/main/resources/application-prod.properties diff --git a/build.gradle b/build.gradle index 5a82753..5ec4d2e 100644 --- a/build.gradle +++ b/build.gradle @@ -1,101 +1,133 @@ plugins { + id 'org.springframework.boot' version '2.1.4.RELEASE' + id 'org.jetbrains.kotlin.jvm' version '1.3.31' + id 'org.jetbrains.kotlin.plugin.spring' version '1.3.31' id 'java' id 'application' - id 'com.github.johnrengelman.shadow' version '2.0.1' + id 'com.github.johnrengelman.shadow' version '4.0.4' + id 'org.jetbrains.dokka' version '0.9.18' } -mainClassName = 'starter.start' - -group 'it.github.samuele794.discordbotTakao' -version '1.2.0' -def jdaVersion = '3.8.2_459' +apply plugin: 'io.spring.dependency-management' +group = 'it.discordbot' +version = '2.0' +sourceCompatibility = '1.8' repositories { - jcenter() mavenCentral() - maven { url "https://oss.sonatype.org/content/repositories/snapshots" } + jcenter() } -dependencies { - testCompile group: 'junit', name: 'junit', version: '4.12' +jar { + enabled = true +} - compile "net.dv8tion:JDA:3.8.2_459" - // https://mvnrepository.com/artifact/com.rometools/rome - compile group: 'com.rometools', name: 'rome', version: '1.12.0' - // jsoup HTML parser library @ https://jsoup.org/ - compile 'org.jsoup:jsoup:1.11.3' - // https://mvnrepository.com/artifact/com.google.code.gson/gson - compile group: 'com.google.code.gson', name: 'gson', version: '2.8.5' +springBoot { + buildInfo() +} - compile "org.apache.commons:commons-text:1.3" - // https://mvnrepository.com/artifact/org.quartz-scheduler/quartz - compile group: 'org.quartz-scheduler', name: 'quartz', version: '2.3.0' +bootJar { + classifier = 'boot' + manifest { + attributes 'Start-Class': 'it.discordbot.StartBotKt' - // https://mvnrepository.com/artifact/org.postgresql/postgresql - compile group: 'org.postgresql', name: 'postgresql', version: '42.2.5' - // https://mvnrepository.com/artifact/org.xerial/sqlite-jdbc -// compile group: 'org.xerial', name: 'sqlite-jdbc', version: '3.25.2' + } + launchScript() +} + +/*dokka { + outputFormat = 'html-as-java' + outputDirectory = "$buildDir/javadoc" + jdkVersion = 8 + includeNonPublic = true +}*/ + +task dokkaPureKotlindoc(type: org.jetbrains.dokka.gradle.DokkaTask) { + outputFormat = 'html' + outputDirectory = "$buildDir/kotlindoc" + jdkVersion = 8 + includeNonPublic = true + noJdkLink = false + noStdlibLink = false +} +task dokkaPureJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) { + outputFormat = 'javadoc' + outputDirectory = "$buildDir/javadoc" + jdkVersion = 8 + includeNonPublic = true + noJdkLink = false + noStdlibLink = false +} + +task dokkaKotlindocAsJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) { + outputFormat = 'html-as-java' + outputDirectory = "$buildDir/kotlin-as-javadoc" + jdkVersion = 8 + includeNonPublic = true + noJdkLink = false + noStdlibLink = false +} - //SISTEMA PER LOG - compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3' - compile group: 'ch.qos.logback', name: 'logback-core', version: '1.2.3' - // https://mvnrepository.com/artifact/com.sedmelluq/lavaplayer-natives - compile group: 'com.sedmelluq', name: 'lavaplayer-natives', version: '1.3.12' +dependencies { -// compile 'com.sedmelluq:lavaplayer:1.3.11' // https://mvnrepository.com/artifact/commons-validator/commons-validator - compile group: 'commons-validator', name: 'commons-validator', version: '1.6' + implementation 'org.springframework.boot:spring-boot-starter' + implementation 'org.jetbrains.kotlin:kotlin-reflect' + annotationProcessor "org.springframework.boot:spring-boot-configuration-processor" + implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8' + testImplementation 'org.springframework.boot:spring-boot-starter-test' - //JDA 3.8.2 - // https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp - compile group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.14.0' + //SPRING LIBRARY + implementation 'org.springframework.boot:spring-boot-starter-data-jpa' + // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web + implementation group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.1.4.RELEASE' + implementation "com.fasterxml.jackson.module:jackson-module-kotlin:2.9.+" - //DIPENDENZE PER MUSICBOT - // https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient - compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.7' - // https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core - compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.9.8' + implementation 'net.dv8tion:JDA:3.8.3_463' + + //RSS + HTML PARSER + // https://mvnrepository.com/artifact/com.rometools/rome + implementation group: 'com.rometools', name: 'rome', version: '1.12.0' + // jsoup HTML parser library @ https://jsoup.org/ + implementation 'org.jsoup:jsoup:1.11.3' + + //ESCAPE UTIL // https://mvnrepository.com/artifact/commons-io/commons-io - compile group: 'commons-io', name: 'commons-io', version: '2.6' - // https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind - compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.8' + implementation "org.apache.commons:commons-text:1.3" + + //POSTGRESQL DRIVER + // https://mvnrepository.com/artifact/org.postgresql/postgresql + implementation group: 'org.postgresql', name: 'postgresql', version: '42.2.5' //TwitterAPI // https://mvnrepository.com/artifact/org.twitter4j/twitter4j-core - compile group: 'org.twitter4j', name: 'twitter4j-core', version: '4.0.7' + implementation group: 'org.twitter4j', name: 'twitter4j-core', version: '4.0.7' // https://mvnrepository.com/artifact/org.twitter4j/twitter4j-stream - compile group: 'org.twitter4j', name: 'twitter4j-stream', version: '4.0.7' + implementation group: 'org.twitter4j', name: 'twitter4j-stream', version: '4.0.7' // https://mvnrepository.com/artifact/org.twitter4j/twitter4j-async - compile group: 'org.twitter4j', name: 'twitter4j-async', version: '4.0.7' - - compile "org.hibernate:hibernate-core:5.4.2.Final" + implementation group: 'org.twitter4j', name: 'twitter4j-async', version: '4.0.7' + //MUSIC PLAYER + implementation 'com.sedmelluq:lavaplayer:1.3.17' } -javadoc { - options.showAll() - options.setDestinationDirectory() - options.encoding('UTF-8') - options.setUse(true) - options.author(true) - options.version(true) - options.windowTitle("Documentazione TakaoBot") - options.docTitle("Documentazione TakaoBot") - exclude("com/sedmelluq/**") +compileKotlin { + kotlinOptions { + freeCompilerArgs = ['-Xjsr305=strict'] + jvmTarget = '1.8' + } } -if (JavaVersion.current().isJava8Compatible()) { - tasks.withType(Javadoc) { - // disable the crazy super-strict doclint tool in Java 8 - //noinspection SpellCheckingInspection - options.addStringOption('Xdoclint:none', '-quiet') +compileTestKotlin { + kotlinOptions { + freeCompilerArgs = ['-Xjsr305=strict'] + jvmTarget = '1.8' } } - compileJava.options.encoding = 'UTF-8' diff --git a/docs/css/commandStyle.css b/docs/css/commandStyle.css index ebd17bb..c350c7b 100644 --- a/docs/css/commandStyle.css +++ b/docs/css/commandStyle.css @@ -22,6 +22,14 @@ } } +::selection { + background: #06c; +} + +::-moz-selection { + background: #06c; +} + .logoCommand { height: 32px; margin-left: 10px; diff --git a/docs/css/docStyle.css b/docs/css/docStyle.css new file mode 100644 index 0000000..5315002 --- /dev/null +++ b/docs/css/docStyle.css @@ -0,0 +1,34 @@ +#parent>#button-left { + opacity: 0.3; + position: absolute; + left: 5px; + top: 5px; + transition: 0.5s; +} + +#parent>#button-right { + opacity: 0.3; + position: absolute; + left: 55px; + top: 5px; + transition: 0.5s; +} + +.btn{ + padding: 5px 5px; +} +.svg-arrow{ + margin-top: 10px +} + +iframe{ + background-color: #ffffff; +} + +#parent>#button-left { + opacity: 1; +} + +#parent>#button-right { + opacity: 1; +} \ No newline at end of file diff --git a/docs/page/commands.html b/docs/page/commands.html index 29abd11..988cded 100644 --- a/docs/page/commands.html +++ b/docs/page/commands.html @@ -208,6 +208,21 @@
+ %BDOBossStart
+ Questo comando permette di iscriversi agli allarmi dei boss di BDO.
+
+ Il comando deve essere lanciato sul canale su cui si desidera
+ ricevere i boss.
+
+ %BDOBossStopt
+ Questo comando permette disiscriversi agli allarmi dei boss di BDO.
+
+ Il comando può essere lanciato su qualunque canale
+
+ %BDOBossTable
+ Questo comando ti fa vedere la tabella dei boss di BDO.
+
public class Boss
-extends java.lang.Object
-Modifier and Type | -Field and Description | -
---|---|
private java.lang.String[] |
-nomeBoss
-Lista boss dell'ora
- |
-
private java.lang.String |
-ora
-Ora di spawn
- |
-
Constructor and Description | -
---|
Boss(java.lang.String[] nomeBoss,
- java.lang.String ora) |
-
Modifier and Type | -Method and Description | -
---|---|
static java.lang.String[] |
-getHourBoss(int ora,
- int minuto,
- java.util.ArrayList<Boss> lists)
-Metodo per ottenere i boss dell'ora
- |
-
java.lang.String[] |
-getNomeBoss()
-Ottieni i nomi dei boss
- |
-
private java.lang.String |
-getOra() |
-
private void |
-setNomeBoss(java.lang.String[] nomeBoss) |
-
private void |
-setOra(java.lang.String ora) |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
private java.lang.String[] nomeBoss-
private java.lang.String ora-
public Boss(java.lang.String[] nomeBoss, - java.lang.String ora)-
public static java.lang.String[] getHourBoss(int ora, - int minuto, - java.util.ArrayList<Boss> lists)-
ora
- Ora di spawn del bossminuto
- Minuto di spawn del bosslists
- Lista dei boss del giornopublic java.lang.String[] getNomeBoss()-
private void setNomeBoss(java.lang.String[] nomeBoss)-
private java.lang.String getOra()-
private void setOra(java.lang.String ora)-
public class Giorno
-extends java.lang.Object
-Modifier and Type | -Field and Description | -
---|---|
private java.util.ArrayList<Boss> |
-bosses |
-
private java.lang.String |
-giorno |
-
Constructor and Description | -
---|
Giorno(java.lang.String giorno,
- java.util.ArrayList<Boss> bosses) |
-
Modifier and Type | -Method and Description | -
---|---|
java.util.ArrayList<Boss> |
-getBosses() |
-
static Giorno |
-getDayBosses(java.lang.String giorno,
- java.util.ArrayList<Giorno> list) |
-
java.lang.String |
-getGiorno() |
-
private void |
-setBosses(java.util.ArrayList<Boss> bosses) |
-
private void |
-setGiorno(java.lang.String giorno) |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
private java.lang.String giorno-
private java.util.ArrayList<Boss> bosses-
public Giorno(java.lang.String giorno, - java.util.ArrayList<Boss> bosses)-
public static Giorno getDayBosses(java.lang.String giorno, - java.util.ArrayList<Giorno> list)-
public java.lang.String getGiorno()-
private void setGiorno(java.lang.String giorno)-
public java.util.ArrayList<Boss> getBosses()-
private void setBosses(java.util.ArrayList<Boss> bosses)-
Package | -Description | -
---|---|
beans.BDOBossBean | -- |
Modifier and Type | -Field and Description | -
---|---|
private java.util.ArrayList<Boss> |
-Giorno.bosses |
-
Modifier and Type | -Method and Description | -
---|---|
java.util.ArrayList<Boss> |
-Giorno.getBosses() |
-
Modifier and Type | -Method and Description | -
---|---|
static java.lang.String[] |
-Boss.getHourBoss(int ora,
- int minuto,
- java.util.ArrayList<Boss> lists)
-Metodo per ottenere i boss dell'ora
- |
-
private void |
-Giorno.setBosses(java.util.ArrayList<Boss> bosses) |
-
Constructor and Description | -
---|
Giorno(java.lang.String giorno,
- java.util.ArrayList<Boss> bosses) |
-
Package | -Description | -
---|---|
beans.BDOBossBean | -- |
command.real.BDO.boss | -- |
Modifier and Type | -Method and Description | -
---|---|
static Giorno |
-Giorno.getDayBosses(java.lang.String giorno,
- java.util.ArrayList<Giorno> list) |
-
Modifier and Type | -Method and Description | -
---|---|
static Giorno |
-Giorno.getDayBosses(java.lang.String giorno,
- java.util.ArrayList<Giorno> list) |
-
Modifier and Type | -Method and Description | -
---|---|
static java.util.ArrayList<Giorno> |
-BossRetriver.getBossList()
-Ottieni la lista dei boss da file
- |
-
Modifier and Type | -Method and Description | -
---|---|
static void |
-BossRetriver.processHour(int ora,
- int minuto,
- Giorno giorno)
-Processa l'ora per ottenere il boss
- |
-
private static void |
-BossRetriver.processMinute0015(int ora,
- int minuto,
- Giorno giorno)
-Metodo per ottenere il boss che spawna alle 15
- |
-
private static void |
-BossRetriver.processMinute4500(int ora,
- int minuto,
- Giorno giorno)
-Metodo per ottenere il boss che spawna alle 00
- |
-
Package | -Description | -
---|---|
beans.BDOBossBean | -- |
command.real.BDO.boss | -- |
Class and Description | -
---|
Boss
- Rappresentazione dei boss
- |
-
Giorno
- Rappresentazione del giorno di spawn dei boss di BDO
- |
-
Class and Description | -
---|
Giorno
- Rappresentazione del giorno di spawn dei boss di BDO
- |
-
public class RSSMessage
-extends java.lang.Object
-Modifier and Type | -Field and Description | -
---|---|
private org.jsoup.nodes.Document |
-doc |
-
private java.lang.String |
-link |
-
private java.lang.String |
-title |
-
Constructor and Description | -
---|
RSSMessage(java.lang.String title,
- java.lang.String link,
- org.jsoup.nodes.Document doc) |
-
Modifier and Type | -Method and Description | -
---|---|
org.jsoup.nodes.Document |
-getDoc()
-Metodo per ottenere il body del feed RSS
- |
-
java.lang.String |
-getLink()
-Metodo per ottenere il link del feed
- |
-
java.lang.String |
-getTitle()
-Metodo per ottenre il titolo del feed
- |
-
void |
-setDoc(org.jsoup.nodes.Document doc)
-Metodo per impostare il body del feed RSS
- |
-
void |
-setLink(java.lang.String link)
-Metodo per impostare il link del feed
- |
-
void |
-setTitle(java.lang.String title)
-Metodo per ottenre il titolo del feed
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
private java.lang.String title-
private java.lang.String link-
private org.jsoup.nodes.Document doc-
public RSSMessage(java.lang.String title, - java.lang.String link, - org.jsoup.nodes.Document doc)-
public java.lang.String getTitle()-
public void setTitle(java.lang.String title)-
title
- titolo del feedpublic java.lang.String getLink()-
public void setLink(java.lang.String link)-
link
- Url del feed in stringapublic org.jsoup.nodes.Document getDoc()-
Document
public void setDoc(org.jsoup.nodes.Document doc)-
doc
- documento HTMlDocument
@Entity
-public class Rsslink
-extends java.lang.Object
-Modifier and Type | -Field and Description | -
---|---|
private long |
-id |
-
private java.lang.String |
-lastAtmAlert
-Link ultimo feed di atm
- |
-
private java.lang.String |
-lastNewsBDO
-Lista link ultime news di BDO
- |
-
private java.lang.String |
-lastPatchBDO |
-
Modifier and Type | -Method and Description | -
---|---|
long |
-getId() |
-
java.lang.String |
-getLastAtmAlert() |
-
java.lang.String |
-getLastNewsBDO() |
-
java.lang.String |
-getLastPatchBDO() |
-
void |
-setId(long id) |
-
void |
-setLastAtmAlert(java.lang.String lastAtmAlert) |
-
void |
-setLastNewsBDO(java.lang.String lastNewsBDO) |
-
void |
-setLastPatchBDO(java.lang.String lastPatchBDO) |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
private long id-
private java.lang.String lastNewsBDO-
private java.lang.String lastPatchBDO-
private java.lang.String lastAtmAlert-
public long getId()-
public void setId(long id)-
public java.lang.String getLastNewsBDO()-
public void setLastNewsBDO(java.lang.String lastNewsBDO)-
public java.lang.String getLastPatchBDO()-
public void setLastPatchBDO(java.lang.String lastPatchBDO)-
public java.lang.String getLastAtmAlert()-
public void setLastAtmAlert(java.lang.String lastAtmAlert)-
public class ServerToChannel
-extends java.lang.Object
-Modifier and Type | -Field and Description | -
---|---|
private java.lang.String |
-channelID |
-
private java.lang.String |
-serverID |
-
Constructor and Description | -
---|
ServerToChannel(java.lang.String serverID,
- java.lang.String channelID) |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
-equals(java.lang.Object object) |
-
java.lang.String |
-getChannelID()
-Metodo per ottenere il channelID
- |
-
java.lang.String |
-getServerID()
-Metodo per ottenere il serverID
- |
-
void |
-setChannelID(java.lang.String channelID)
-Metodo per impostare il channelID
- |
-
void |
-setServerID(java.lang.String serverID)
-Metodo per impostare il serverID
- |
-
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
private java.lang.String serverID-
private java.lang.String channelID-
public ServerToChannel(java.lang.String serverID, - java.lang.String channelID)-
public java.lang.String getServerID()-
public void setServerID(java.lang.String serverID)-
serverID
- id del server discordpublic java.lang.String getChannelID()-
public void setChannelID(java.lang.String channelID)-
channelID
- id del canale testualepublic boolean equals(java.lang.Object object)-
equals
in class java.lang.Object
@Entity
-public class ServersDiscord
-extends java.lang.Object
-Modifier and Type | -Field and Description | -
---|---|
private java.lang.String |
-atmAlertIDChannel
-ID Canale per invio degli alert dell'ATM
- |
-
private java.lang.String |
-bdoBossIDChannel
-ID Canale per invio alert boss di BDO
- |
-
private java.lang.String |
-bdoNewsIDChannel
-ID Canale per invio news di BDO
- |
-
private java.lang.String |
-bdoPatchIDChannel
-ID Canale per invio patch di BDO
- |
-
private java.lang.String |
-nameServer
-Nome del server
- |
-
private java.lang.String |
-serverId
-Id del server
- |
-
private java.lang.String |
-simbolCommand
-Simbolo di comando
- |
-
Constructor and Description | -
---|
ServersDiscord() |
-
ServersDiscord(java.lang.String serverId,
- java.lang.String bdoNewsIDChannel) |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.String |
-getAtmAlertIDChannel() |
-
java.lang.String |
-getBdoBossIDChannel() |
-
java.lang.String |
-getBdoNewsIDChannel() |
-
java.lang.String |
-getBdoPatchIDChannel() |
-
java.lang.String |
-getNameServer() |
-
java.lang.String |
-getServerId() |
-
java.lang.String |
-getSimbolCommand() |
-
void |
-setAtmAlertIDChannel(java.lang.String atmAlertIDChannel) |
-
void |
-setBdoBossIDChannel(java.lang.String bdoBossIDChannel) |
-
void |
-setBdoNewsIDChannel(java.lang.String bdoNewsIDChannel) |
-
void |
-setBdoPatchIDChannel(java.lang.String bdoPatchIDChannel) |
-
void |
-setNameServer(java.lang.String nameServer) |
-
void |
-setServerId(java.lang.String serverId) |
-
void |
-setSimbolCommand(java.lang.String simbolCommand) |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
private java.lang.String serverId-
private java.lang.String nameServer-
private java.lang.String simbolCommand-
private java.lang.String bdoNewsIDChannel-
private java.lang.String bdoPatchIDChannel-
private java.lang.String bdoBossIDChannel-
private java.lang.String atmAlertIDChannel-
public ServersDiscord()-
public ServersDiscord(java.lang.String serverId, - java.lang.String bdoNewsIDChannel)-
public java.lang.String getServerId()-
public void setServerId(java.lang.String serverId)-
public java.lang.String getNameServer()-
public void setNameServer(java.lang.String nameServer)-
public java.lang.String getSimbolCommand()-
public void setSimbolCommand(java.lang.String simbolCommand)-
public java.lang.String getBdoNewsIDChannel()-
public void setBdoNewsIDChannel(java.lang.String bdoNewsIDChannel)-
public java.lang.String getBdoPatchIDChannel()-
public void setBdoPatchIDChannel(java.lang.String bdoPatchIDChannel)-
public java.lang.String getAtmAlertIDChannel()-
public void setAtmAlertIDChannel(java.lang.String atmAlertIDChannel)-
public java.lang.String getBdoBossIDChannel()-
public void setBdoBossIDChannel(java.lang.String bdoBossIDChannel)-
Package | -Description | -
---|---|
command.real.BDO.RSS | -- |
command.real.tpl.atmAlert | -- |
Modifier and Type | -Method and Description | -
---|---|
static RSSMessage |
-BDORSSReader.readRSS(java.lang.String URL)
-Metodo per leggere un feed RSS
- |
-
Modifier and Type | -Method and Description | -
---|---|
static net.dv8tion.jda.core.entities.MessageEmbed |
-BDORSSReader.prepareRSStoEmbeddedMessage(RSSMessage message)
-Metodo per preparare il messaggio per discord in modalità da embedded
- |
-
private static void |
-BDORSScheduler.procedurePublish(RSSMessage rssNewsMessage,
- java.util.ArrayList<java.lang.String> newsBDOList,
- net.dv8tion.jda.core.JDA jda) |
-
Modifier and Type | -Method and Description | -
---|---|
static RSSMessage |
-ATMRSSReader.readRSS(java.lang.String URL) |
-
Modifier and Type | -Method and Description | -
---|---|
static net.dv8tion.jda.core.entities.MessageEmbed |
-ATMRSSReader.prepareRSStoEmbeddedMessage(RSSMessage message) |
-
private static void |
-AtmScheduler.publish(RSSMessage message) |
-
Package | -Description | -
---|---|
command.real.BDO.RSS | -- |
interfaces | -- |
Modifier and Type | -Method and Description | -
---|---|
private static void |
-BDORSScheduler.publishMessage(net.dv8tion.jda.core.entities.MessageEmbed newsMessage,
- java.util.ArrayList<ServerToChannel> servers,
- net.dv8tion.jda.core.JDA jda) |
-
Modifier and Type | -Method and Description | -
---|---|
static java.util.ArrayList<ServerToChannel> |
-PostgreSQLInterface.getATMAlertChannel()
-Metodo per ottenere tutti i canali registrati agli alert di ATM
- |
-
static java.util.ArrayList<ServerToChannel> |
-SQLiteInterfaces.getATMAlertChannel()
-Deprecated.
-Metodo per ottenere tutti i canali registrati agli alert di ATM
- |
-
static java.util.ArrayList<ServerToChannel> |
-PostgreSQLInterface.getBDOBossChannel()
-Metodo per ottenere tutti i canali registrati agli alert dei boss di BDO
- |
-
static java.util.ArrayList<ServerToChannel> |
-SQLiteInterfaces.getBDOBossChannel()
-Deprecated.
- |
-
static java.util.ArrayList<ServerToChannel> |
-PostgreSQLInterface.getBDONewsChannel()
-Metodo per ottenere tutti i canali registrati alle news di BDO
- |
-
static java.util.ArrayList<ServerToChannel> |
-SQLiteInterfaces.getBDONewsChannel()
-Deprecated.
-Metodo per ottenere tutti i canali registrati alle news di BDO
- |
-
static java.util.ArrayList<ServerToChannel> |
-PostgreSQLInterface.getBDOPatchChannel()
-Metodo per ottenere tutti i canali registrati alle patch di BDO
- |
-
static java.util.ArrayList<ServerToChannel> |
-SQLiteInterfaces.getBDOPatchChannel()
-Deprecated.
-Metodo per ottenere tutti i canali registrati alle patch di BDO
- |
-
Class | -Description | -
---|---|
Rsslink | -
- Tabella RSSLink
- |
-
RSSMessage | -
- Classe contenitore per il titolo, il link e il body HTML
- del feed RSS
- |
-
ServersDiscord | -
- Tabella contenente tutti gli id dei canali per le funzionalità del bot
- |
-
ServerToChannel | -
- Classe di appoggio per ottenere serverID e channelID
- per i publish del feed RSS
- |
-
Package | -Description | -
---|---|
command.real.BDO.RSS | -- |
command.real.tpl.atmAlert | -- |
interfaces | -- |
Class and Description | -
---|
RSSMessage
- Classe contenitore per il titolo, il link e il body HTML
- del feed RSS
- |
-
ServerToChannel
- Classe di appoggio per ottenere serverID e channelID
- per i publish del feed RSS
- |
-
Class and Description | -
---|
RSSMessage
- Classe contenitore per il titolo, il link e il body HTML
- del feed RSS
- |
-
Class and Description | -
---|
ServerToChannel
- Classe di appoggio per ottenere serverID e channelID
- per i publish del feed RSS
- |
-
public class ControlCommand
-extends java.lang.Object
-Constructor and Description | -
---|
ControlCommand() |
-
Modifier and Type | -Method and Description | -
---|---|
static boolean |
-checkCommand(@NotNull net.dv8tion.jda.core.events.message.MessageReceivedEvent event,
- @NotNull java.lang.String simbolCommand,
- @NotNull java.lang.String commandName)
-Controllo del comando lanciato dalla chat se sia corretto con quelli attivi sul bot.
- |
-
static boolean |
-controlCommand(net.dv8tion.jda.core.events.message.MessageReceivedEvent event,
- java.lang.String commandName)
-Deprecated.
- |
-
static java.lang.String |
-getSimbolCommand(java.lang.String serverId)
-Metodo per ottere il simbolo di comando del server
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@Deprecated -public static boolean controlCommand(net.dv8tion.jda.core.events.message.MessageReceivedEvent event, - java.lang.String commandName)-
event
- evento del messaggiocommandName
- nome del comandopublic static java.lang.String getSimbolCommand(java.lang.String serverId)-
serverId
- ID del serverpublic static boolean checkCommand(@NotNull - @NotNull net.dv8tion.jda.core.events.message.MessageReceivedEvent event, - @NotNull - @NotNull java.lang.String simbolCommand, - @NotNull - @NotNull java.lang.String commandName)-
event
- Evento del messaggiosimbolCommand
- Simbolo di comandocommandName
- Nome del comandoClass | -Description | -
---|---|
ControlCommand | -
- Classe per gestire i controlli tra i simbolo di comanndo e il comando stesso
- |
-
public class BDOReceiver
-extends net.dv8tion.jda.core.hooks.ListenerAdapter
-Constructor and Description | -
---|
BDOReceiver() |
-
Modifier and Type | -Method and Description | -
---|---|
static java.lang.String |
-getBDOBossStartCommand() |
-
static java.lang.String |
-getBDOBossStartCommandDescription() |
-
static java.lang.String |
-getBDOBossStopCommand() |
-
static java.lang.String |
-getBDOBossStopCommandDescription() |
-
static java.lang.String |
-getBDONewsStartCommand() |
-
static java.lang.String |
-getBDONewsStartCommandDecription() |
-
static java.lang.String |
-getBDONewsStopCommand() |
-
static java.lang.String |
-getBDONewsStopCommandDecription() |
-
static java.lang.String |
-getBDOPatchStartCommand() |
-
static java.lang.String |
-getBDOPatchStartCommandDecription() |
-
static java.lang.String |
-getBDOPatchStopCommand() |
-
static java.lang.String |
-getBDOPatchStopCommandDecription() |
-
void |
-onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event) |
-
onCallCreate, onCallDelete, onCallUpdateRegion, onCallUpdateRingingUsers, onCallVoiceJoin, onCallVoiceLeave, onCallVoiceSelfDeafen, onCallVoiceSelfMute, onCategoryCreate, onCategoryDelete, onCategoryUpdateName, onCategoryUpdatePermissions, onCategoryUpdatePosition, onDisconnect, onEmoteAdded, onEmoteRemoved, onEmoteUpdateName, onEmoteUpdateRoles, onEvent, onException, onFriendAdded, onFriendRemoved, onFriendRequestCanceled, onFriendRequestIgnored, onFriendRequestReceived, onFriendRequestSent, onGenericCall, onGenericCallUpdate, onGenericCallVoice, onGenericCategory, onGenericCategoryUpdate, onGenericEmote, onGenericEmoteUpdate, onGenericEvent, onGenericGroup, onGenericGroupMessage, onGenericGroupMessageReaction, onGenericGroupUpdate, onGenericGuild, onGenericGuildMember, onGenericGuildMessage, onGenericGuildMessageReaction, onGenericGuildUpdate, onGenericGuildVoice, onGenericMessage, onGenericMessageReaction, onGenericPrivateMessage, onGenericPrivateMessageReaction, onGenericRelationship, onGenericRelationshipAdd, onGenericRelationshipRemove, onGenericRole, onGenericRoleUpdate, onGenericSelfUpdate, onGenericTextChannel, onGenericTextChannelUpdate, onGenericUpdate, onGenericUser, onGenericUserPresence, onGenericVoiceChannel, onGenericVoiceChannelUpdate, onGroupJoin, onGroupLeave, onGroupMessageDelete, onGroupMessageEmbed, onGroupMessageReactionAdd, onGroupMessageReactionRemove, onGroupMessageReactionRemoveAll, onGroupMessageReceived, onGroupMessageUpdate, onGroupUpdateIcon, onGroupUpdateName, onGroupUpdateOwner, onGroupUserJoin, onGroupUserLeave, onGuildAvailable, onGuildBan, onGuildJoin, onGuildLeave, onGuildMemberJoin, onGuildMemberLeave, onGuildMemberNickChange, onGuildMemberRoleAdd, onGuildMemberRoleRemove, onGuildMessageDelete, onGuildMessageEmbed, onGuildMessageReactionAdd, onGuildMessageReactionRemove, onGuildMessageReactionRemoveAll, onGuildMessageReceived, onGuildMessageUpdate, onGuildReady, onGuildUnavailable, onGuildUnban, onGuildUpdateAfkChannel, onGuildUpdateAfkTimeout, onGuildUpdateExplicitContentLevel, onGuildUpdateFeatures, onGuildUpdateIcon, onGuildUpdateMFALevel, onGuildUpdateName, onGuildUpdateNotificationLevel, onGuildUpdateOwner, onGuildUpdateRegion, onGuildUpdateSplash, onGuildUpdateSystemChannel, onGuildUpdateVerificationLevel, onGuildVoiceDeafen, onGuildVoiceGuildDeafen, onGuildVoiceGuildMute, onGuildVoiceJoin, onGuildVoiceLeave, onGuildVoiceMove, onGuildVoiceMute, onGuildVoiceSelfDeafen, onGuildVoiceSelfMute, onGuildVoiceSuppress, onGuildVoiceUpdate, onHttpRequest, onMessageBulkDelete, onMessageDelete, onMessageEmbed, onMessageReactionAdd, onMessageReactionRemove, onMessageReactionRemoveAll, onMessageUpdate, onPrivateChannelCreate, onPrivateChannelDelete, onPrivateMessageDelete, onPrivateMessageEmbed, onPrivateMessageReactionAdd, onPrivateMessageReactionRemove, onPrivateMessageReceived, onPrivateMessageUpdate, onReady, onReconnect, onResume, onRoleCreate, onRoleDelete, onRoleUpdateColor, onRoleUpdateHoisted, onRoleUpdateMentionable, onRoleUpdateName, onRoleUpdatePermissions, onRoleUpdatePosition, onSelfUpdateAvatar, onSelfUpdateEmail, onSelfUpdateMFA, onSelfUpdateName, onSelfUpdateVerified, onShutdown, onStatusChange, onTextChannelCreate, onTextChannelDelete, onTextChannelUpdateName, onTextChannelUpdateNSFW, onTextChannelUpdateParent, onTextChannelUpdatePermissions, onTextChannelUpdatePosition, onTextChannelUpdateSlowmode, onTextChannelUpdateTopic, onUnavailableGuildJoined, onUserBlocked, onUserTyping, onUserUnblocked, onUserUpdateAvatar, onUserUpdateDiscriminator, onUserUpdateGame, onUserUpdateName, onUserUpdateOnlineStatus, onVoiceChannelCreate, onVoiceChannelDelete, onVoiceChannelUpdateBitrate, onVoiceChannelUpdateName, onVoiceChannelUpdateParent, onVoiceChannelUpdatePermissions, onVoiceChannelUpdatePosition, onVoiceChannelUpdateUserLimit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static java.lang.String getBDOBossStartCommand()-
public static java.lang.String getBDOBossStartCommandDescription()-
public static java.lang.String getBDOBossStopCommand()-
public static java.lang.String getBDOBossStopCommandDescription()-
public static java.lang.String getBDONewsStartCommand()-
public static java.lang.String getBDONewsStartCommandDecription()-
public static java.lang.String getBDONewsStopCommand()-
public static java.lang.String getBDONewsStopCommandDecription()-
public static java.lang.String getBDOPatchStartCommand()-
public static java.lang.String getBDOPatchStartCommandDecription()-
public static java.lang.String getBDOPatchStopCommand()-
public static java.lang.String getBDOPatchStopCommandDecription()-
public void onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
onMessageReceived
in class net.dv8tion.jda.core.hooks.ListenerAdapter
@Deprecated
-public class BDONewsStartCommand
-extends net.dv8tion.jda.core.hooks.ListenerAdapter
-Constructor and Description | -
---|
BDONewsStartCommand()
-Deprecated.
- |
-
Modifier and Type | -Method and Description | -
---|---|
static java.lang.String |
-getCommand()
-Deprecated.
- |
-
static java.lang.String |
-getCommandDescription()
-Deprecated.
- |
-
void |
-onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Deprecated.
- |
-
onCallCreate, onCallDelete, onCallUpdateRegion, onCallUpdateRingingUsers, onCallVoiceJoin, onCallVoiceLeave, onCallVoiceSelfDeafen, onCallVoiceSelfMute, onCategoryCreate, onCategoryDelete, onCategoryUpdateName, onCategoryUpdatePermissions, onCategoryUpdatePosition, onDisconnect, onEmoteAdded, onEmoteRemoved, onEmoteUpdateName, onEmoteUpdateRoles, onEvent, onException, onFriendAdded, onFriendRemoved, onFriendRequestCanceled, onFriendRequestIgnored, onFriendRequestReceived, onFriendRequestSent, onGenericCall, onGenericCallUpdate, onGenericCallVoice, onGenericCategory, onGenericCategoryUpdate, onGenericEmote, onGenericEmoteUpdate, onGenericEvent, onGenericGroup, onGenericGroupMessage, onGenericGroupMessageReaction, onGenericGroupUpdate, onGenericGuild, onGenericGuildMember, onGenericGuildMessage, onGenericGuildMessageReaction, onGenericGuildUpdate, onGenericGuildVoice, onGenericMessage, onGenericMessageReaction, onGenericPrivateMessage, onGenericPrivateMessageReaction, onGenericRelationship, onGenericRelationshipAdd, onGenericRelationshipRemove, onGenericRole, onGenericRoleUpdate, onGenericSelfUpdate, onGenericTextChannel, onGenericTextChannelUpdate, onGenericUpdate, onGenericUser, onGenericUserPresence, onGenericVoiceChannel, onGenericVoiceChannelUpdate, onGroupJoin, onGroupLeave, onGroupMessageDelete, onGroupMessageEmbed, onGroupMessageReactionAdd, onGroupMessageReactionRemove, onGroupMessageReactionRemoveAll, onGroupMessageReceived, onGroupMessageUpdate, onGroupUpdateIcon, onGroupUpdateName, onGroupUpdateOwner, onGroupUserJoin, onGroupUserLeave, onGuildAvailable, onGuildBan, onGuildJoin, onGuildLeave, onGuildMemberJoin, onGuildMemberLeave, onGuildMemberNickChange, onGuildMemberRoleAdd, onGuildMemberRoleRemove, onGuildMessageDelete, onGuildMessageEmbed, onGuildMessageReactionAdd, onGuildMessageReactionRemove, onGuildMessageReactionRemoveAll, onGuildMessageReceived, onGuildMessageUpdate, onGuildReady, onGuildUnavailable, onGuildUnban, onGuildUpdateAfkChannel, onGuildUpdateAfkTimeout, onGuildUpdateExplicitContentLevel, onGuildUpdateFeatures, onGuildUpdateIcon, onGuildUpdateMFALevel, onGuildUpdateName, onGuildUpdateNotificationLevel, onGuildUpdateOwner, onGuildUpdateRegion, onGuildUpdateSplash, onGuildUpdateSystemChannel, onGuildUpdateVerificationLevel, onGuildVoiceDeafen, onGuildVoiceGuildDeafen, onGuildVoiceGuildMute, onGuildVoiceJoin, onGuildVoiceLeave, onGuildVoiceMove, onGuildVoiceMute, onGuildVoiceSelfDeafen, onGuildVoiceSelfMute, onGuildVoiceSuppress, onGuildVoiceUpdate, onHttpRequest, onMessageBulkDelete, onMessageDelete, onMessageEmbed, onMessageReactionAdd, onMessageReactionRemove, onMessageReactionRemoveAll, onMessageUpdate, onPrivateChannelCreate, onPrivateChannelDelete, onPrivateMessageDelete, onPrivateMessageEmbed, onPrivateMessageReactionAdd, onPrivateMessageReactionRemove, onPrivateMessageReceived, onPrivateMessageUpdate, onReady, onReconnect, onResume, onRoleCreate, onRoleDelete, onRoleUpdateColor, onRoleUpdateHoisted, onRoleUpdateMentionable, onRoleUpdateName, onRoleUpdatePermissions, onRoleUpdatePosition, onSelfUpdateAvatar, onSelfUpdateEmail, onSelfUpdateMFA, onSelfUpdateName, onSelfUpdateVerified, onShutdown, onStatusChange, onTextChannelCreate, onTextChannelDelete, onTextChannelUpdateName, onTextChannelUpdateNSFW, onTextChannelUpdateParent, onTextChannelUpdatePermissions, onTextChannelUpdatePosition, onTextChannelUpdateSlowmode, onTextChannelUpdateTopic, onUnavailableGuildJoined, onUserBlocked, onUserTyping, onUserUnblocked, onUserUpdateAvatar, onUserUpdateDiscriminator, onUserUpdateGame, onUserUpdateName, onUserUpdateOnlineStatus, onVoiceChannelCreate, onVoiceChannelDelete, onVoiceChannelUpdateBitrate, onVoiceChannelUpdateName, onVoiceChannelUpdateParent, onVoiceChannelUpdatePermissions, onVoiceChannelUpdatePosition, onVoiceChannelUpdateUserLimit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BDONewsStartCommand()-
public static java.lang.String getCommand()-
public static java.lang.String getCommandDescription()-
public void onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
onMessageReceived
in class net.dv8tion.jda.core.hooks.ListenerAdapter
@Deprecated
-public class BDONewsStopCommand
-extends net.dv8tion.jda.core.hooks.ListenerAdapter
-Constructor and Description | -
---|
BDONewsStopCommand()
-Deprecated.
- |
-
Modifier and Type | -Method and Description | -
---|---|
static java.lang.String |
-getCommand()
-Deprecated.
- |
-
static java.lang.String |
-getCommandDescription()
-Deprecated.
- |
-
void |
-onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Deprecated.
- |
-
onCallCreate, onCallDelete, onCallUpdateRegion, onCallUpdateRingingUsers, onCallVoiceJoin, onCallVoiceLeave, onCallVoiceSelfDeafen, onCallVoiceSelfMute, onCategoryCreate, onCategoryDelete, onCategoryUpdateName, onCategoryUpdatePermissions, onCategoryUpdatePosition, onDisconnect, onEmoteAdded, onEmoteRemoved, onEmoteUpdateName, onEmoteUpdateRoles, onEvent, onException, onFriendAdded, onFriendRemoved, onFriendRequestCanceled, onFriendRequestIgnored, onFriendRequestReceived, onFriendRequestSent, onGenericCall, onGenericCallUpdate, onGenericCallVoice, onGenericCategory, onGenericCategoryUpdate, onGenericEmote, onGenericEmoteUpdate, onGenericEvent, onGenericGroup, onGenericGroupMessage, onGenericGroupMessageReaction, onGenericGroupUpdate, onGenericGuild, onGenericGuildMember, onGenericGuildMessage, onGenericGuildMessageReaction, onGenericGuildUpdate, onGenericGuildVoice, onGenericMessage, onGenericMessageReaction, onGenericPrivateMessage, onGenericPrivateMessageReaction, onGenericRelationship, onGenericRelationshipAdd, onGenericRelationshipRemove, onGenericRole, onGenericRoleUpdate, onGenericSelfUpdate, onGenericTextChannel, onGenericTextChannelUpdate, onGenericUpdate, onGenericUser, onGenericUserPresence, onGenericVoiceChannel, onGenericVoiceChannelUpdate, onGroupJoin, onGroupLeave, onGroupMessageDelete, onGroupMessageEmbed, onGroupMessageReactionAdd, onGroupMessageReactionRemove, onGroupMessageReactionRemoveAll, onGroupMessageReceived, onGroupMessageUpdate, onGroupUpdateIcon, onGroupUpdateName, onGroupUpdateOwner, onGroupUserJoin, onGroupUserLeave, onGuildAvailable, onGuildBan, onGuildJoin, onGuildLeave, onGuildMemberJoin, onGuildMemberLeave, onGuildMemberNickChange, onGuildMemberRoleAdd, onGuildMemberRoleRemove, onGuildMessageDelete, onGuildMessageEmbed, onGuildMessageReactionAdd, onGuildMessageReactionRemove, onGuildMessageReactionRemoveAll, onGuildMessageReceived, onGuildMessageUpdate, onGuildReady, onGuildUnavailable, onGuildUnban, onGuildUpdateAfkChannel, onGuildUpdateAfkTimeout, onGuildUpdateExplicitContentLevel, onGuildUpdateFeatures, onGuildUpdateIcon, onGuildUpdateMFALevel, onGuildUpdateName, onGuildUpdateNotificationLevel, onGuildUpdateOwner, onGuildUpdateRegion, onGuildUpdateSplash, onGuildUpdateSystemChannel, onGuildUpdateVerificationLevel, onGuildVoiceDeafen, onGuildVoiceGuildDeafen, onGuildVoiceGuildMute, onGuildVoiceJoin, onGuildVoiceLeave, onGuildVoiceMove, onGuildVoiceMute, onGuildVoiceSelfDeafen, onGuildVoiceSelfMute, onGuildVoiceSuppress, onGuildVoiceUpdate, onHttpRequest, onMessageBulkDelete, onMessageDelete, onMessageEmbed, onMessageReactionAdd, onMessageReactionRemove, onMessageReactionRemoveAll, onMessageUpdate, onPrivateChannelCreate, onPrivateChannelDelete, onPrivateMessageDelete, onPrivateMessageEmbed, onPrivateMessageReactionAdd, onPrivateMessageReactionRemove, onPrivateMessageReceived, onPrivateMessageUpdate, onReady, onReconnect, onResume, onRoleCreate, onRoleDelete, onRoleUpdateColor, onRoleUpdateHoisted, onRoleUpdateMentionable, onRoleUpdateName, onRoleUpdatePermissions, onRoleUpdatePosition, onSelfUpdateAvatar, onSelfUpdateEmail, onSelfUpdateMFA, onSelfUpdateName, onSelfUpdateVerified, onShutdown, onStatusChange, onTextChannelCreate, onTextChannelDelete, onTextChannelUpdateName, onTextChannelUpdateNSFW, onTextChannelUpdateParent, onTextChannelUpdatePermissions, onTextChannelUpdatePosition, onTextChannelUpdateSlowmode, onTextChannelUpdateTopic, onUnavailableGuildJoined, onUserBlocked, onUserTyping, onUserUnblocked, onUserUpdateAvatar, onUserUpdateDiscriminator, onUserUpdateGame, onUserUpdateName, onUserUpdateOnlineStatus, onVoiceChannelCreate, onVoiceChannelDelete, onVoiceChannelUpdateBitrate, onVoiceChannelUpdateName, onVoiceChannelUpdateParent, onVoiceChannelUpdatePermissions, onVoiceChannelUpdatePosition, onVoiceChannelUpdateUserLimit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BDONewsStopCommand()-
public static java.lang.String getCommand()-
public static java.lang.String getCommandDescription()-
public void onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
onMessageReceived
in class net.dv8tion.jda.core.hooks.ListenerAdapter
@Deprecated
-public class BDOPatchStartCommand
-extends net.dv8tion.jda.core.hooks.ListenerAdapter
-Constructor and Description | -
---|
BDOPatchStartCommand()
-Deprecated.
- |
-
Modifier and Type | -Method and Description | -
---|---|
static java.lang.String |
-getCommand()
-Deprecated.
- |
-
static java.lang.String |
-getCommandDescription()
-Deprecated.
- |
-
void |
-onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Deprecated.
- |
-
onCallCreate, onCallDelete, onCallUpdateRegion, onCallUpdateRingingUsers, onCallVoiceJoin, onCallVoiceLeave, onCallVoiceSelfDeafen, onCallVoiceSelfMute, onCategoryCreate, onCategoryDelete, onCategoryUpdateName, onCategoryUpdatePermissions, onCategoryUpdatePosition, onDisconnect, onEmoteAdded, onEmoteRemoved, onEmoteUpdateName, onEmoteUpdateRoles, onEvent, onException, onFriendAdded, onFriendRemoved, onFriendRequestCanceled, onFriendRequestIgnored, onFriendRequestReceived, onFriendRequestSent, onGenericCall, onGenericCallUpdate, onGenericCallVoice, onGenericCategory, onGenericCategoryUpdate, onGenericEmote, onGenericEmoteUpdate, onGenericEvent, onGenericGroup, onGenericGroupMessage, onGenericGroupMessageReaction, onGenericGroupUpdate, onGenericGuild, onGenericGuildMember, onGenericGuildMessage, onGenericGuildMessageReaction, onGenericGuildUpdate, onGenericGuildVoice, onGenericMessage, onGenericMessageReaction, onGenericPrivateMessage, onGenericPrivateMessageReaction, onGenericRelationship, onGenericRelationshipAdd, onGenericRelationshipRemove, onGenericRole, onGenericRoleUpdate, onGenericSelfUpdate, onGenericTextChannel, onGenericTextChannelUpdate, onGenericUpdate, onGenericUser, onGenericUserPresence, onGenericVoiceChannel, onGenericVoiceChannelUpdate, onGroupJoin, onGroupLeave, onGroupMessageDelete, onGroupMessageEmbed, onGroupMessageReactionAdd, onGroupMessageReactionRemove, onGroupMessageReactionRemoveAll, onGroupMessageReceived, onGroupMessageUpdate, onGroupUpdateIcon, onGroupUpdateName, onGroupUpdateOwner, onGroupUserJoin, onGroupUserLeave, onGuildAvailable, onGuildBan, onGuildJoin, onGuildLeave, onGuildMemberJoin, onGuildMemberLeave, onGuildMemberNickChange, onGuildMemberRoleAdd, onGuildMemberRoleRemove, onGuildMessageDelete, onGuildMessageEmbed, onGuildMessageReactionAdd, onGuildMessageReactionRemove, onGuildMessageReactionRemoveAll, onGuildMessageReceived, onGuildMessageUpdate, onGuildReady, onGuildUnavailable, onGuildUnban, onGuildUpdateAfkChannel, onGuildUpdateAfkTimeout, onGuildUpdateExplicitContentLevel, onGuildUpdateFeatures, onGuildUpdateIcon, onGuildUpdateMFALevel, onGuildUpdateName, onGuildUpdateNotificationLevel, onGuildUpdateOwner, onGuildUpdateRegion, onGuildUpdateSplash, onGuildUpdateSystemChannel, onGuildUpdateVerificationLevel, onGuildVoiceDeafen, onGuildVoiceGuildDeafen, onGuildVoiceGuildMute, onGuildVoiceJoin, onGuildVoiceLeave, onGuildVoiceMove, onGuildVoiceMute, onGuildVoiceSelfDeafen, onGuildVoiceSelfMute, onGuildVoiceSuppress, onGuildVoiceUpdate, onHttpRequest, onMessageBulkDelete, onMessageDelete, onMessageEmbed, onMessageReactionAdd, onMessageReactionRemove, onMessageReactionRemoveAll, onMessageUpdate, onPrivateChannelCreate, onPrivateChannelDelete, onPrivateMessageDelete, onPrivateMessageEmbed, onPrivateMessageReactionAdd, onPrivateMessageReactionRemove, onPrivateMessageReceived, onPrivateMessageUpdate, onReady, onReconnect, onResume, onRoleCreate, onRoleDelete, onRoleUpdateColor, onRoleUpdateHoisted, onRoleUpdateMentionable, onRoleUpdateName, onRoleUpdatePermissions, onRoleUpdatePosition, onSelfUpdateAvatar, onSelfUpdateEmail, onSelfUpdateMFA, onSelfUpdateName, onSelfUpdateVerified, onShutdown, onStatusChange, onTextChannelCreate, onTextChannelDelete, onTextChannelUpdateName, onTextChannelUpdateNSFW, onTextChannelUpdateParent, onTextChannelUpdatePermissions, onTextChannelUpdatePosition, onTextChannelUpdateSlowmode, onTextChannelUpdateTopic, onUnavailableGuildJoined, onUserBlocked, onUserTyping, onUserUnblocked, onUserUpdateAvatar, onUserUpdateDiscriminator, onUserUpdateGame, onUserUpdateName, onUserUpdateOnlineStatus, onVoiceChannelCreate, onVoiceChannelDelete, onVoiceChannelUpdateBitrate, onVoiceChannelUpdateName, onVoiceChannelUpdateParent, onVoiceChannelUpdatePermissions, onVoiceChannelUpdatePosition, onVoiceChannelUpdateUserLimit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BDOPatchStartCommand()-
public static java.lang.String getCommand()-
public static java.lang.String getCommandDescription()-
public void onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
onMessageReceived
in class net.dv8tion.jda.core.hooks.ListenerAdapter
@Deprecated
-public class BDOPatchStopCommand
-extends net.dv8tion.jda.core.hooks.ListenerAdapter
-Constructor and Description | -
---|
BDOPatchStopCommand()
-Deprecated.
- |
-
Modifier and Type | -Method and Description | -
---|---|
static java.lang.String |
-getCommand()
-Deprecated.
- |
-
static java.lang.String |
-getCommandDescription()
-Deprecated.
- |
-
void |
-onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Deprecated.
- |
-
onCallCreate, onCallDelete, onCallUpdateRegion, onCallUpdateRingingUsers, onCallVoiceJoin, onCallVoiceLeave, onCallVoiceSelfDeafen, onCallVoiceSelfMute, onCategoryCreate, onCategoryDelete, onCategoryUpdateName, onCategoryUpdatePermissions, onCategoryUpdatePosition, onDisconnect, onEmoteAdded, onEmoteRemoved, onEmoteUpdateName, onEmoteUpdateRoles, onEvent, onException, onFriendAdded, onFriendRemoved, onFriendRequestCanceled, onFriendRequestIgnored, onFriendRequestReceived, onFriendRequestSent, onGenericCall, onGenericCallUpdate, onGenericCallVoice, onGenericCategory, onGenericCategoryUpdate, onGenericEmote, onGenericEmoteUpdate, onGenericEvent, onGenericGroup, onGenericGroupMessage, onGenericGroupMessageReaction, onGenericGroupUpdate, onGenericGuild, onGenericGuildMember, onGenericGuildMessage, onGenericGuildMessageReaction, onGenericGuildUpdate, onGenericGuildVoice, onGenericMessage, onGenericMessageReaction, onGenericPrivateMessage, onGenericPrivateMessageReaction, onGenericRelationship, onGenericRelationshipAdd, onGenericRelationshipRemove, onGenericRole, onGenericRoleUpdate, onGenericSelfUpdate, onGenericTextChannel, onGenericTextChannelUpdate, onGenericUpdate, onGenericUser, onGenericUserPresence, onGenericVoiceChannel, onGenericVoiceChannelUpdate, onGroupJoin, onGroupLeave, onGroupMessageDelete, onGroupMessageEmbed, onGroupMessageReactionAdd, onGroupMessageReactionRemove, onGroupMessageReactionRemoveAll, onGroupMessageReceived, onGroupMessageUpdate, onGroupUpdateIcon, onGroupUpdateName, onGroupUpdateOwner, onGroupUserJoin, onGroupUserLeave, onGuildAvailable, onGuildBan, onGuildJoin, onGuildLeave, onGuildMemberJoin, onGuildMemberLeave, onGuildMemberNickChange, onGuildMemberRoleAdd, onGuildMemberRoleRemove, onGuildMessageDelete, onGuildMessageEmbed, onGuildMessageReactionAdd, onGuildMessageReactionRemove, onGuildMessageReactionRemoveAll, onGuildMessageReceived, onGuildMessageUpdate, onGuildReady, onGuildUnavailable, onGuildUnban, onGuildUpdateAfkChannel, onGuildUpdateAfkTimeout, onGuildUpdateExplicitContentLevel, onGuildUpdateFeatures, onGuildUpdateIcon, onGuildUpdateMFALevel, onGuildUpdateName, onGuildUpdateNotificationLevel, onGuildUpdateOwner, onGuildUpdateRegion, onGuildUpdateSplash, onGuildUpdateSystemChannel, onGuildUpdateVerificationLevel, onGuildVoiceDeafen, onGuildVoiceGuildDeafen, onGuildVoiceGuildMute, onGuildVoiceJoin, onGuildVoiceLeave, onGuildVoiceMove, onGuildVoiceMute, onGuildVoiceSelfDeafen, onGuildVoiceSelfMute, onGuildVoiceSuppress, onGuildVoiceUpdate, onHttpRequest, onMessageBulkDelete, onMessageDelete, onMessageEmbed, onMessageReactionAdd, onMessageReactionRemove, onMessageReactionRemoveAll, onMessageUpdate, onPrivateChannelCreate, onPrivateChannelDelete, onPrivateMessageDelete, onPrivateMessageEmbed, onPrivateMessageReactionAdd, onPrivateMessageReactionRemove, onPrivateMessageReceived, onPrivateMessageUpdate, onReady, onReconnect, onResume, onRoleCreate, onRoleDelete, onRoleUpdateColor, onRoleUpdateHoisted, onRoleUpdateMentionable, onRoleUpdateName, onRoleUpdatePermissions, onRoleUpdatePosition, onSelfUpdateAvatar, onSelfUpdateEmail, onSelfUpdateMFA, onSelfUpdateName, onSelfUpdateVerified, onShutdown, onStatusChange, onTextChannelCreate, onTextChannelDelete, onTextChannelUpdateName, onTextChannelUpdateNSFW, onTextChannelUpdateParent, onTextChannelUpdatePermissions, onTextChannelUpdatePosition, onTextChannelUpdateSlowmode, onTextChannelUpdateTopic, onUnavailableGuildJoined, onUserBlocked, onUserTyping, onUserUnblocked, onUserUpdateAvatar, onUserUpdateDiscriminator, onUserUpdateGame, onUserUpdateName, onUserUpdateOnlineStatus, onVoiceChannelCreate, onVoiceChannelDelete, onVoiceChannelUpdateBitrate, onVoiceChannelUpdateName, onVoiceChannelUpdateParent, onVoiceChannelUpdatePermissions, onVoiceChannelUpdatePosition, onVoiceChannelUpdateUserLimit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BDOPatchStopCommand()-
public static java.lang.String getCommand()-
public static java.lang.String getCommandDescription()-
public void onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
onMessageReceived
in class net.dv8tion.jda.core.hooks.ListenerAdapter
public class BDORSSReader
-extends java.lang.Object
-Constructor and Description | -
---|
BDORSSReader() |
-
Modifier and Type | -Method and Description | -
---|---|
static net.dv8tion.jda.core.entities.MessageEmbed |
-prepareRSStoEmbeddedMessage(RSSMessage message)
-Metodo per preparare il messaggio per discord in modalità da embedded
- |
-
static RSSMessage |
-readRSS(java.lang.String URL)
-Metodo per leggere un feed RSS
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static RSSMessage readRSS(java.lang.String URL)-
URL
- Url da cui bisogna leggere il feedpublic static net.dv8tion.jda.core.entities.MessageEmbed prepareRSStoEmbeddedMessage(RSSMessage message)-
message
- Ultimo feed prelevato dal metodo di letturareadRSS
,
-MessageEmbedded
public class BDORSScheduler
-extends java.lang.Object
-Constructor and Description | -
---|
BDORSScheduler() |
-
Modifier and Type | -Method and Description | -
---|---|
private static void |
-procedurePublish(RSSMessage rssNewsMessage,
- java.util.ArrayList<java.lang.String> newsBDOList,
- net.dv8tion.jda.core.JDA jda) |
-
private static void |
-publishMessage(net.dv8tion.jda.core.entities.MessageEmbed newsMessage,
- java.util.ArrayList<ServerToChannel> servers,
- net.dv8tion.jda.core.JDA jda) |
-
static java.util.TimerTask |
-taskFeedRSSBDO(net.dv8tion.jda.core.JDA jda) |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static java.util.TimerTask taskFeedRSSBDO(net.dv8tion.jda.core.JDA jda)-
private static void procedurePublish(RSSMessage rssNewsMessage, - java.util.ArrayList<java.lang.String> newsBDOList, - net.dv8tion.jda.core.JDA jda)-
private static void publishMessage(net.dv8tion.jda.core.entities.MessageEmbed newsMessage, - java.util.ArrayList<ServerToChannel> servers, - net.dv8tion.jda.core.JDA jda)-
Class | -Description | -
---|---|
BDONewsStartCommand | -Deprecated | -
BDONewsStopCommand | -Deprecated | -
BDOPatchStartCommand | -Deprecated | -
BDOPatchStopCommand | -Deprecated | -
BDORSScheduler | -- |
BDORSSReader | -- |
@Deprecated
-public class BDOBossStartCommand
-extends net.dv8tion.jda.core.hooks.ListenerAdapter
-Constructor and Description | -
---|
BDOBossStartCommand()
-Deprecated.
- |
-
Modifier and Type | -Method and Description | -
---|---|
static java.lang.String |
-getCommand()
-Deprecated.
- |
-
static java.lang.String |
-getCommandDescription()
-Deprecated.
- |
-
void |
-onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Deprecated.
- |
-
onCallCreate, onCallDelete, onCallUpdateRegion, onCallUpdateRingingUsers, onCallVoiceJoin, onCallVoiceLeave, onCallVoiceSelfDeafen, onCallVoiceSelfMute, onCategoryCreate, onCategoryDelete, onCategoryUpdateName, onCategoryUpdatePermissions, onCategoryUpdatePosition, onDisconnect, onEmoteAdded, onEmoteRemoved, onEmoteUpdateName, onEmoteUpdateRoles, onEvent, onException, onFriendAdded, onFriendRemoved, onFriendRequestCanceled, onFriendRequestIgnored, onFriendRequestReceived, onFriendRequestSent, onGenericCall, onGenericCallUpdate, onGenericCallVoice, onGenericCategory, onGenericCategoryUpdate, onGenericEmote, onGenericEmoteUpdate, onGenericEvent, onGenericGroup, onGenericGroupMessage, onGenericGroupMessageReaction, onGenericGroupUpdate, onGenericGuild, onGenericGuildMember, onGenericGuildMessage, onGenericGuildMessageReaction, onGenericGuildUpdate, onGenericGuildVoice, onGenericMessage, onGenericMessageReaction, onGenericPrivateMessage, onGenericPrivateMessageReaction, onGenericRelationship, onGenericRelationshipAdd, onGenericRelationshipRemove, onGenericRole, onGenericRoleUpdate, onGenericSelfUpdate, onGenericTextChannel, onGenericTextChannelUpdate, onGenericUpdate, onGenericUser, onGenericUserPresence, onGenericVoiceChannel, onGenericVoiceChannelUpdate, onGroupJoin, onGroupLeave, onGroupMessageDelete, onGroupMessageEmbed, onGroupMessageReactionAdd, onGroupMessageReactionRemove, onGroupMessageReactionRemoveAll, onGroupMessageReceived, onGroupMessageUpdate, onGroupUpdateIcon, onGroupUpdateName, onGroupUpdateOwner, onGroupUserJoin, onGroupUserLeave, onGuildAvailable, onGuildBan, onGuildJoin, onGuildLeave, onGuildMemberJoin, onGuildMemberLeave, onGuildMemberNickChange, onGuildMemberRoleAdd, onGuildMemberRoleRemove, onGuildMessageDelete, onGuildMessageEmbed, onGuildMessageReactionAdd, onGuildMessageReactionRemove, onGuildMessageReactionRemoveAll, onGuildMessageReceived, onGuildMessageUpdate, onGuildReady, onGuildUnavailable, onGuildUnban, onGuildUpdateAfkChannel, onGuildUpdateAfkTimeout, onGuildUpdateExplicitContentLevel, onGuildUpdateFeatures, onGuildUpdateIcon, onGuildUpdateMFALevel, onGuildUpdateName, onGuildUpdateNotificationLevel, onGuildUpdateOwner, onGuildUpdateRegion, onGuildUpdateSplash, onGuildUpdateSystemChannel, onGuildUpdateVerificationLevel, onGuildVoiceDeafen, onGuildVoiceGuildDeafen, onGuildVoiceGuildMute, onGuildVoiceJoin, onGuildVoiceLeave, onGuildVoiceMove, onGuildVoiceMute, onGuildVoiceSelfDeafen, onGuildVoiceSelfMute, onGuildVoiceSuppress, onGuildVoiceUpdate, onHttpRequest, onMessageBulkDelete, onMessageDelete, onMessageEmbed, onMessageReactionAdd, onMessageReactionRemove, onMessageReactionRemoveAll, onMessageUpdate, onPrivateChannelCreate, onPrivateChannelDelete, onPrivateMessageDelete, onPrivateMessageEmbed, onPrivateMessageReactionAdd, onPrivateMessageReactionRemove, onPrivateMessageReceived, onPrivateMessageUpdate, onReady, onReconnect, onResume, onRoleCreate, onRoleDelete, onRoleUpdateColor, onRoleUpdateHoisted, onRoleUpdateMentionable, onRoleUpdateName, onRoleUpdatePermissions, onRoleUpdatePosition, onSelfUpdateAvatar, onSelfUpdateEmail, onSelfUpdateMFA, onSelfUpdateName, onSelfUpdateVerified, onShutdown, onStatusChange, onTextChannelCreate, onTextChannelDelete, onTextChannelUpdateName, onTextChannelUpdateNSFW, onTextChannelUpdateParent, onTextChannelUpdatePermissions, onTextChannelUpdatePosition, onTextChannelUpdateSlowmode, onTextChannelUpdateTopic, onUnavailableGuildJoined, onUserBlocked, onUserTyping, onUserUnblocked, onUserUpdateAvatar, onUserUpdateDiscriminator, onUserUpdateGame, onUserUpdateName, onUserUpdateOnlineStatus, onVoiceChannelCreate, onVoiceChannelDelete, onVoiceChannelUpdateBitrate, onVoiceChannelUpdateName, onVoiceChannelUpdateParent, onVoiceChannelUpdatePermissions, onVoiceChannelUpdatePosition, onVoiceChannelUpdateUserLimit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BDOBossStartCommand()-
public static java.lang.String getCommand()-
public static java.lang.String getCommandDescription()-
public void onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
onMessageReceived
in class net.dv8tion.jda.core.hooks.ListenerAdapter
@Deprecated
-public class BDOBossStopCommand
-extends net.dv8tion.jda.core.hooks.ListenerAdapter
-Constructor and Description | -
---|
BDOBossStopCommand()
-Deprecated.
- |
-
Modifier and Type | -Method and Description | -
---|---|
static java.lang.String |
-getCommand()
-Deprecated.
- |
-
static java.lang.String |
-getCommandDescription()
-Deprecated.
- |
-
void |
-onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Deprecated.
- |
-
onCallCreate, onCallDelete, onCallUpdateRegion, onCallUpdateRingingUsers, onCallVoiceJoin, onCallVoiceLeave, onCallVoiceSelfDeafen, onCallVoiceSelfMute, onCategoryCreate, onCategoryDelete, onCategoryUpdateName, onCategoryUpdatePermissions, onCategoryUpdatePosition, onDisconnect, onEmoteAdded, onEmoteRemoved, onEmoteUpdateName, onEmoteUpdateRoles, onEvent, onException, onFriendAdded, onFriendRemoved, onFriendRequestCanceled, onFriendRequestIgnored, onFriendRequestReceived, onFriendRequestSent, onGenericCall, onGenericCallUpdate, onGenericCallVoice, onGenericCategory, onGenericCategoryUpdate, onGenericEmote, onGenericEmoteUpdate, onGenericEvent, onGenericGroup, onGenericGroupMessage, onGenericGroupMessageReaction, onGenericGroupUpdate, onGenericGuild, onGenericGuildMember, onGenericGuildMessage, onGenericGuildMessageReaction, onGenericGuildUpdate, onGenericGuildVoice, onGenericMessage, onGenericMessageReaction, onGenericPrivateMessage, onGenericPrivateMessageReaction, onGenericRelationship, onGenericRelationshipAdd, onGenericRelationshipRemove, onGenericRole, onGenericRoleUpdate, onGenericSelfUpdate, onGenericTextChannel, onGenericTextChannelUpdate, onGenericUpdate, onGenericUser, onGenericUserPresence, onGenericVoiceChannel, onGenericVoiceChannelUpdate, onGroupJoin, onGroupLeave, onGroupMessageDelete, onGroupMessageEmbed, onGroupMessageReactionAdd, onGroupMessageReactionRemove, onGroupMessageReactionRemoveAll, onGroupMessageReceived, onGroupMessageUpdate, onGroupUpdateIcon, onGroupUpdateName, onGroupUpdateOwner, onGroupUserJoin, onGroupUserLeave, onGuildAvailable, onGuildBan, onGuildJoin, onGuildLeave, onGuildMemberJoin, onGuildMemberLeave, onGuildMemberNickChange, onGuildMemberRoleAdd, onGuildMemberRoleRemove, onGuildMessageDelete, onGuildMessageEmbed, onGuildMessageReactionAdd, onGuildMessageReactionRemove, onGuildMessageReactionRemoveAll, onGuildMessageReceived, onGuildMessageUpdate, onGuildReady, onGuildUnavailable, onGuildUnban, onGuildUpdateAfkChannel, onGuildUpdateAfkTimeout, onGuildUpdateExplicitContentLevel, onGuildUpdateFeatures, onGuildUpdateIcon, onGuildUpdateMFALevel, onGuildUpdateName, onGuildUpdateNotificationLevel, onGuildUpdateOwner, onGuildUpdateRegion, onGuildUpdateSplash, onGuildUpdateSystemChannel, onGuildUpdateVerificationLevel, onGuildVoiceDeafen, onGuildVoiceGuildDeafen, onGuildVoiceGuildMute, onGuildVoiceJoin, onGuildVoiceLeave, onGuildVoiceMove, onGuildVoiceMute, onGuildVoiceSelfDeafen, onGuildVoiceSelfMute, onGuildVoiceSuppress, onGuildVoiceUpdate, onHttpRequest, onMessageBulkDelete, onMessageDelete, onMessageEmbed, onMessageReactionAdd, onMessageReactionRemove, onMessageReactionRemoveAll, onMessageUpdate, onPrivateChannelCreate, onPrivateChannelDelete, onPrivateMessageDelete, onPrivateMessageEmbed, onPrivateMessageReactionAdd, onPrivateMessageReactionRemove, onPrivateMessageReceived, onPrivateMessageUpdate, onReady, onReconnect, onResume, onRoleCreate, onRoleDelete, onRoleUpdateColor, onRoleUpdateHoisted, onRoleUpdateMentionable, onRoleUpdateName, onRoleUpdatePermissions, onRoleUpdatePosition, onSelfUpdateAvatar, onSelfUpdateEmail, onSelfUpdateMFA, onSelfUpdateName, onSelfUpdateVerified, onShutdown, onStatusChange, onTextChannelCreate, onTextChannelDelete, onTextChannelUpdateName, onTextChannelUpdateNSFW, onTextChannelUpdateParent, onTextChannelUpdatePermissions, onTextChannelUpdatePosition, onTextChannelUpdateSlowmode, onTextChannelUpdateTopic, onUnavailableGuildJoined, onUserBlocked, onUserTyping, onUserUnblocked, onUserUpdateAvatar, onUserUpdateDiscriminator, onUserUpdateGame, onUserUpdateName, onUserUpdateOnlineStatus, onVoiceChannelCreate, onVoiceChannelDelete, onVoiceChannelUpdateBitrate, onVoiceChannelUpdateName, onVoiceChannelUpdateParent, onVoiceChannelUpdatePermissions, onVoiceChannelUpdatePosition, onVoiceChannelUpdateUserLimit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public BDOBossStopCommand()-
public static java.lang.String getCommand()-
public static java.lang.String getCommandDescription()-
public void onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
onMessageReceived
in class net.dv8tion.jda.core.hooks.ListenerAdapter
public class BossJob
-extends java.lang.Object
-implements org.quartz.Job
-Modifier and Type | -Method and Description | -
---|---|
void |
-execute(org.quartz.JobExecutionContext context) |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public class BossRetriver
-extends java.lang.Object
-Constructor and Description | -
---|
BossRetriver() |
-
Modifier and Type | -Method and Description | -
---|---|
static java.util.ArrayList<Giorno> |
-getBossList()
-Ottieni la lista dei boss da file
- |
-
static void |
-processHour(int ora,
- int minuto,
- Giorno giorno)
-Processa l'ora per ottenere il boss
- |
-
private static void |
-processMinute0015(int ora,
- int minuto,
- Giorno giorno)
-Metodo per ottenere il boss che spawna alle 15
- |
-
private static void |
-processMinute4500(int ora,
- int minuto,
- Giorno giorno)
-Metodo per ottenere il boss che spawna alle 00
- |
-
private static void |
-publish(java.lang.String[] bosses,
- java.lang.String orarioMancante)
-Metoto per eseguire la pubblicazione dei messaggi
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static java.util.ArrayList<Giorno> getBossList()-
public static void processHour(int ora, - int minuto, - Giorno giorno)-
ora
- ora attualeminuto
- minuti attualigiorno
- giorno attualeprivate static void processMinute4500(int ora, - int minuto, - Giorno giorno)-
ora
- ora attualeminuto
- minuto attualegiorno
- giorno attualeprivate static void processMinute0015(int ora, - int minuto, - Giorno giorno)-
ora
- ora attualeminuto
- minuto attualegiorno
- giorno attualeprivate static void publish(java.lang.String[] bosses, - java.lang.String orarioMancante)-
bosses
- lista boss trovatiorarioMancante
- minuti mancanti allo spawn dei bossClass | -Description | -
---|---|
BDOBossStartCommand | -Deprecated | -
BDOBossStopCommand | -Deprecated | -
BossJob | -
- Job per l'ottenimento dei boss
- |
-
BossRetriver | -
- Classe per leggere il json dei boss
- |
-
Class | -Description | -
---|---|
BDOReceiver | -- |
public class JoinListener
-extends net.dv8tion.jda.core.hooks.ListenerAdapter
-Constructor and Description | -
---|
JoinListener() |
-
Modifier and Type | -Method and Description | -
---|---|
void |
-onGuildJoin(net.dv8tion.jda.core.events.guild.GuildJoinEvent event) |
-
void |
-onGuildLeave(net.dv8tion.jda.core.events.guild.GuildLeaveEvent event) |
-
void |
-onGuildUpdateName(net.dv8tion.jda.core.events.guild.update.GuildUpdateNameEvent event) |
-
onCallCreate, onCallDelete, onCallUpdateRegion, onCallUpdateRingingUsers, onCallVoiceJoin, onCallVoiceLeave, onCallVoiceSelfDeafen, onCallVoiceSelfMute, onCategoryCreate, onCategoryDelete, onCategoryUpdateName, onCategoryUpdatePermissions, onCategoryUpdatePosition, onDisconnect, onEmoteAdded, onEmoteRemoved, onEmoteUpdateName, onEmoteUpdateRoles, onEvent, onException, onFriendAdded, onFriendRemoved, onFriendRequestCanceled, onFriendRequestIgnored, onFriendRequestReceived, onFriendRequestSent, onGenericCall, onGenericCallUpdate, onGenericCallVoice, onGenericCategory, onGenericCategoryUpdate, onGenericEmote, onGenericEmoteUpdate, onGenericEvent, onGenericGroup, onGenericGroupMessage, onGenericGroupMessageReaction, onGenericGroupUpdate, onGenericGuild, onGenericGuildMember, onGenericGuildMessage, onGenericGuildMessageReaction, onGenericGuildUpdate, onGenericGuildVoice, onGenericMessage, onGenericMessageReaction, onGenericPrivateMessage, onGenericPrivateMessageReaction, onGenericRelationship, onGenericRelationshipAdd, onGenericRelationshipRemove, onGenericRole, onGenericRoleUpdate, onGenericSelfUpdate, onGenericTextChannel, onGenericTextChannelUpdate, onGenericUpdate, onGenericUser, onGenericUserPresence, onGenericVoiceChannel, onGenericVoiceChannelUpdate, onGroupJoin, onGroupLeave, onGroupMessageDelete, onGroupMessageEmbed, onGroupMessageReactionAdd, onGroupMessageReactionRemove, onGroupMessageReactionRemoveAll, onGroupMessageReceived, onGroupMessageUpdate, onGroupUpdateIcon, onGroupUpdateName, onGroupUpdateOwner, onGroupUserJoin, onGroupUserLeave, onGuildAvailable, onGuildBan, onGuildMemberJoin, onGuildMemberLeave, onGuildMemberNickChange, onGuildMemberRoleAdd, onGuildMemberRoleRemove, onGuildMessageDelete, onGuildMessageEmbed, onGuildMessageReactionAdd, onGuildMessageReactionRemove, onGuildMessageReactionRemoveAll, onGuildMessageReceived, onGuildMessageUpdate, onGuildReady, onGuildUnavailable, onGuildUnban, onGuildUpdateAfkChannel, onGuildUpdateAfkTimeout, onGuildUpdateExplicitContentLevel, onGuildUpdateFeatures, onGuildUpdateIcon, onGuildUpdateMFALevel, onGuildUpdateNotificationLevel, onGuildUpdateOwner, onGuildUpdateRegion, onGuildUpdateSplash, onGuildUpdateSystemChannel, onGuildUpdateVerificationLevel, onGuildVoiceDeafen, onGuildVoiceGuildDeafen, onGuildVoiceGuildMute, onGuildVoiceJoin, onGuildVoiceLeave, onGuildVoiceMove, onGuildVoiceMute, onGuildVoiceSelfDeafen, onGuildVoiceSelfMute, onGuildVoiceSuppress, onGuildVoiceUpdate, onHttpRequest, onMessageBulkDelete, onMessageDelete, onMessageEmbed, onMessageReactionAdd, onMessageReactionRemove, onMessageReactionRemoveAll, onMessageReceived, onMessageUpdate, onPrivateChannelCreate, onPrivateChannelDelete, onPrivateMessageDelete, onPrivateMessageEmbed, onPrivateMessageReactionAdd, onPrivateMessageReactionRemove, onPrivateMessageReceived, onPrivateMessageUpdate, onReady, onReconnect, onResume, onRoleCreate, onRoleDelete, onRoleUpdateColor, onRoleUpdateHoisted, onRoleUpdateMentionable, onRoleUpdateName, onRoleUpdatePermissions, onRoleUpdatePosition, onSelfUpdateAvatar, onSelfUpdateEmail, onSelfUpdateMFA, onSelfUpdateName, onSelfUpdateVerified, onShutdown, onStatusChange, onTextChannelCreate, onTextChannelDelete, onTextChannelUpdateName, onTextChannelUpdateNSFW, onTextChannelUpdateParent, onTextChannelUpdatePermissions, onTextChannelUpdatePosition, onTextChannelUpdateSlowmode, onTextChannelUpdateTopic, onUnavailableGuildJoined, onUserBlocked, onUserTyping, onUserUnblocked, onUserUpdateAvatar, onUserUpdateDiscriminator, onUserUpdateGame, onUserUpdateName, onUserUpdateOnlineStatus, onVoiceChannelCreate, onVoiceChannelDelete, onVoiceChannelUpdateBitrate, onVoiceChannelUpdateName, onVoiceChannelUpdateParent, onVoiceChannelUpdatePermissions, onVoiceChannelUpdatePosition, onVoiceChannelUpdateUserLimit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void onGuildJoin(net.dv8tion.jda.core.events.guild.GuildJoinEvent event)-
onGuildJoin
in class net.dv8tion.jda.core.hooks.ListenerAdapter
public void onGuildLeave(net.dv8tion.jda.core.events.guild.GuildLeaveEvent event)-
onGuildLeave
in class net.dv8tion.jda.core.hooks.ListenerAdapter
public void onGuildUpdateName(net.dv8tion.jda.core.events.guild.update.GuildUpdateNameEvent event)-
onGuildUpdateName
in class net.dv8tion.jda.core.hooks.ListenerAdapter
@Deprecated
-public class ConfigurationCommand
-extends net.dv8tion.jda.core.hooks.ListenerAdapter
-Constructor and Description | -
---|
ConfigurationCommand()
-Deprecated.
- |
-
Modifier and Type | -Method and Description | -
---|---|
private void |
-configuration(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Deprecated.
- |
-
static java.lang.String |
-getCommand()
-Deprecated.
- |
-
static java.lang.String |
-getCommandDescription()
-Deprecated.
- |
-
void |
-onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Deprecated.
- |
-
onCallCreate, onCallDelete, onCallUpdateRegion, onCallUpdateRingingUsers, onCallVoiceJoin, onCallVoiceLeave, onCallVoiceSelfDeafen, onCallVoiceSelfMute, onCategoryCreate, onCategoryDelete, onCategoryUpdateName, onCategoryUpdatePermissions, onCategoryUpdatePosition, onDisconnect, onEmoteAdded, onEmoteRemoved, onEmoteUpdateName, onEmoteUpdateRoles, onEvent, onException, onFriendAdded, onFriendRemoved, onFriendRequestCanceled, onFriendRequestIgnored, onFriendRequestReceived, onFriendRequestSent, onGenericCall, onGenericCallUpdate, onGenericCallVoice, onGenericCategory, onGenericCategoryUpdate, onGenericEmote, onGenericEmoteUpdate, onGenericEvent, onGenericGroup, onGenericGroupMessage, onGenericGroupMessageReaction, onGenericGroupUpdate, onGenericGuild, onGenericGuildMember, onGenericGuildMessage, onGenericGuildMessageReaction, onGenericGuildUpdate, onGenericGuildVoice, onGenericMessage, onGenericMessageReaction, onGenericPrivateMessage, onGenericPrivateMessageReaction, onGenericRelationship, onGenericRelationshipAdd, onGenericRelationshipRemove, onGenericRole, onGenericRoleUpdate, onGenericSelfUpdate, onGenericTextChannel, onGenericTextChannelUpdate, onGenericUpdate, onGenericUser, onGenericUserPresence, onGenericVoiceChannel, onGenericVoiceChannelUpdate, onGroupJoin, onGroupLeave, onGroupMessageDelete, onGroupMessageEmbed, onGroupMessageReactionAdd, onGroupMessageReactionRemove, onGroupMessageReactionRemoveAll, onGroupMessageReceived, onGroupMessageUpdate, onGroupUpdateIcon, onGroupUpdateName, onGroupUpdateOwner, onGroupUserJoin, onGroupUserLeave, onGuildAvailable, onGuildBan, onGuildJoin, onGuildLeave, onGuildMemberJoin, onGuildMemberLeave, onGuildMemberNickChange, onGuildMemberRoleAdd, onGuildMemberRoleRemove, onGuildMessageDelete, onGuildMessageEmbed, onGuildMessageReactionAdd, onGuildMessageReactionRemove, onGuildMessageReactionRemoveAll, onGuildMessageReceived, onGuildMessageUpdate, onGuildReady, onGuildUnavailable, onGuildUnban, onGuildUpdateAfkChannel, onGuildUpdateAfkTimeout, onGuildUpdateExplicitContentLevel, onGuildUpdateFeatures, onGuildUpdateIcon, onGuildUpdateMFALevel, onGuildUpdateName, onGuildUpdateNotificationLevel, onGuildUpdateOwner, onGuildUpdateRegion, onGuildUpdateSplash, onGuildUpdateSystemChannel, onGuildUpdateVerificationLevel, onGuildVoiceDeafen, onGuildVoiceGuildDeafen, onGuildVoiceGuildMute, onGuildVoiceJoin, onGuildVoiceLeave, onGuildVoiceMove, onGuildVoiceMute, onGuildVoiceSelfDeafen, onGuildVoiceSelfMute, onGuildVoiceSuppress, onGuildVoiceUpdate, onHttpRequest, onMessageBulkDelete, onMessageDelete, onMessageEmbed, onMessageReactionAdd, onMessageReactionRemove, onMessageReactionRemoveAll, onMessageUpdate, onPrivateChannelCreate, onPrivateChannelDelete, onPrivateMessageDelete, onPrivateMessageEmbed, onPrivateMessageReactionAdd, onPrivateMessageReactionRemove, onPrivateMessageReceived, onPrivateMessageUpdate, onReady, onReconnect, onResume, onRoleCreate, onRoleDelete, onRoleUpdateColor, onRoleUpdateHoisted, onRoleUpdateMentionable, onRoleUpdateName, onRoleUpdatePermissions, onRoleUpdatePosition, onSelfUpdateAvatar, onSelfUpdateEmail, onSelfUpdateMFA, onSelfUpdateName, onSelfUpdateVerified, onShutdown, onStatusChange, onTextChannelCreate, onTextChannelDelete, onTextChannelUpdateName, onTextChannelUpdateNSFW, onTextChannelUpdateParent, onTextChannelUpdatePermissions, onTextChannelUpdatePosition, onTextChannelUpdateSlowmode, onTextChannelUpdateTopic, onUnavailableGuildJoined, onUserBlocked, onUserTyping, onUserUnblocked, onUserUpdateAvatar, onUserUpdateDiscriminator, onUserUpdateGame, onUserUpdateName, onUserUpdateOnlineStatus, onVoiceChannelCreate, onVoiceChannelDelete, onVoiceChannelUpdateBitrate, onVoiceChannelUpdateName, onVoiceChannelUpdateParent, onVoiceChannelUpdatePermissions, onVoiceChannelUpdatePosition, onVoiceChannelUpdateUserLimit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ConfigurationCommand()-
public static java.lang.String getCommand()-
public static java.lang.String getCommandDescription()-
public void onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
onMessageReceived
in class net.dv8tion.jda.core.hooks.ListenerAdapter
private void configuration(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
public class ConfigurationReceiver
-extends net.dv8tion.jda.core.hooks.ListenerAdapter
-Constructor and Description | -
---|
ConfigurationReceiver() |
-
Modifier and Type | -Method and Description | -
---|---|
private void |
-configuration(net.dv8tion.jda.core.events.message.MessageReceivedEvent event) |
-
static java.lang.String |
-getConfigurationCommandCommand() |
-
static java.lang.String |
-getConfigurationCommandCommandDescription() |
-
java.lang.String |
-getHelpCommand() |
-
static java.lang.String |
-getInfoCommand() |
-
static java.lang.String |
-getInfoCommandDescription() |
-
void |
-onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event) |
-
onCallCreate, onCallDelete, onCallUpdateRegion, onCallUpdateRingingUsers, onCallVoiceJoin, onCallVoiceLeave, onCallVoiceSelfDeafen, onCallVoiceSelfMute, onCategoryCreate, onCategoryDelete, onCategoryUpdateName, onCategoryUpdatePermissions, onCategoryUpdatePosition, onDisconnect, onEmoteAdded, onEmoteRemoved, onEmoteUpdateName, onEmoteUpdateRoles, onEvent, onException, onFriendAdded, onFriendRemoved, onFriendRequestCanceled, onFriendRequestIgnored, onFriendRequestReceived, onFriendRequestSent, onGenericCall, onGenericCallUpdate, onGenericCallVoice, onGenericCategory, onGenericCategoryUpdate, onGenericEmote, onGenericEmoteUpdate, onGenericEvent, onGenericGroup, onGenericGroupMessage, onGenericGroupMessageReaction, onGenericGroupUpdate, onGenericGuild, onGenericGuildMember, onGenericGuildMessage, onGenericGuildMessageReaction, onGenericGuildUpdate, onGenericGuildVoice, onGenericMessage, onGenericMessageReaction, onGenericPrivateMessage, onGenericPrivateMessageReaction, onGenericRelationship, onGenericRelationshipAdd, onGenericRelationshipRemove, onGenericRole, onGenericRoleUpdate, onGenericSelfUpdate, onGenericTextChannel, onGenericTextChannelUpdate, onGenericUpdate, onGenericUser, onGenericUserPresence, onGenericVoiceChannel, onGenericVoiceChannelUpdate, onGroupJoin, onGroupLeave, onGroupMessageDelete, onGroupMessageEmbed, onGroupMessageReactionAdd, onGroupMessageReactionRemove, onGroupMessageReactionRemoveAll, onGroupMessageReceived, onGroupMessageUpdate, onGroupUpdateIcon, onGroupUpdateName, onGroupUpdateOwner, onGroupUserJoin, onGroupUserLeave, onGuildAvailable, onGuildBan, onGuildJoin, onGuildLeave, onGuildMemberJoin, onGuildMemberLeave, onGuildMemberNickChange, onGuildMemberRoleAdd, onGuildMemberRoleRemove, onGuildMessageDelete, onGuildMessageEmbed, onGuildMessageReactionAdd, onGuildMessageReactionRemove, onGuildMessageReactionRemoveAll, onGuildMessageReceived, onGuildMessageUpdate, onGuildReady, onGuildUnavailable, onGuildUnban, onGuildUpdateAfkChannel, onGuildUpdateAfkTimeout, onGuildUpdateExplicitContentLevel, onGuildUpdateFeatures, onGuildUpdateIcon, onGuildUpdateMFALevel, onGuildUpdateName, onGuildUpdateNotificationLevel, onGuildUpdateOwner, onGuildUpdateRegion, onGuildUpdateSplash, onGuildUpdateSystemChannel, onGuildUpdateVerificationLevel, onGuildVoiceDeafen, onGuildVoiceGuildDeafen, onGuildVoiceGuildMute, onGuildVoiceJoin, onGuildVoiceLeave, onGuildVoiceMove, onGuildVoiceMute, onGuildVoiceSelfDeafen, onGuildVoiceSelfMute, onGuildVoiceSuppress, onGuildVoiceUpdate, onHttpRequest, onMessageBulkDelete, onMessageDelete, onMessageEmbed, onMessageReactionAdd, onMessageReactionRemove, onMessageReactionRemoveAll, onMessageUpdate, onPrivateChannelCreate, onPrivateChannelDelete, onPrivateMessageDelete, onPrivateMessageEmbed, onPrivateMessageReactionAdd, onPrivateMessageReactionRemove, onPrivateMessageReceived, onPrivateMessageUpdate, onReady, onReconnect, onResume, onRoleCreate, onRoleDelete, onRoleUpdateColor, onRoleUpdateHoisted, onRoleUpdateMentionable, onRoleUpdateName, onRoleUpdatePermissions, onRoleUpdatePosition, onSelfUpdateAvatar, onSelfUpdateEmail, onSelfUpdateMFA, onSelfUpdateName, onSelfUpdateVerified, onShutdown, onStatusChange, onTextChannelCreate, onTextChannelDelete, onTextChannelUpdateName, onTextChannelUpdateNSFW, onTextChannelUpdateParent, onTextChannelUpdatePermissions, onTextChannelUpdatePosition, onTextChannelUpdateSlowmode, onTextChannelUpdateTopic, onUnavailableGuildJoined, onUserBlocked, onUserTyping, onUserUnblocked, onUserUpdateAvatar, onUserUpdateDiscriminator, onUserUpdateGame, onUserUpdateName, onUserUpdateOnlineStatus, onVoiceChannelCreate, onVoiceChannelDelete, onVoiceChannelUpdateBitrate, onVoiceChannelUpdateName, onVoiceChannelUpdateParent, onVoiceChannelUpdatePermissions, onVoiceChannelUpdatePosition, onVoiceChannelUpdateUserLimit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static java.lang.String getConfigurationCommandCommand()-
public static java.lang.String getConfigurationCommandCommandDescription()-
public static java.lang.String getInfoCommand()-
public static java.lang.String getInfoCommandDescription()-
public java.lang.String getHelpCommand()-
public void onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
onMessageReceived
in class net.dv8tion.jda.core.hooks.ListenerAdapter
private void configuration(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
@Deprecated
-public class HelpCommand
-extends net.dv8tion.jda.core.hooks.ListenerAdapter
-Constructor and Description | -
---|
HelpCommand()
-Deprecated.
- |
-
Modifier and Type | -Method and Description | -
---|---|
java.lang.String |
-getCommand()
-Deprecated.
- |
-
java.lang.String |
-getCommandDescription()
-Deprecated.
- |
-
void |
-onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Deprecated.
- |
-
onCallCreate, onCallDelete, onCallUpdateRegion, onCallUpdateRingingUsers, onCallVoiceJoin, onCallVoiceLeave, onCallVoiceSelfDeafen, onCallVoiceSelfMute, onCategoryCreate, onCategoryDelete, onCategoryUpdateName, onCategoryUpdatePermissions, onCategoryUpdatePosition, onDisconnect, onEmoteAdded, onEmoteRemoved, onEmoteUpdateName, onEmoteUpdateRoles, onEvent, onException, onFriendAdded, onFriendRemoved, onFriendRequestCanceled, onFriendRequestIgnored, onFriendRequestReceived, onFriendRequestSent, onGenericCall, onGenericCallUpdate, onGenericCallVoice, onGenericCategory, onGenericCategoryUpdate, onGenericEmote, onGenericEmoteUpdate, onGenericEvent, onGenericGroup, onGenericGroupMessage, onGenericGroupMessageReaction, onGenericGroupUpdate, onGenericGuild, onGenericGuildMember, onGenericGuildMessage, onGenericGuildMessageReaction, onGenericGuildUpdate, onGenericGuildVoice, onGenericMessage, onGenericMessageReaction, onGenericPrivateMessage, onGenericPrivateMessageReaction, onGenericRelationship, onGenericRelationshipAdd, onGenericRelationshipRemove, onGenericRole, onGenericRoleUpdate, onGenericSelfUpdate, onGenericTextChannel, onGenericTextChannelUpdate, onGenericUpdate, onGenericUser, onGenericUserPresence, onGenericVoiceChannel, onGenericVoiceChannelUpdate, onGroupJoin, onGroupLeave, onGroupMessageDelete, onGroupMessageEmbed, onGroupMessageReactionAdd, onGroupMessageReactionRemove, onGroupMessageReactionRemoveAll, onGroupMessageReceived, onGroupMessageUpdate, onGroupUpdateIcon, onGroupUpdateName, onGroupUpdateOwner, onGroupUserJoin, onGroupUserLeave, onGuildAvailable, onGuildBan, onGuildJoin, onGuildLeave, onGuildMemberJoin, onGuildMemberLeave, onGuildMemberNickChange, onGuildMemberRoleAdd, onGuildMemberRoleRemove, onGuildMessageDelete, onGuildMessageEmbed, onGuildMessageReactionAdd, onGuildMessageReactionRemove, onGuildMessageReactionRemoveAll, onGuildMessageReceived, onGuildMessageUpdate, onGuildReady, onGuildUnavailable, onGuildUnban, onGuildUpdateAfkChannel, onGuildUpdateAfkTimeout, onGuildUpdateExplicitContentLevel, onGuildUpdateFeatures, onGuildUpdateIcon, onGuildUpdateMFALevel, onGuildUpdateName, onGuildUpdateNotificationLevel, onGuildUpdateOwner, onGuildUpdateRegion, onGuildUpdateSplash, onGuildUpdateSystemChannel, onGuildUpdateVerificationLevel, onGuildVoiceDeafen, onGuildVoiceGuildDeafen, onGuildVoiceGuildMute, onGuildVoiceJoin, onGuildVoiceLeave, onGuildVoiceMove, onGuildVoiceMute, onGuildVoiceSelfDeafen, onGuildVoiceSelfMute, onGuildVoiceSuppress, onGuildVoiceUpdate, onHttpRequest, onMessageBulkDelete, onMessageDelete, onMessageEmbed, onMessageReactionAdd, onMessageReactionRemove, onMessageReactionRemoveAll, onMessageUpdate, onPrivateChannelCreate, onPrivateChannelDelete, onPrivateMessageDelete, onPrivateMessageEmbed, onPrivateMessageReactionAdd, onPrivateMessageReactionRemove, onPrivateMessageReceived, onPrivateMessageUpdate, onReady, onReconnect, onResume, onRoleCreate, onRoleDelete, onRoleUpdateColor, onRoleUpdateHoisted, onRoleUpdateMentionable, onRoleUpdateName, onRoleUpdatePermissions, onRoleUpdatePosition, onSelfUpdateAvatar, onSelfUpdateEmail, onSelfUpdateMFA, onSelfUpdateName, onSelfUpdateVerified, onShutdown, onStatusChange, onTextChannelCreate, onTextChannelDelete, onTextChannelUpdateName, onTextChannelUpdateNSFW, onTextChannelUpdateParent, onTextChannelUpdatePermissions, onTextChannelUpdatePosition, onTextChannelUpdateSlowmode, onTextChannelUpdateTopic, onUnavailableGuildJoined, onUserBlocked, onUserTyping, onUserUnblocked, onUserUpdateAvatar, onUserUpdateDiscriminator, onUserUpdateGame, onUserUpdateName, onUserUpdateOnlineStatus, onVoiceChannelCreate, onVoiceChannelDelete, onVoiceChannelUpdateBitrate, onVoiceChannelUpdateName, onVoiceChannelUpdateParent, onVoiceChannelUpdatePermissions, onVoiceChannelUpdatePosition, onVoiceChannelUpdateUserLimit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public java.lang.String getCommand()-
public java.lang.String getCommandDescription()-
public void onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
onMessageReceived
in class net.dv8tion.jda.core.hooks.ListenerAdapter
@Deprecated
-public class InfoCommand
-extends net.dv8tion.jda.core.hooks.ListenerAdapter
-Constructor and Description | -
---|
InfoCommand()
-Deprecated.
- |
-
Modifier and Type | -Method and Description | -
---|---|
static java.lang.String |
-getCommand()
-Deprecated.
- |
-
static java.lang.String |
-getCommandDescription()
-Deprecated.
- |
-
void |
-onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Deprecated.
- |
-
onCallCreate, onCallDelete, onCallUpdateRegion, onCallUpdateRingingUsers, onCallVoiceJoin, onCallVoiceLeave, onCallVoiceSelfDeafen, onCallVoiceSelfMute, onCategoryCreate, onCategoryDelete, onCategoryUpdateName, onCategoryUpdatePermissions, onCategoryUpdatePosition, onDisconnect, onEmoteAdded, onEmoteRemoved, onEmoteUpdateName, onEmoteUpdateRoles, onEvent, onException, onFriendAdded, onFriendRemoved, onFriendRequestCanceled, onFriendRequestIgnored, onFriendRequestReceived, onFriendRequestSent, onGenericCall, onGenericCallUpdate, onGenericCallVoice, onGenericCategory, onGenericCategoryUpdate, onGenericEmote, onGenericEmoteUpdate, onGenericEvent, onGenericGroup, onGenericGroupMessage, onGenericGroupMessageReaction, onGenericGroupUpdate, onGenericGuild, onGenericGuildMember, onGenericGuildMessage, onGenericGuildMessageReaction, onGenericGuildUpdate, onGenericGuildVoice, onGenericMessage, onGenericMessageReaction, onGenericPrivateMessage, onGenericPrivateMessageReaction, onGenericRelationship, onGenericRelationshipAdd, onGenericRelationshipRemove, onGenericRole, onGenericRoleUpdate, onGenericSelfUpdate, onGenericTextChannel, onGenericTextChannelUpdate, onGenericUpdate, onGenericUser, onGenericUserPresence, onGenericVoiceChannel, onGenericVoiceChannelUpdate, onGroupJoin, onGroupLeave, onGroupMessageDelete, onGroupMessageEmbed, onGroupMessageReactionAdd, onGroupMessageReactionRemove, onGroupMessageReactionRemoveAll, onGroupMessageReceived, onGroupMessageUpdate, onGroupUpdateIcon, onGroupUpdateName, onGroupUpdateOwner, onGroupUserJoin, onGroupUserLeave, onGuildAvailable, onGuildBan, onGuildJoin, onGuildLeave, onGuildMemberJoin, onGuildMemberLeave, onGuildMemberNickChange, onGuildMemberRoleAdd, onGuildMemberRoleRemove, onGuildMessageDelete, onGuildMessageEmbed, onGuildMessageReactionAdd, onGuildMessageReactionRemove, onGuildMessageReactionRemoveAll, onGuildMessageReceived, onGuildMessageUpdate, onGuildReady, onGuildUnavailable, onGuildUnban, onGuildUpdateAfkChannel, onGuildUpdateAfkTimeout, onGuildUpdateExplicitContentLevel, onGuildUpdateFeatures, onGuildUpdateIcon, onGuildUpdateMFALevel, onGuildUpdateName, onGuildUpdateNotificationLevel, onGuildUpdateOwner, onGuildUpdateRegion, onGuildUpdateSplash, onGuildUpdateSystemChannel, onGuildUpdateVerificationLevel, onGuildVoiceDeafen, onGuildVoiceGuildDeafen, onGuildVoiceGuildMute, onGuildVoiceJoin, onGuildVoiceLeave, onGuildVoiceMove, onGuildVoiceMute, onGuildVoiceSelfDeafen, onGuildVoiceSelfMute, onGuildVoiceSuppress, onGuildVoiceUpdate, onHttpRequest, onMessageBulkDelete, onMessageDelete, onMessageEmbed, onMessageReactionAdd, onMessageReactionRemove, onMessageReactionRemoveAll, onMessageUpdate, onPrivateChannelCreate, onPrivateChannelDelete, onPrivateMessageDelete, onPrivateMessageEmbed, onPrivateMessageReactionAdd, onPrivateMessageReactionRemove, onPrivateMessageReceived, onPrivateMessageUpdate, onReady, onReconnect, onResume, onRoleCreate, onRoleDelete, onRoleUpdateColor, onRoleUpdateHoisted, onRoleUpdateMentionable, onRoleUpdateName, onRoleUpdatePermissions, onRoleUpdatePosition, onSelfUpdateAvatar, onSelfUpdateEmail, onSelfUpdateMFA, onSelfUpdateName, onSelfUpdateVerified, onShutdown, onStatusChange, onTextChannelCreate, onTextChannelDelete, onTextChannelUpdateName, onTextChannelUpdateNSFW, onTextChannelUpdateParent, onTextChannelUpdatePermissions, onTextChannelUpdatePosition, onTextChannelUpdateSlowmode, onTextChannelUpdateTopic, onUnavailableGuildJoined, onUserBlocked, onUserTyping, onUserUnblocked, onUserUpdateAvatar, onUserUpdateDiscriminator, onUserUpdateGame, onUserUpdateName, onUserUpdateOnlineStatus, onVoiceChannelCreate, onVoiceChannelDelete, onVoiceChannelUpdateBitrate, onVoiceChannelUpdateName, onVoiceChannelUpdateParent, onVoiceChannelUpdatePermissions, onVoiceChannelUpdatePosition, onVoiceChannelUpdateUserLimit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static java.lang.String getCommand()-
public static java.lang.String getCommandDescription()-
public void onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
onMessageReceived
in class net.dv8tion.jda.core.hooks.ListenerAdapter
Class | -Description | -
---|---|
ConfigurationCommand | -Deprecated | -
ConfigurationReceiver | -- |
HelpCommand | -Deprecated | -
InfoCommand | -Deprecated | -
Class | -Description | -
---|---|
JoinListener | -- |
public class AudioPlayerSendHandler
-extends java.lang.Object
-implements net.dv8tion.jda.core.audio.AudioSendHandler
-Modifier and Type | -Field and Description | -
---|---|
private com.sedmelluq.discord.lavaplayer.player.AudioPlayer |
-audioPlayer |
-
private com.sedmelluq.discord.lavaplayer.track.playback.AudioFrame |
-lastFrame |
-
INPUT_FORMAT
Constructor and Description | -
---|
AudioPlayerSendHandler(com.sedmelluq.discord.lavaplayer.player.AudioPlayer audioPlayer) |
-
Modifier and Type | -Method and Description | -
---|---|
boolean |
-canProvide() |
-
boolean |
-isOpus() |
-
byte[] |
-provide20MsAudio() |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
private final com.sedmelluq.discord.lavaplayer.player.AudioPlayer audioPlayer-
private com.sedmelluq.discord.lavaplayer.track.playback.AudioFrame lastFrame-
public AudioPlayerSendHandler(com.sedmelluq.discord.lavaplayer.player.AudioPlayer audioPlayer)-
audioPlayer
- Audio player to wrap.public boolean canProvide()-
canProvide
in interface net.dv8tion.jda.core.audio.AudioSendHandler
public byte[] provide20MsAudio()-
provide20MsAudio
in interface net.dv8tion.jda.core.audio.AudioSendHandler
public boolean isOpus()-
isOpus
in interface net.dv8tion.jda.core.audio.AudioSendHandler
public class GuildMusicManager
-extends java.lang.Object
-Modifier and Type | -Field and Description | -
---|---|
com.sedmelluq.discord.lavaplayer.player.AudioPlayer |
-player
-Audio player for the guild.
- |
-
TrackScheduler |
-scheduler
-Track scheduler for the player.
- |
-
AudioPlayerSendHandler |
-sendHandler
-Wrapper around AudioPlayer to use it as an AudioSendHandler.
- |
-
Constructor and Description | -
---|
GuildMusicManager(com.sedmelluq.discord.lavaplayer.player.AudioPlayerManager manager)
-Creates a player and a track scheduler.
- |
-
public final com.sedmelluq.discord.lavaplayer.player.AudioPlayer player-
public final TrackScheduler scheduler-
public final AudioPlayerSendHandler sendHandler-
public class MusicManager
-extends java.lang.Object
-Modifier and Type | -Field and Description | -
---|---|
private static int |
-DEFAULT_VOLUME |
-
private java.util.Map<java.lang.String,GuildMusicManager> |
-musicManagers |
-
private com.sedmelluq.discord.lavaplayer.player.AudioPlayerManager |
-playerManager |
-
Constructor and Description | -
---|
MusicManager() |
-
Modifier and Type | -Method and Description | -
---|---|
private void |
-changeVolume(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Metodo per cambiare il volume, attualmente non in uso.
- |
-
(package private) void |
-clearQueue(net.dv8tion.jda.core.events.message.MessageReceivedEvent event) |
-
(package private) void |
-getListQueue(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Metodo per ottenere la lista della coda
- |
-
private GuildMusicManager |
-getMusicManager(java.lang.String guildId) |
-
private static java.lang.String |
-getTimestamp(long milliseconds) |
-
private static java.lang.String |
-getUrl(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Parsing del messaggio per ottenere l'url
- |
-
private void |
-join(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Metodo per eseguire il join nel canale
- |
-
(package private) void |
-leave(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Metodo per far uscire il bot dalla lobby, bloccherà la queue
- e la svuoterà
- |
-
private void |
-loadAndPlay(GuildMusicManager mng,
- net.dv8tion.jda.core.entities.MessageChannel channel,
- java.lang.String url,
- boolean addPlaylist)
-Metodo per caricare una traccia o una playlist nella coda
- |
-
(package private) void |
-nowPlay(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Metodo per ottenere la traccia attualmente in riproduzione
- |
-
(package private) void |
-pauseResume(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Metodo per mettere in pausa o riprendere la traccia attualmente
- in riproduzione
- |
-
(package private) void |
-play(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Metodo per riprodurre l'url audio passato come parametro
- |
-
(package private) void |
-playPlaylist(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Metodo per riprodurre una playlist dall'url passato come parametro
- |
-
(package private) void |
-repeat(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Metodo per ripetere la traccia attualmente in riproduzione
- |
-
(package private) void |
-reset(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Metodo per resettare il bot in caso di problemi.
- |
-
(package private) void |
-restart(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Metodo per riavviare la traccia attualmente in riproduzione
- |
-
(package private) void |
-shuffleQueue(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Metodo per randomizzare la coda
- |
-
(package private) void |
-skip(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Metodo per saltare la traccia attualmente in riproduzione
- |
-
(package private) void |
-stop(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Metodo per stoppare la riproduzione e pulire la coda
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
private static final int DEFAULT_VOLUME-
private final java.util.Map<java.lang.String,GuildMusicManager> musicManagers-
private com.sedmelluq.discord.lavaplayer.player.AudioPlayerManager playerManager-
private static java.lang.String getUrl(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
event
- private static java.lang.String getTimestamp(long milliseconds)-
private void join(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
event
- void leave(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
event
- void play(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
event
- void playPlaylist(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
event
- void skip(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
event
- void pauseResume(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
event
- void stop(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
event
- private void changeVolume(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
event
- void restart(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
event
- void repeat(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
event
- void reset(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
event
- void nowPlay(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
event
- void getListQueue(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
event
- void shuffleQueue(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
event
- void clearQueue(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
private void loadAndPlay(GuildMusicManager mng, - net.dv8tion.jda.core.entities.MessageChannel channel, - java.lang.String url, - boolean addPlaylist)-
mng
- channel
- url
- addPlaylist
- private GuildMusicManager getMusicManager(java.lang.String guildId)-
public class PlayerControlCommand
-extends net.dv8tion.jda.core.hooks.ListenerAdapter
-Modifier and Type | -Field and Description | -
---|---|
private MusicManager |
-musicManager |
-
Constructor and Description | -
---|
PlayerControlCommand() |
-
Modifier and Type | -Method and Description | -
---|---|
void |
-onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event) |
-
onCallCreate, onCallDelete, onCallUpdateRegion, onCallUpdateRingingUsers, onCallVoiceJoin, onCallVoiceLeave, onCallVoiceSelfDeafen, onCallVoiceSelfMute, onCategoryCreate, onCategoryDelete, onCategoryUpdateName, onCategoryUpdatePermissions, onCategoryUpdatePosition, onDisconnect, onEmoteAdded, onEmoteRemoved, onEmoteUpdateName, onEmoteUpdateRoles, onEvent, onException, onFriendAdded, onFriendRemoved, onFriendRequestCanceled, onFriendRequestIgnored, onFriendRequestReceived, onFriendRequestSent, onGenericCall, onGenericCallUpdate, onGenericCallVoice, onGenericCategory, onGenericCategoryUpdate, onGenericEmote, onGenericEmoteUpdate, onGenericEvent, onGenericGroup, onGenericGroupMessage, onGenericGroupMessageReaction, onGenericGroupUpdate, onGenericGuild, onGenericGuildMember, onGenericGuildMessage, onGenericGuildMessageReaction, onGenericGuildUpdate, onGenericGuildVoice, onGenericMessage, onGenericMessageReaction, onGenericPrivateMessage, onGenericPrivateMessageReaction, onGenericRelationship, onGenericRelationshipAdd, onGenericRelationshipRemove, onGenericRole, onGenericRoleUpdate, onGenericSelfUpdate, onGenericTextChannel, onGenericTextChannelUpdate, onGenericUpdate, onGenericUser, onGenericUserPresence, onGenericVoiceChannel, onGenericVoiceChannelUpdate, onGroupJoin, onGroupLeave, onGroupMessageDelete, onGroupMessageEmbed, onGroupMessageReactionAdd, onGroupMessageReactionRemove, onGroupMessageReactionRemoveAll, onGroupMessageReceived, onGroupMessageUpdate, onGroupUpdateIcon, onGroupUpdateName, onGroupUpdateOwner, onGroupUserJoin, onGroupUserLeave, onGuildAvailable, onGuildBan, onGuildJoin, onGuildLeave, onGuildMemberJoin, onGuildMemberLeave, onGuildMemberNickChange, onGuildMemberRoleAdd, onGuildMemberRoleRemove, onGuildMessageDelete, onGuildMessageEmbed, onGuildMessageReactionAdd, onGuildMessageReactionRemove, onGuildMessageReactionRemoveAll, onGuildMessageReceived, onGuildMessageUpdate, onGuildReady, onGuildUnavailable, onGuildUnban, onGuildUpdateAfkChannel, onGuildUpdateAfkTimeout, onGuildUpdateExplicitContentLevel, onGuildUpdateFeatures, onGuildUpdateIcon, onGuildUpdateMFALevel, onGuildUpdateName, onGuildUpdateNotificationLevel, onGuildUpdateOwner, onGuildUpdateRegion, onGuildUpdateSplash, onGuildUpdateSystemChannel, onGuildUpdateVerificationLevel, onGuildVoiceDeafen, onGuildVoiceGuildDeafen, onGuildVoiceGuildMute, onGuildVoiceJoin, onGuildVoiceLeave, onGuildVoiceMove, onGuildVoiceMute, onGuildVoiceSelfDeafen, onGuildVoiceSelfMute, onGuildVoiceSuppress, onGuildVoiceUpdate, onHttpRequest, onMessageBulkDelete, onMessageDelete, onMessageEmbed, onMessageReactionAdd, onMessageReactionRemove, onMessageReactionRemoveAll, onMessageUpdate, onPrivateChannelCreate, onPrivateChannelDelete, onPrivateMessageDelete, onPrivateMessageEmbed, onPrivateMessageReactionAdd, onPrivateMessageReactionRemove, onPrivateMessageReceived, onPrivateMessageUpdate, onReady, onReconnect, onResume, onRoleCreate, onRoleDelete, onRoleUpdateColor, onRoleUpdateHoisted, onRoleUpdateMentionable, onRoleUpdateName, onRoleUpdatePermissions, onRoleUpdatePosition, onSelfUpdateAvatar, onSelfUpdateEmail, onSelfUpdateMFA, onSelfUpdateName, onSelfUpdateVerified, onShutdown, onStatusChange, onTextChannelCreate, onTextChannelDelete, onTextChannelUpdateName, onTextChannelUpdateNSFW, onTextChannelUpdateParent, onTextChannelUpdatePermissions, onTextChannelUpdatePosition, onTextChannelUpdateSlowmode, onTextChannelUpdateTopic, onUnavailableGuildJoined, onUserBlocked, onUserTyping, onUserUnblocked, onUserUpdateAvatar, onUserUpdateDiscriminator, onUserUpdateGame, onUserUpdateName, onUserUpdateOnlineStatus, onVoiceChannelCreate, onVoiceChannelDelete, onVoiceChannelUpdateBitrate, onVoiceChannelUpdateName, onVoiceChannelUpdateParent, onVoiceChannelUpdatePermissions, onVoiceChannelUpdatePosition, onVoiceChannelUpdateUserLimit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
private MusicManager musicManager-
public class TrackScheduler
-extends com.sedmelluq.discord.lavaplayer.player.event.AudioEventAdapter
-Modifier and Type | -Field and Description | -
---|---|
com.sedmelluq.discord.lavaplayer.track.AudioTrack |
-lastTrack |
-
(package private) com.sedmelluq.discord.lavaplayer.player.AudioPlayer |
-player |
-
private java.util.Queue<com.sedmelluq.discord.lavaplayer.track.AudioTrack> |
-queue |
-
private boolean |
-repeating |
-
Constructor and Description | -
---|
TrackScheduler(com.sedmelluq.discord.lavaplayer.player.AudioPlayer player) |
-
Modifier and Type | -Method and Description | -
---|---|
java.util.Queue<com.sedmelluq.discord.lavaplayer.track.AudioTrack> |
-getQueue() |
-
boolean |
-isRepeating() |
-
void |
-nextTrack()
-Start the next track, stopping the current one if it is playing.
- |
-
void |
-onTrackEnd(com.sedmelluq.discord.lavaplayer.player.AudioPlayer player,
- com.sedmelluq.discord.lavaplayer.track.AudioTrack track,
- com.sedmelluq.discord.lavaplayer.track.AudioTrackEndReason endReason) |
-
void |
-queue(com.sedmelluq.discord.lavaplayer.track.AudioTrack track)
-Add the next track to queue or play right away if nothing is in the queue.
- |
-
void |
-setRepeating(boolean repeating) |
-
void |
-shuffle() |
-
onEvent, onPlayerPause, onPlayerResume, onTrackException, onTrackStart, onTrackStuck
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
private boolean repeating-
final com.sedmelluq.discord.lavaplayer.player.AudioPlayer player-
private final java.util.Queue<com.sedmelluq.discord.lavaplayer.track.AudioTrack> queue-
public com.sedmelluq.discord.lavaplayer.track.AudioTrack lastTrack-
public TrackScheduler(com.sedmelluq.discord.lavaplayer.player.AudioPlayer player)-
player
- The audio player this scheduler usespublic void queue(com.sedmelluq.discord.lavaplayer.track.AudioTrack track)-
track
- The track to play or add to queue.public void nextTrack()-
public void onTrackEnd(com.sedmelluq.discord.lavaplayer.player.AudioPlayer player, - com.sedmelluq.discord.lavaplayer.track.AudioTrack track, - com.sedmelluq.discord.lavaplayer.track.AudioTrackEndReason endReason)-
onTrackEnd
in class com.sedmelluq.discord.lavaplayer.player.event.AudioEventAdapter
public java.util.Queue<com.sedmelluq.discord.lavaplayer.track.AudioTrack> getQueue()-
public boolean isRepeating()-
public void setRepeating(boolean repeating)-
public void shuffle()-
Package | -Description | -
---|---|
command.real.sound | -- |
Modifier and Type | -Field and Description | -
---|---|
AudioPlayerSendHandler |
-GuildMusicManager.sendHandler
-Wrapper around AudioPlayer to use it as an AudioSendHandler.
- |
-
Package | -Description | -
---|---|
command.real.sound | -- |
Modifier and Type | -Field and Description | -
---|---|
private java.util.Map<java.lang.String,GuildMusicManager> |
-MusicManager.musicManagers |
-
Modifier and Type | -Method and Description | -
---|---|
private GuildMusicManager |
-MusicManager.getMusicManager(java.lang.String guildId) |
-
Modifier and Type | -Method and Description | -
---|---|
private void |
-MusicManager.loadAndPlay(GuildMusicManager mng,
- net.dv8tion.jda.core.entities.MessageChannel channel,
- java.lang.String url,
- boolean addPlaylist)
-Metodo per caricare una traccia o una playlist nella coda
- |
-
Package | -Description | -
---|---|
command.real.sound | -- |
Modifier and Type | -Field and Description | -
---|---|
private MusicManager |
-PlayerControlCommand.musicManager |
-
Package | -Description | -
---|---|
command.real.sound | -- |
Modifier and Type | -Field and Description | -
---|---|
TrackScheduler |
-GuildMusicManager.scheduler
-Track scheduler for the player.
- |
-
Class | -Description | -
---|---|
AudioPlayerSendHandler | -
- This is a wrapper around AudioPlayer which makes it behave as an AudioSendHandler for JDA.
- |
-
GuildMusicManager | -
- Holder for both the player and a track scheduler for one guild.
- |
-
MusicManager | -
- Classe per gestire il musicBot
- |
-
PlayerControlCommand | -- |
TrackScheduler | -
- This class schedules tracks for the audio player.
- |
-
Package | -Description | -
---|---|
command.real.sound | -- |
Class and Description | -
---|
AudioPlayerSendHandler
- This is a wrapper around AudioPlayer which makes it behave as an AudioSendHandler for JDA.
- |
-
GuildMusicManager
- Holder for both the player and a track scheduler for one guild.
- |
-
MusicManager
- Classe per gestire il musicBot
- |
-
TrackScheduler
- This class schedules tracks for the audio player.
- |
-
public class ATMAlertReceiver
-extends net.dv8tion.jda.core.hooks.ListenerAdapter
-Constructor and Description | -
---|
ATMAlertReceiver() |
-
Modifier and Type | -Method and Description | -
---|---|
static java.lang.String |
-getATMStartCommand() |
-
static java.lang.String |
-getATMStartCommandDescription() |
-
static java.lang.String |
-getATMStopCommand() |
-
static java.lang.String |
-getATMStopCommandDescription() |
-
void |
-onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event) |
-
onCallCreate, onCallDelete, onCallUpdateRegion, onCallUpdateRingingUsers, onCallVoiceJoin, onCallVoiceLeave, onCallVoiceSelfDeafen, onCallVoiceSelfMute, onCategoryCreate, onCategoryDelete, onCategoryUpdateName, onCategoryUpdatePermissions, onCategoryUpdatePosition, onDisconnect, onEmoteAdded, onEmoteRemoved, onEmoteUpdateName, onEmoteUpdateRoles, onEvent, onException, onFriendAdded, onFriendRemoved, onFriendRequestCanceled, onFriendRequestIgnored, onFriendRequestReceived, onFriendRequestSent, onGenericCall, onGenericCallUpdate, onGenericCallVoice, onGenericCategory, onGenericCategoryUpdate, onGenericEmote, onGenericEmoteUpdate, onGenericEvent, onGenericGroup, onGenericGroupMessage, onGenericGroupMessageReaction, onGenericGroupUpdate, onGenericGuild, onGenericGuildMember, onGenericGuildMessage, onGenericGuildMessageReaction, onGenericGuildUpdate, onGenericGuildVoice, onGenericMessage, onGenericMessageReaction, onGenericPrivateMessage, onGenericPrivateMessageReaction, onGenericRelationship, onGenericRelationshipAdd, onGenericRelationshipRemove, onGenericRole, onGenericRoleUpdate, onGenericSelfUpdate, onGenericTextChannel, onGenericTextChannelUpdate, onGenericUpdate, onGenericUser, onGenericUserPresence, onGenericVoiceChannel, onGenericVoiceChannelUpdate, onGroupJoin, onGroupLeave, onGroupMessageDelete, onGroupMessageEmbed, onGroupMessageReactionAdd, onGroupMessageReactionRemove, onGroupMessageReactionRemoveAll, onGroupMessageReceived, onGroupMessageUpdate, onGroupUpdateIcon, onGroupUpdateName, onGroupUpdateOwner, onGroupUserJoin, onGroupUserLeave, onGuildAvailable, onGuildBan, onGuildJoin, onGuildLeave, onGuildMemberJoin, onGuildMemberLeave, onGuildMemberNickChange, onGuildMemberRoleAdd, onGuildMemberRoleRemove, onGuildMessageDelete, onGuildMessageEmbed, onGuildMessageReactionAdd, onGuildMessageReactionRemove, onGuildMessageReactionRemoveAll, onGuildMessageReceived, onGuildMessageUpdate, onGuildReady, onGuildUnavailable, onGuildUnban, onGuildUpdateAfkChannel, onGuildUpdateAfkTimeout, onGuildUpdateExplicitContentLevel, onGuildUpdateFeatures, onGuildUpdateIcon, onGuildUpdateMFALevel, onGuildUpdateName, onGuildUpdateNotificationLevel, onGuildUpdateOwner, onGuildUpdateRegion, onGuildUpdateSplash, onGuildUpdateSystemChannel, onGuildUpdateVerificationLevel, onGuildVoiceDeafen, onGuildVoiceGuildDeafen, onGuildVoiceGuildMute, onGuildVoiceJoin, onGuildVoiceLeave, onGuildVoiceMove, onGuildVoiceMute, onGuildVoiceSelfDeafen, onGuildVoiceSelfMute, onGuildVoiceSuppress, onGuildVoiceUpdate, onHttpRequest, onMessageBulkDelete, onMessageDelete, onMessageEmbed, onMessageReactionAdd, onMessageReactionRemove, onMessageReactionRemoveAll, onMessageUpdate, onPrivateChannelCreate, onPrivateChannelDelete, onPrivateMessageDelete, onPrivateMessageEmbed, onPrivateMessageReactionAdd, onPrivateMessageReactionRemove, onPrivateMessageReceived, onPrivateMessageUpdate, onReady, onReconnect, onResume, onRoleCreate, onRoleDelete, onRoleUpdateColor, onRoleUpdateHoisted, onRoleUpdateMentionable, onRoleUpdateName, onRoleUpdatePermissions, onRoleUpdatePosition, onSelfUpdateAvatar, onSelfUpdateEmail, onSelfUpdateMFA, onSelfUpdateName, onSelfUpdateVerified, onShutdown, onStatusChange, onTextChannelCreate, onTextChannelDelete, onTextChannelUpdateName, onTextChannelUpdateNSFW, onTextChannelUpdateParent, onTextChannelUpdatePermissions, onTextChannelUpdatePosition, onTextChannelUpdateSlowmode, onTextChannelUpdateTopic, onUnavailableGuildJoined, onUserBlocked, onUserTyping, onUserUnblocked, onUserUpdateAvatar, onUserUpdateDiscriminator, onUserUpdateGame, onUserUpdateName, onUserUpdateOnlineStatus, onVoiceChannelCreate, onVoiceChannelDelete, onVoiceChannelUpdateBitrate, onVoiceChannelUpdateName, onVoiceChannelUpdateParent, onVoiceChannelUpdatePermissions, onVoiceChannelUpdatePosition, onVoiceChannelUpdateUserLimit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static java.lang.String getATMStartCommand()-
public static java.lang.String getATMStartCommandDescription()-
public static java.lang.String getATMStopCommand()-
public static java.lang.String getATMStopCommandDescription()-
public void onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
onMessageReceived
in class net.dv8tion.jda.core.hooks.ListenerAdapter
@Deprecated
-public class ATMAlertStartCommand
-extends net.dv8tion.jda.core.hooks.ListenerAdapter
-Constructor and Description | -
---|
ATMAlertStartCommand()
-Deprecated.
- |
-
Modifier and Type | -Method and Description | -
---|---|
static java.lang.String |
-getCommand()
-Deprecated.
- |
-
static java.lang.String |
-getCommandDescription()
-Deprecated.
- |
-
void |
-onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Deprecated.
- |
-
onCallCreate, onCallDelete, onCallUpdateRegion, onCallUpdateRingingUsers, onCallVoiceJoin, onCallVoiceLeave, onCallVoiceSelfDeafen, onCallVoiceSelfMute, onCategoryCreate, onCategoryDelete, onCategoryUpdateName, onCategoryUpdatePermissions, onCategoryUpdatePosition, onDisconnect, onEmoteAdded, onEmoteRemoved, onEmoteUpdateName, onEmoteUpdateRoles, onEvent, onException, onFriendAdded, onFriendRemoved, onFriendRequestCanceled, onFriendRequestIgnored, onFriendRequestReceived, onFriendRequestSent, onGenericCall, onGenericCallUpdate, onGenericCallVoice, onGenericCategory, onGenericCategoryUpdate, onGenericEmote, onGenericEmoteUpdate, onGenericEvent, onGenericGroup, onGenericGroupMessage, onGenericGroupMessageReaction, onGenericGroupUpdate, onGenericGuild, onGenericGuildMember, onGenericGuildMessage, onGenericGuildMessageReaction, onGenericGuildUpdate, onGenericGuildVoice, onGenericMessage, onGenericMessageReaction, onGenericPrivateMessage, onGenericPrivateMessageReaction, onGenericRelationship, onGenericRelationshipAdd, onGenericRelationshipRemove, onGenericRole, onGenericRoleUpdate, onGenericSelfUpdate, onGenericTextChannel, onGenericTextChannelUpdate, onGenericUpdate, onGenericUser, onGenericUserPresence, onGenericVoiceChannel, onGenericVoiceChannelUpdate, onGroupJoin, onGroupLeave, onGroupMessageDelete, onGroupMessageEmbed, onGroupMessageReactionAdd, onGroupMessageReactionRemove, onGroupMessageReactionRemoveAll, onGroupMessageReceived, onGroupMessageUpdate, onGroupUpdateIcon, onGroupUpdateName, onGroupUpdateOwner, onGroupUserJoin, onGroupUserLeave, onGuildAvailable, onGuildBan, onGuildJoin, onGuildLeave, onGuildMemberJoin, onGuildMemberLeave, onGuildMemberNickChange, onGuildMemberRoleAdd, onGuildMemberRoleRemove, onGuildMessageDelete, onGuildMessageEmbed, onGuildMessageReactionAdd, onGuildMessageReactionRemove, onGuildMessageReactionRemoveAll, onGuildMessageReceived, onGuildMessageUpdate, onGuildReady, onGuildUnavailable, onGuildUnban, onGuildUpdateAfkChannel, onGuildUpdateAfkTimeout, onGuildUpdateExplicitContentLevel, onGuildUpdateFeatures, onGuildUpdateIcon, onGuildUpdateMFALevel, onGuildUpdateName, onGuildUpdateNotificationLevel, onGuildUpdateOwner, onGuildUpdateRegion, onGuildUpdateSplash, onGuildUpdateSystemChannel, onGuildUpdateVerificationLevel, onGuildVoiceDeafen, onGuildVoiceGuildDeafen, onGuildVoiceGuildMute, onGuildVoiceJoin, onGuildVoiceLeave, onGuildVoiceMove, onGuildVoiceMute, onGuildVoiceSelfDeafen, onGuildVoiceSelfMute, onGuildVoiceSuppress, onGuildVoiceUpdate, onHttpRequest, onMessageBulkDelete, onMessageDelete, onMessageEmbed, onMessageReactionAdd, onMessageReactionRemove, onMessageReactionRemoveAll, onMessageUpdate, onPrivateChannelCreate, onPrivateChannelDelete, onPrivateMessageDelete, onPrivateMessageEmbed, onPrivateMessageReactionAdd, onPrivateMessageReactionRemove, onPrivateMessageReceived, onPrivateMessageUpdate, onReady, onReconnect, onResume, onRoleCreate, onRoleDelete, onRoleUpdateColor, onRoleUpdateHoisted, onRoleUpdateMentionable, onRoleUpdateName, onRoleUpdatePermissions, onRoleUpdatePosition, onSelfUpdateAvatar, onSelfUpdateEmail, onSelfUpdateMFA, onSelfUpdateName, onSelfUpdateVerified, onShutdown, onStatusChange, onTextChannelCreate, onTextChannelDelete, onTextChannelUpdateName, onTextChannelUpdateNSFW, onTextChannelUpdateParent, onTextChannelUpdatePermissions, onTextChannelUpdatePosition, onTextChannelUpdateSlowmode, onTextChannelUpdateTopic, onUnavailableGuildJoined, onUserBlocked, onUserTyping, onUserUnblocked, onUserUpdateAvatar, onUserUpdateDiscriminator, onUserUpdateGame, onUserUpdateName, onUserUpdateOnlineStatus, onVoiceChannelCreate, onVoiceChannelDelete, onVoiceChannelUpdateBitrate, onVoiceChannelUpdateName, onVoiceChannelUpdateParent, onVoiceChannelUpdatePermissions, onVoiceChannelUpdatePosition, onVoiceChannelUpdateUserLimit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ATMAlertStartCommand()-
public static java.lang.String getCommand()-
public static java.lang.String getCommandDescription()-
public void onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
onMessageReceived
in class net.dv8tion.jda.core.hooks.ListenerAdapter
@Deprecated
-public class ATMAlertStopCommand
-extends net.dv8tion.jda.core.hooks.ListenerAdapter
-Constructor and Description | -
---|
ATMAlertStopCommand()
-Deprecated.
- |
-
Modifier and Type | -Method and Description | -
---|---|
static java.lang.String |
-getCommand()
-Deprecated.
- |
-
static java.lang.String |
-getCommandDescription()
-Deprecated.
- |
-
void |
-onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)
-Deprecated.
- |
-
onCallCreate, onCallDelete, onCallUpdateRegion, onCallUpdateRingingUsers, onCallVoiceJoin, onCallVoiceLeave, onCallVoiceSelfDeafen, onCallVoiceSelfMute, onCategoryCreate, onCategoryDelete, onCategoryUpdateName, onCategoryUpdatePermissions, onCategoryUpdatePosition, onDisconnect, onEmoteAdded, onEmoteRemoved, onEmoteUpdateName, onEmoteUpdateRoles, onEvent, onException, onFriendAdded, onFriendRemoved, onFriendRequestCanceled, onFriendRequestIgnored, onFriendRequestReceived, onFriendRequestSent, onGenericCall, onGenericCallUpdate, onGenericCallVoice, onGenericCategory, onGenericCategoryUpdate, onGenericEmote, onGenericEmoteUpdate, onGenericEvent, onGenericGroup, onGenericGroupMessage, onGenericGroupMessageReaction, onGenericGroupUpdate, onGenericGuild, onGenericGuildMember, onGenericGuildMessage, onGenericGuildMessageReaction, onGenericGuildUpdate, onGenericGuildVoice, onGenericMessage, onGenericMessageReaction, onGenericPrivateMessage, onGenericPrivateMessageReaction, onGenericRelationship, onGenericRelationshipAdd, onGenericRelationshipRemove, onGenericRole, onGenericRoleUpdate, onGenericSelfUpdate, onGenericTextChannel, onGenericTextChannelUpdate, onGenericUpdate, onGenericUser, onGenericUserPresence, onGenericVoiceChannel, onGenericVoiceChannelUpdate, onGroupJoin, onGroupLeave, onGroupMessageDelete, onGroupMessageEmbed, onGroupMessageReactionAdd, onGroupMessageReactionRemove, onGroupMessageReactionRemoveAll, onGroupMessageReceived, onGroupMessageUpdate, onGroupUpdateIcon, onGroupUpdateName, onGroupUpdateOwner, onGroupUserJoin, onGroupUserLeave, onGuildAvailable, onGuildBan, onGuildJoin, onGuildLeave, onGuildMemberJoin, onGuildMemberLeave, onGuildMemberNickChange, onGuildMemberRoleAdd, onGuildMemberRoleRemove, onGuildMessageDelete, onGuildMessageEmbed, onGuildMessageReactionAdd, onGuildMessageReactionRemove, onGuildMessageReactionRemoveAll, onGuildMessageReceived, onGuildMessageUpdate, onGuildReady, onGuildUnavailable, onGuildUnban, onGuildUpdateAfkChannel, onGuildUpdateAfkTimeout, onGuildUpdateExplicitContentLevel, onGuildUpdateFeatures, onGuildUpdateIcon, onGuildUpdateMFALevel, onGuildUpdateName, onGuildUpdateNotificationLevel, onGuildUpdateOwner, onGuildUpdateRegion, onGuildUpdateSplash, onGuildUpdateSystemChannel, onGuildUpdateVerificationLevel, onGuildVoiceDeafen, onGuildVoiceGuildDeafen, onGuildVoiceGuildMute, onGuildVoiceJoin, onGuildVoiceLeave, onGuildVoiceMove, onGuildVoiceMute, onGuildVoiceSelfDeafen, onGuildVoiceSelfMute, onGuildVoiceSuppress, onGuildVoiceUpdate, onHttpRequest, onMessageBulkDelete, onMessageDelete, onMessageEmbed, onMessageReactionAdd, onMessageReactionRemove, onMessageReactionRemoveAll, onMessageUpdate, onPrivateChannelCreate, onPrivateChannelDelete, onPrivateMessageDelete, onPrivateMessageEmbed, onPrivateMessageReactionAdd, onPrivateMessageReactionRemove, onPrivateMessageReceived, onPrivateMessageUpdate, onReady, onReconnect, onResume, onRoleCreate, onRoleDelete, onRoleUpdateColor, onRoleUpdateHoisted, onRoleUpdateMentionable, onRoleUpdateName, onRoleUpdatePermissions, onRoleUpdatePosition, onSelfUpdateAvatar, onSelfUpdateEmail, onSelfUpdateMFA, onSelfUpdateName, onSelfUpdateVerified, onShutdown, onStatusChange, onTextChannelCreate, onTextChannelDelete, onTextChannelUpdateName, onTextChannelUpdateNSFW, onTextChannelUpdateParent, onTextChannelUpdatePermissions, onTextChannelUpdatePosition, onTextChannelUpdateSlowmode, onTextChannelUpdateTopic, onUnavailableGuildJoined, onUserBlocked, onUserTyping, onUserUnblocked, onUserUpdateAvatar, onUserUpdateDiscriminator, onUserUpdateGame, onUserUpdateName, onUserUpdateOnlineStatus, onVoiceChannelCreate, onVoiceChannelDelete, onVoiceChannelUpdateBitrate, onVoiceChannelUpdateName, onVoiceChannelUpdateParent, onVoiceChannelUpdatePermissions, onVoiceChannelUpdatePosition, onVoiceChannelUpdateUserLimit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ATMAlertStopCommand()-
public static java.lang.String getCommand()-
public static java.lang.String getCommandDescription()-
public void onMessageReceived(net.dv8tion.jda.core.events.message.MessageReceivedEvent event)-
onMessageReceived
in class net.dv8tion.jda.core.hooks.ListenerAdapter
public class ATMRSSReader
-extends java.lang.Object
-Constructor and Description | -
---|
ATMRSSReader() |
-
Modifier and Type | -Method and Description | -
---|---|
static net.dv8tion.jda.core.entities.MessageEmbed |
-prepareRSStoEmbeddedMessage(RSSMessage message) |
-
static RSSMessage |
-readRSS(java.lang.String URL) |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static RSSMessage readRSS(java.lang.String URL)-
public static net.dv8tion.jda.core.entities.MessageEmbed prepareRSStoEmbeddedMessage(RSSMessage message)-
public class AtmScheduler
-extends java.lang.Object
-Modifier and Type | -Field and Description | -
---|---|
private static TwitterManager |
-manager |
-
private static java.lang.String |
-twitterUrl |
-
Constructor and Description | -
---|
AtmScheduler() |
-
Modifier and Type | -Method and Description | -
---|---|
private static void |
-getMessage(long tweetId,
- java.lang.String twitterMessage,
- java.lang.String mediaUrl,
- java.lang.String profileImageUrl) |
-
private static void |
-publish(RSSMessage message) |
-
static void |
-startAtmTweetScheduler() |
-
static java.util.TimerTask |
-taskFeedRSSATM() |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
private static TwitterManager manager-
private static java.lang.String twitterUrl-
public static void startAtmTweetScheduler()-
public static java.util.TimerTask taskFeedRSSATM()-
private static void publish(RSSMessage message)-
private static void getMessage(long tweetId, - java.lang.String twitterMessage, - java.lang.String mediaUrl, - java.lang.String profileImageUrl)-
Class | -Description | -
---|---|
ATMAlertReceiver | -- |
ATMAlertStartCommand | -Deprecated | -
ATMAlertStopCommand | -Deprecated | -
ATMRSSReader | -- |
AtmScheduler | -- |
Modifier and Type | -Constant Field | -Value | -
---|---|---|
-
-private static final int |
-DEFAULT_VOLUME |
-25 |
-
Modifier and Type | -Constant Field | -Value | -
---|---|---|
-
-private static final java.lang.String |
-RSS_LINK |
-"RSSLink" |
-
-
-private static final java.lang.String |
-SERVERS_DISCORD |
-"ServersDiscord" |
-
Class and Description | -
---|
command.real.tpl.atmAlert.ATMAlertStartCommand | -
command.real.tpl.atmAlert.ATMAlertStopCommand | -
command.real.BDO.boss.BDOBossStartCommand | -
command.real.BDO.boss.BDOBossStopCommand | -
command.real.BDO.RSS.BDONewsStartCommand | -
command.real.BDO.RSS.BDONewsStopCommand | -
command.real.BDO.RSS.BDOPatchStartCommand | -
command.real.BDO.RSS.BDOPatchStopCommand | -
command.real.configuration.ConfigurationCommand | -
command.real.configuration.HelpCommand | -
command.real.configuration.InfoCommand | -
interfaces.SQLiteInterfaces | -
Method and Description | -
---|
command.pattern.ControlCommand.controlCommand(MessageReceivedEvent, String) | -
The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
-Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
-Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
-Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
-Each annotation type has its own separate page with the following sections:
-Each enum has its own separate page with the following sections:
-Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.
-There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object
. The interfaces do not inherit from java.lang.Object
.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
-The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
-These links take you to the next or previous class, interface, package, or related page.
-These links show and hide the HTML frames. All pages are available with or without frames.
-The All Classes link shows all classes and interfaces except non-static nested types.
-Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
-The Constant Field Values page lists the static final fields and their values.
-public class DiscordScheduler
-extends java.lang.Object
-Constructor and Description | -
---|
DiscordScheduler() |
-
Modifier and Type | -Method and Description | -
---|---|
static void |
-startScheduling(net.dv8tion.jda.core.JDA jda) |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public class DiscordTokenInterfaces
-extends java.lang.Object
-Constructor and Description | -
---|
DiscordTokenInterfaces() |
-
Modifier and Type | -Method and Description | -
---|---|
static java.lang.String |
-getToken() |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public class PostgreSQLInterface
-extends java.lang.Object
-Modifier and Type | -Field and Description | -
---|---|
private static org.hibernate.SessionFactory |
-sessionFactory |
-
Constructor and Description | -
---|
PostgreSQLInterface() |
-
Modifier and Type | -Method and Description | -
---|---|
static void |
-deleteServer(java.lang.String serverID)
-Metodo che rimuove la riga del server che ha espulso il bot
- |
-
static java.util.ArrayList<ServerToChannel> |
-getATMAlertChannel()
-Metodo per ottenere tutti i canali registrati agli alert di ATM
- |
-
static java.util.ArrayList<ServerToChannel> |
-getBDOBossChannel()
-Metodo per ottenere tutti i canali registrati agli alert dei boss di BDO
- |
-
static java.util.ArrayList<ServerToChannel> |
-getBDONewsChannel()
-Metodo per ottenere tutti i canali registrati alle news di BDO
- |
-
static java.util.ArrayList<ServerToChannel> |
-getBDOPatchChannel()
-Metodo per ottenere tutti i canali registrati alle patch di BDO
- |
-
static java.lang.String |
-getLastATMAlert()
-Ottiene il link dell'ultimo alert di atm
- |
-
static java.lang.String |
-getLastPatchBDO()
-Ottiene il link dell'ultima patch di BDO
- |
-
static java.util.ArrayList |
-getListNewsBDO()
-Ottiene la lista delle ultime notizie di BDO
- |
-
static java.lang.String |
-getSimbol(java.lang.String serverID)
-Metodo che per ottenre il simbolo del server
- |
-
static void |
-initializeDB()
-Metodo per inizializzare la connessione
- |
-
static void |
-newServer(java.lang.String nameServer,
- java.lang.String serverID)
-Metodo che aggiunge nome e l'id del server che ha aggiunto il bot sul database.
- |
-
static void |
-removeATMAlertChannel(java.lang.String serverID)
-Metodo per rimuovere il canale per gli alert di ATM
- |
-
static void |
-removeBDOBossChannel(java.lang.String serverID)
-Metodo per rimuovere il canale per i boss alert di BDO
- |
-
static void |
-removeBDONewsChannel(java.lang.String serverID)
-Metodo per rimuovere il canale per le news su BDO
- |
-
static void |
-removeBDOPatchChannel(java.lang.String serverID)
-Metodo per rimuovere il canale per le patch di BDO
- |
-
static void |
-setATMAlertChannel(java.lang.String serverID,
- java.lang.String channelID)
-Metodo per settare il canale per gli alert dell'ATM
- |
-
static void |
-setBDOBossChannel(java.lang.String serverID,
- java.lang.String channelID)
-Metodo per settare il canale per i boss alert di BDO
- |
-
static void |
-setBDONewsChannel(java.lang.String serverID,
- java.lang.String channelID)
-Metodo per settare il canale per le news su BDO
- |
-
static void |
-setBDOPatchChannel(java.lang.String serverID,
- java.lang.String channelID)
-Metodo per settare il canale per le patch di BDO
- |
-
static void |
-setLastATMAlert(java.lang.String url)
-Imposta l'ultima patch di BDO, se esiste l'aggiorna, altrimenti inserisce la riga.
- |
-
static void |
-setLastPatchBDO(java.lang.String url)
-Imposta l'ultima patch di BDO, se esiste l'aggiorna, altrimenti inserisce la riga.
- |
-
static void |
-setNewsBDO(java.util.ArrayList<java.lang.String> newsBDOList)
-Imposta la lista delle ultime notizie di bdo
- |
-
static void |
-setSimbol(java.lang.String command,
- java.lang.String serverID)
-Metodo per configurare il simbolo di comando per il server
- |
-
static void |
-updateNameServer(java.lang.String serverID,
- java.lang.String name) |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
private static org.hibernate.SessionFactory sessionFactory-
public static void initializeDB()-
public static void newServer(java.lang.String nameServer, - java.lang.String serverID)-
nameServer
- Nome del serverserverID
- ID del server Discordpublic static void deleteServer(java.lang.String serverID)-
serverID
- id del serverpublic static void updateNameServer(java.lang.String serverID, - java.lang.String name)-
public static java.lang.String getSimbol(java.lang.String serverID)-
serverID
- id del serverpublic static void setSimbol(java.lang.String command, - java.lang.String serverID)-
command
- Simbolo del comando nuovoserverID
- ID del serverpublic static void setBDONewsChannel(java.lang.String serverID, - java.lang.String channelID)-
serverID
- id del serverchannelID
- id del canale testualepublic static void removeBDONewsChannel(java.lang.String serverID)-
serverID
- id del serverpublic static java.util.ArrayList<ServerToChannel> getBDONewsChannel()-
ServerToChannel
public static void setBDOPatchChannel(java.lang.String serverID, - java.lang.String channelID)-
serverID
- id del serverchannelID
- id del canale testualepublic static void removeBDOPatchChannel(java.lang.String serverID)-
serverID
- id del serverpublic static void setBDOBossChannel(java.lang.String serverID, - java.lang.String channelID)-
serverID
- id del serverchannelID
- id del canale testualepublic static void removeBDOBossChannel(java.lang.String serverID)-
serverID
- id del serverpublic static java.util.ArrayList<ServerToChannel> getBDOBossChannel()-
ServerToChannel
public static java.util.ArrayList<ServerToChannel> getBDOPatchChannel()-
ServerToChannel
public static java.util.ArrayList getListNewsBDO()-
public static void setNewsBDO(java.util.ArrayList<java.lang.String> newsBDOList)-
newsBDOList
- Lista delle ultime notizie di BDOpublic static java.lang.String getLastPatchBDO()-
public static void setLastPatchBDO(java.lang.String url)-
url
- url dell'ultimo feed rss aggiornatopublic static void setATMAlertChannel(java.lang.String serverID, - java.lang.String channelID)-
serverID
- id del serverchannelID
- id del canale testualepublic static java.util.ArrayList<ServerToChannel> getATMAlertChannel()-
ServerToChannel
public static void removeATMAlertChannel(java.lang.String serverID)-
serverID
- id del serverpublic static java.lang.String getLastATMAlert()-
public static void setLastATMAlert(java.lang.String url)-
url
- url dell'ultimo feed rss aggiornatopublic class PropertyInterfaces
-extends java.lang.Object
-Constructor and Description | -
---|
PropertyInterfaces() |
-
Modifier and Type | -Method and Description | -
---|---|
static void |
-getProp() |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static enum SQLiteInterfaces.RSS_DB_COLUMN -extends java.lang.Enum<SQLiteInterfaces.RSS_DB_COLUMN>-
Enum Constant and Description | -
---|
ID |
-
LastATMAlert |
-
LastNewsBDO |
-
LastPatchBDO |
-
Modifier and Type | -Method and Description | -
---|---|
static SQLiteInterfaces.RSS_DB_COLUMN |
-valueOf(java.lang.String name)
-Returns the enum constant of this type with the specified name.
- |
-
static SQLiteInterfaces.RSS_DB_COLUMN[] |
-values()
-Returns an array containing the constants of this enum type, in
-the order they are declared.
- |
-
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final SQLiteInterfaces.RSS_DB_COLUMN ID-
public static final SQLiteInterfaces.RSS_DB_COLUMN LastNewsBDO-
public static final SQLiteInterfaces.RSS_DB_COLUMN LastPatchBDO-
public static final SQLiteInterfaces.RSS_DB_COLUMN LastATMAlert-
public static SQLiteInterfaces.RSS_DB_COLUMN[] values()-
-for (SQLiteInterfaces.RSS_DB_COLUMN c : SQLiteInterfaces.RSS_DB_COLUMN.values()) - System.out.println(c); -
public static SQLiteInterfaces.RSS_DB_COLUMN valueOf(java.lang.String name)-
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static enum SQLiteInterfaces.SD_DB_COLUMN -extends java.lang.Enum<SQLiteInterfaces.SD_DB_COLUMN>-
Enum Constant and Description | -
---|
ATMAlertIDChannel |
-
BDOBossIDChannel |
-
BDONewsIDChannel |
-
BDOPatchIDChannel |
-
NAME_SERVER |
-
SERVER_ID |
-
SIMBOL_COMMAND |
-
Modifier and Type | -Method and Description | -
---|---|
static SQLiteInterfaces.SD_DB_COLUMN |
-valueOf(java.lang.String name)
-Returns the enum constant of this type with the specified name.
- |
-
static SQLiteInterfaces.SD_DB_COLUMN[] |
-values()
-Returns an array containing the constants of this enum type, in
-the order they are declared.
- |
-
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final SQLiteInterfaces.SD_DB_COLUMN NAME_SERVER-
public static final SQLiteInterfaces.SD_DB_COLUMN SERVER_ID-
public static final SQLiteInterfaces.SD_DB_COLUMN SIMBOL_COMMAND-
public static final SQLiteInterfaces.SD_DB_COLUMN BDONewsIDChannel-
public static final SQLiteInterfaces.SD_DB_COLUMN BDOPatchIDChannel-
public static final SQLiteInterfaces.SD_DB_COLUMN BDOBossIDChannel-
public static final SQLiteInterfaces.SD_DB_COLUMN ATMAlertIDChannel-
public static SQLiteInterfaces.SD_DB_COLUMN[] values()-
-for (SQLiteInterfaces.SD_DB_COLUMN c : SQLiteInterfaces.SD_DB_COLUMN.values()) - System.out.println(c); -
public static SQLiteInterfaces.SD_DB_COLUMN valueOf(java.lang.String name)-
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@Deprecated
-public class SQLiteInterfaces
-extends java.lang.Object
-Modifier and Type | -Class and Description | -
---|---|
static class |
-SQLiteInterfaces.RSS_DB_COLUMN
-Deprecated.
- |
-
static class |
-SQLiteInterfaces.SD_DB_COLUMN
-Deprecated.
-Nomi delle colonne sul db
- |
-
Modifier and Type | -Field and Description | -
---|---|
private static java.sql.Connection |
-connection
-Deprecated.
- |
-
private static java.lang.String |
-RSS_LINK
-Deprecated.
- |
-
private static java.lang.String |
-SERVERS_DISCORD
-Deprecated.
- |
-
Constructor and Description | -
---|
SQLiteInterfaces()
-Deprecated.
- |
-
Modifier and Type | -Method and Description | -
---|---|
static void |
-deleteServer(java.lang.String serverID)
-Deprecated.
-Metodo che rimuove la riga del server che ha espulso il bot
- |
-
static java.util.ArrayList<ServerToChannel> |
-getATMAlertChannel()
-Deprecated.
-Metodo per ottenere tutti i canali registrati agli alert di ATM
- |
-
static java.util.ArrayList<ServerToChannel> |
-getBDOBossChannel()
-Deprecated.
- |
-
static java.util.ArrayList<ServerToChannel> |
-getBDONewsChannel()
-Deprecated.
-Metodo per ottenere tutti i canali registrati alle news di BDO
- |
-
static java.util.ArrayList<ServerToChannel> |
-getBDOPatchChannel()
-Deprecated.
-Metodo per ottenere tutti i canali registrati alle patch di BDO
- |
-
static java.lang.String |
-getLastATMAlert()
-Deprecated.
-Ottiene il link dell'ultima patch di BDO
- |
-
static java.lang.String |
-getLastPatchBDO()
-Deprecated.
-Ottiene il link dell'ultima patch di BDO
- |
-
static java.util.ArrayList |
-getListNewsBDO()
-Deprecated.
-Ottiene la lista delle ultime notizie di BDO
- |
-
static java.lang.String |
-getSimbol(java.lang.String serverID)
-Deprecated.
-Metodo che per ottenre il simbolo del server
- |
-
static void |
-initializeDB()
-Deprecated.
-Metodo per inizializzare la connessione e/o il DB + la tabella
-
- PS: In caso sia il primo avvio del bot, accendere, spegnere e successivamente riaccendere il bot
- |
-
static void |
-newServer(java.lang.String nameServe,
- java.lang.String serverID)
-Deprecated.
-Metodo che aggiunge nome e l'id del server che ha aggiunto il bot sul database.
- |
-
static void |
-removeATMAlertChannel(java.lang.String serverID)
-Deprecated.
-Metodo per rimuovere il canale per gli alert di ATM
- |
-
static void |
-removeBDOBossChannel(java.lang.String serverID)
-Deprecated.
-Metodo per rimuovere il canale per i boss alert di BDO
- |
-
static void |
-removeBDONewsChannel(java.lang.String serverID)
-Deprecated.
-Metodo per rimuovere il canale per le news su BDO
- |
-
static void |
-removeBDOPatchChannel(java.lang.String serverID)
-Deprecated.
-Metodo per rimuovere il canale per le patch di BDO
- |
-
static void |
-setATMAlertChannel(java.lang.String serverID,
- java.lang.String channelID)
-Deprecated.
-Metodo per settare il canale per gli alert dell'ATM
- |
-
static void |
-setBDOBossChannel(java.lang.String serverID,
- java.lang.String channelID)
-Deprecated.
-Metodo per settare il canale per i boss alert di BDO
- |
-
static void |
-setBDONewsChannel(java.lang.String serverID,
- java.lang.String channelID)
-Deprecated.
-Metodo per settare il canale per le news su BDO
- |
-
static void |
-setBDOPatchChannel(java.lang.String serverID,
- java.lang.String channelID)
-Deprecated.
-Metodo per settare il canale per le patch di BDO
- |
-
static void |
-setLastATMAlert(java.lang.String url)
-Deprecated.
-Imposta l'ultima patch di BDO, se esiste l'aggiorna, altrimenti inserisce la riga.
- |
-
static void |
-setLastPatchBDO(java.lang.String url)
-Deprecated.
-Imposta l'ultima patch di BDO, se esiste l'aggiorna, altrimenti inserisce la riga.
- |
-
static void |
-setNewsBDO(java.util.ArrayList<java.lang.String> newsBDOList)
-Deprecated.
-Imposta la lista delle ultime notizie di bdo
- |
-
static void |
-setSimbol(java.lang.String command,
- java.lang.String serverID)
-Deprecated.
-Metodo per configurare il simbolo di comando per il server
- |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
private static final java.lang.String SERVERS_DISCORD-
private static final java.lang.String RSS_LINK-
private static java.sql.Connection connection-
public SQLiteInterfaces()-
public static void initializeDB()-
- PS: In caso sia il primo avvio del bot, accendere, spegnere e successivamente riaccendere il bot
public static void newServer(java.lang.String nameServe, - java.lang.String serverID)-
nameServe
- Nome del serverserverID
- ID del server Discordpublic static void deleteServer(java.lang.String serverID)-
serverID
- id del serverpublic static java.lang.String getSimbol(java.lang.String serverID)-
serverID
- id del serverpublic static void setSimbol(java.lang.String command, - java.lang.String serverID)-
command
- Simbolo del comando nuovoserverID
- ID del serverpublic static void setBDONewsChannel(java.lang.String serverID, - java.lang.String channelID)-
serverID
- id del serverchannelID
- id del canale testualepublic static void removeBDONewsChannel(java.lang.String serverID)-
serverID
- id del serverpublic static java.util.ArrayList<ServerToChannel> getBDONewsChannel()-
ServerToChannel
public static void setBDOPatchChannel(java.lang.String serverID, - java.lang.String channelID)-
serverID
- id del serverchannelID
- id del canale testualepublic static void removeBDOPatchChannel(java.lang.String serverID)-
serverID
- id del serverpublic static void setBDOBossChannel(java.lang.String serverID, - java.lang.String channelID)-
serverID
- id del serverchannelID
- id del canale testualepublic static void removeBDOBossChannel(java.lang.String serverID)-
serverID
- id del serverpublic static java.util.ArrayList<ServerToChannel> getBDOBossChannel()-
public static java.util.ArrayList<ServerToChannel> getBDOPatchChannel()-
ServerToChannel
public static java.util.ArrayList getListNewsBDO()-
public static void setNewsBDO(java.util.ArrayList<java.lang.String> newsBDOList)-
newsBDOList
- Lista delle ultime notizie di BDOpublic static java.lang.String getLastPatchBDO()-
public static void setLastPatchBDO(java.lang.String url)-
url
- url dell'ultimo feed rss aggiornatopublic static void setATMAlertChannel(java.lang.String serverID, - java.lang.String channelID)-
serverID
- id del serverchannelID
- id del canale testualepublic static java.util.ArrayList<ServerToChannel> getATMAlertChannel()-
ServerToChannel
public static void removeATMAlertChannel(java.lang.String serverID)-
serverID
- id del serverpublic static java.lang.String getLastATMAlert()-
public static void setLastATMAlert(java.lang.String url)-
url
- url dell'ultimo feed rss aggiornatopublic class TakaoLog
-extends java.lang.Object
-Modifier and Type | -Field and Description | -
---|---|
private static org.slf4j.Logger |
-logger |
-
Modifier and Type | -Method and Description | -
---|---|
static void |
-logDebug(java.lang.String message) |
-
static void |
-logError(java.lang.String message) |
-
static void |
-logInfo(java.lang.String message) |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public class TwitterManager
-extends java.lang.Object
-Modifier and Type | -Field and Description | -
---|---|
private twitter4j.TwitterStream |
-twitterStream |
-
private twitter4j.TwitterStreamFactory |
-twitterStreamFactory |
-
Constructor and Description | -
---|
TwitterManager() |
-
Modifier and Type | -Method and Description | -
---|---|
TwitterManager |
-getTwitterManagerWithStream() |
-
twitter4j.TwitterStream |
-getTwitterStream() |
-
TwitterManager |
-setTwitterStreamFilter(twitter4j.FilterQuery filterQuery) |
-
TwitterManager |
-setTwitterStreamListener(twitter4j.StatusListener listener) |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
private twitter4j.TwitterStreamFactory twitterStreamFactory-
private twitter4j.TwitterStream twitterStream-
public TwitterManager getTwitterManagerWithStream()-
public TwitterManager setTwitterStreamListener(twitter4j.StatusListener listener)-
public TwitterManager setTwitterStreamFilter(twitter4j.FilterQuery filterQuery)-
public twitter4j.TwitterStream getTwitterStream()-
Package | -Description | -
---|---|
interfaces | -- |
Modifier and Type | -Method and Description | -
---|---|
static SQLiteInterfaces.RSS_DB_COLUMN |
-SQLiteInterfaces.RSS_DB_COLUMN.valueOf(java.lang.String name)
-Returns the enum constant of this type with the specified name.
- |
-
static SQLiteInterfaces.RSS_DB_COLUMN[] |
-SQLiteInterfaces.RSS_DB_COLUMN.values()
-Returns an array containing the constants of this enum type, in
-the order they are declared.
- |
-
Package | -Description | -
---|---|
interfaces | -- |
Modifier and Type | -Method and Description | -
---|---|
static SQLiteInterfaces.SD_DB_COLUMN |
-SQLiteInterfaces.SD_DB_COLUMN.valueOf(java.lang.String name)
-Returns the enum constant of this type with the specified name.
- |
-
static SQLiteInterfaces.SD_DB_COLUMN[] |
-SQLiteInterfaces.SD_DB_COLUMN.values()
-Returns an array containing the constants of this enum type, in
-the order they are declared.
- |
-
Package | -Description | -
---|---|
command.real.tpl.atmAlert | -- |
interfaces | -- |
Modifier and Type | -Field and Description | -
---|---|
private static TwitterManager |
-AtmScheduler.manager |
-
Modifier and Type | -Method and Description | -
---|---|
TwitterManager |
-TwitterManager.getTwitterManagerWithStream() |
-
TwitterManager |
-TwitterManager.setTwitterStreamFilter(twitter4j.FilterQuery filterQuery) |
-
TwitterManager |
-TwitterManager.setTwitterStreamListener(twitter4j.StatusListener listener) |
-
Class | -Description | -
---|---|
DiscordScheduler | -- |
DiscordTokenInterfaces | -
- Classe per caricare il token di discord da file
- |
-
PostgreSQLInterface | -- |
PropertyInterfaces | -- |
SQLiteInterfaces | -Deprecated | -
TakaoLog | -- |
TwitterManager | -- |
Enum | -Description | -
---|---|
SQLiteInterfaces.RSS_DB_COLUMN | -- |
SQLiteInterfaces.SD_DB_COLUMN | -
- Nomi delle colonne sul db
- |
-
Package | -Description | -
---|---|
command.real.tpl.atmAlert | -- |
interfaces | -- |
Class and Description | -
---|
TwitterManager | -
Class and Description | -
---|
SQLiteInterfaces.RSS_DB_COLUMN
- Deprecated.
- |
-
SQLiteInterfaces.SD_DB_COLUMN
- Deprecated.
-Nomi delle colonne sul db
- |
-
TwitterManager | -
- - diff --git a/docs/page/javadoc/overview-summary.html b/docs/page/javadoc/overview-summary.html deleted file mode 100644 index 1460103..0000000 --- a/docs/page/javadoc/overview-summary.html +++ /dev/null @@ -1,182 +0,0 @@ - - - - - -
Package | -Description | -
---|---|
beans | -- |
beans.BDOBossBean | -- |
command.pattern | -- |
command.real | -- |
command.real.BDO | -- |
command.real.BDO.boss | -- |
command.real.BDO.RSS | -- |
command.real.configuration | -- |
command.real.sound | -- |
command.real.tpl.atmAlert | -- |
interfaces | -- |
starter | -- |
public class Start
-extends java.lang.Object
-Modifier and Type | -Field and Description | -
---|---|
static com.google.gson.Gson |
-gson |
-
static net.dv8tion.jda.core.JDA |
-jda |
-
Modifier and Type | -Method and Description | -
---|---|
static void |
-main(java.lang.String[] args) |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Class | -Description | -
---|---|
Start | -- |
+it.discordbot.command.tpl.atmAlert.ATMCommand | +
+ Per i comandi dell'ATM + |
+
+it.discordbot.database.filter.ATMInterface | +
+ Classe di interfacciamento al db per le funzioni di ATM + |
+
+it.discordbot.command.tpl.atmAlert.ATMRSSReader | +
+ Classe per leggere il feed RSS di atm + |
+
+it.discordbot.command.tpl.atmAlert.ATMRSSScheduler | +
+ Classe per la schedulaziooe dei messaggi RSS di ATM + |
+
+it.discordbot.command.tpl.atmAlert.ATMTwitterScheduler | +
+ Classe per la schedulaziooe dei messaggi Twitter di ATM + |
+
+it.discordbot.command.music.config.AudioPlayerSendHandler | ++ | +
+it.discordbot.database.filter.BDOBossInterface | +
+ Classe di interfacciamento al db per le funzioni di BDO Boss + |
+
+it.discordbot.command.BDO.boss.BDOBossScheduler | +
+ Classe per la schedulazione dei boss + |
+
+it.discordbot.command.BDO.BDOCommand | +
+ Listener per contenere i comandi di BDO + |
+
+it.discordbot.database.filter.BDONewsInterface | +
+ Classe di interfacciamento al db per le funzioni di BDO News + |
+
+it.discordbot.command.BDO.RSS.BDONewsRSSScheduler | +
+ Classe per la schedulaziooe dei messaggi di news di BDO + |
+
+it.discordbot.database.filter.BDOPatchInterface | +
+ Classe di interfacciamento al db per le funzioni di BDO Patch + |
+
+it.discordbot.command.BDO.RSS.BDOPatchRSSScheduler | ++ | +
+it.discordbot.command.BDO.RSS.BDORSSReader | +
+ Classe per leggere gli RSS di BDO + |
+
+it.discordbot.beans.boss.Boss | +
+ Classe contenitore dei boss in una determinata ora + |
+
+it.discordbot.command.BDO.boss.BossUtil | +
+ Classe per processare i boss e ricavare il boss da notificare + |
+
+it.discordbot.command.generalCommand.GeneralCommand | +
+ Listener per contenere comandi di uso generale e di configurazione del bot + |
+
+it.discordbot.beans.boss.Giorno | +
+ Classe contenitore dei boss del giorno + |
+
+it.discordbot.command.music.config.GuildMusicManager | ++ | +
+it.discordbot.core.JDAController | +
+ Classe principale di avviamento del Bot Discord + |
+
+it.discordbot.command.generalCommand.JoinListener | +
+ Listener per contenere quando il bot entra o esce +da un server Discord + |
+
+it.discordbot.command.music.MusicCommand | ++ | +
+it.discordbot.command.music.config.MusicManager | ++ | +
+it.discordbot.beans.RSSLink | +
+ Entità che rappresenta la tabella contenitore dei link RSS + |
+
+it.discordbot.database.repository.RSSLinkRepository | ++ | +
+it.discordbot.beans.RSSMessage | +
+ Classe che contiene le informazioni utili dei messaggi RSS + |
+
+it.discordbot.command.pattern.RSSReader | +
+ Interfaccia per la lettura e la conversione +dei messaggi RSS a MessageEmbed + |
+
+it.discordbot.command.pattern.RSSScheduler | +
+ Interfaccia base per i metodi di pubblicazione dei messaggi RSS + |
+
+it.discordbot.beans.ServerDiscord | +
+ Entità che rappresenta la tabella dei Server Discord + |
+
+it.discordbot.database.repository.ServerDiscordRepository | ++ | +
+it.discordbot.database.filter.ServerManagementInterface | +
+ Classe di interfacciamento al db per le funzioni base del BOT + |
+
+it.discordbot.beans.ServerToChannel | +
+ Classe contenitore degli id dei server e relativi canali per +le pubblicazioni schedulate + |
+
+it.discordbot.StartBot | ++ | +
+it.discordbot.core.TakaoLog | +
+ Logger Unico per il bot + |
+
+it.discordbot.TestCommand | ++ | +
+it.discordbot.command.music.config.TrackScheduler | ++ | +
+it.discordbot.core.TwitterManager | +
+ Classe che si occupa di collegarsi ai sistemi di twitter + |
+
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
+ + | ++ | +
Boss(ora: String, nomeBoss: Array<String>)
+Constructor
+
data class Boss
+Classe contenitore dei boss in una determinata ora
++ + | +
+Boss(ora: String, nomeBoss: Array<String>) |
+
+ + | +
+val nomeBoss: Array<String>
+Array nome o nomi dei boss + |
+
+ + | +
+val ora: String
+String ora di spawn del boss + |
+
val nomeBoss: Array<String>
+Array nome o nomi dei boss
+
+nomeBoss
- Array nome o nomi dei boss
val ora: String
+String ora di spawn del boss
+
+ora
- String ora di spawn del boss
Giorno(giorno: String, bosses: ArrayList<Boss>)
+Constructor
+
val bosses: ArrayList<Boss>
+ArrayList lista dei boss del giorno
+
+bosses
- ArrayList lista dei boss del giorno
val giorno: String
+String nome del giorno espesso in inglese e in maiuscolo
+
+giorno
- String nome del giorno espesso in inglese e in maiuscolo
data class Giorno
+Classe contenitore dei boss del giorno
++ + | +
+Giorno(giorno: String, bosses: ArrayList<Boss>) |
+
+ + | +
+val bosses: ArrayList<Boss>
+ArrayList lista dei boss del giorno + |
+
+ + | +
+val giorno: String
+String nome del giorno espesso in inglese e in maiuscolo + |
+
+ + | +
+data class Boss
+Classe contenitore dei boss in una determinata ora + |
+
+ + | +
+data class Giorno
+Classe contenitore dei boss del giorno + |
+
RSSLink()
+Entità che rappresenta la tabella contenitore dei link RSS
+ + diff --git a/docs/page/kotlindoc/it.discordbot.beans/-r-s-s-link/id.html b/docs/page/kotlindoc/it.discordbot.beans/-r-s-s-link/id.html new file mode 100644 index 0000000..1af0d54 --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.beans/-r-s-s-link/id.html @@ -0,0 +1,18 @@ + + + +var id: Long
+Long id riga
+@Entity class RSSLink
+Entità che rappresenta la tabella contenitore dei link RSS
++ + | +
+RSSLink()
+Entità che rappresenta la tabella contenitore dei link RSS + |
+
+ + | +
+var id: Long
+Long id riga + |
+
+ + | +
+var lastAtmAlert: String?
+Link ultimo feed di atm + |
+
+ + | +
+var lastNewsBDO: String?
+Lista link ultime news di BDO + |
+
+ + | +
+var lastPatchBDO: String?
+Link ultima patch di BDO + |
+
var lastAtmAlert: String?
+Link ultimo feed di atm
+ + diff --git a/docs/page/kotlindoc/it.discordbot.beans/-r-s-s-link/last-news-b-d-o.html b/docs/page/kotlindoc/it.discordbot.beans/-r-s-s-link/last-news-b-d-o.html new file mode 100644 index 0000000..b297d50 --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.beans/-r-s-s-link/last-news-b-d-o.html @@ -0,0 +1,15 @@ + + + +var lastNewsBDO: String?
+Lista link ultime news di BDO
+ + diff --git a/docs/page/kotlindoc/it.discordbot.beans/-r-s-s-link/last-patch-b-d-o.html b/docs/page/kotlindoc/it.discordbot.beans/-r-s-s-link/last-patch-b-d-o.html new file mode 100644 index 0000000..d01e519 --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.beans/-r-s-s-link/last-patch-b-d-o.html @@ -0,0 +1,15 @@ + + + +var lastPatchBDO: String?
+Link ultima patch di BDO
+ + diff --git a/docs/page/kotlindoc/it.discordbot.beans/-r-s-s-message/-init-.html b/docs/page/kotlindoc/it.discordbot.beans/-r-s-s-message/-init-.html new file mode 100644 index 0000000..1db74d7 --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.beans/-r-s-s-message/-init-.html @@ -0,0 +1,16 @@ + + + +RSSMessage(title: String, link: String, doc: Document)
+Constructor
+
val doc: Document
+Document Contenuto del messaggio
+
+doc
- Document Contenuto del messaggio
data class RSSMessage
+Classe che contiene le informazioni utili dei messaggi RSS
++ + | +
+RSSMessage(title: String, link: String, doc: Document) |
+
+ + | +
+val doc: Document
+Document Contenuto del messaggio + |
+
+ + | +
+val link: String
+String Link del messaggio per il titolo + |
+
+ + | +
+val title: String
+String Titolo del messaggio + |
+
val link: String
+String Link del messaggio per il titolo
+
+link
- String Link del messaggio per il titolo
val title: String
+String Titolo del messaggio
+
+title
- String Titolo del messaggio
ServerDiscord()
+Entità che rappresenta la tabella dei Server Discord
+ + diff --git a/docs/page/kotlindoc/it.discordbot.beans/-server-discord/atm-alert-i-d-channel.html b/docs/page/kotlindoc/it.discordbot.beans/-server-discord/atm-alert-i-d-channel.html new file mode 100644 index 0000000..391ce8a --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.beans/-server-discord/atm-alert-i-d-channel.html @@ -0,0 +1,15 @@ + + + +var atmAlertIDChannel: String?
+ID Canale per invio degli alert dell'ATM
+ + diff --git a/docs/page/kotlindoc/it.discordbot.beans/-server-discord/bdo-boss-i-d-channel.html b/docs/page/kotlindoc/it.discordbot.beans/-server-discord/bdo-boss-i-d-channel.html new file mode 100644 index 0000000..11d5bf8 --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.beans/-server-discord/bdo-boss-i-d-channel.html @@ -0,0 +1,15 @@ + + + +var bdoBossIDChannel: String?
+ID Canale per invio alert boss di BDO
+ + diff --git a/docs/page/kotlindoc/it.discordbot.beans/-server-discord/bdo-news-i-d-channel.html b/docs/page/kotlindoc/it.discordbot.beans/-server-discord/bdo-news-i-d-channel.html new file mode 100644 index 0000000..dd35453 --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.beans/-server-discord/bdo-news-i-d-channel.html @@ -0,0 +1,15 @@ + + + +var bdoNewsIDChannel: String?
+ID Canale per invio news di BDO
+ + diff --git a/docs/page/kotlindoc/it.discordbot.beans/-server-discord/bdo-patch-i-d-channel.html b/docs/page/kotlindoc/it.discordbot.beans/-server-discord/bdo-patch-i-d-channel.html new file mode 100644 index 0000000..92c1ff5 --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.beans/-server-discord/bdo-patch-i-d-channel.html @@ -0,0 +1,15 @@ + + + +var bdoPatchIDChannel: String?
+ID Canale per invio patch di BDO
+ + diff --git a/docs/page/kotlindoc/it.discordbot.beans/-server-discord/index.html b/docs/page/kotlindoc/it.discordbot.beans/-server-discord/index.html new file mode 100644 index 0000000..906f894 --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.beans/-server-discord/index.html @@ -0,0 +1,96 @@ + + + +@Entity class ServerDiscord
+Entità che rappresenta la tabella dei Server Discord
++ + | +
+ServerDiscord()
+Entità che rappresenta la tabella dei Server Discord + |
+
+ + | +
+var atmAlertIDChannel: String?
+ID Canale per invio degli alert dell'ATM + |
+
+ + | +
+var bdoBossIDChannel: String?
+ID Canale per invio alert boss di BDO + |
+
+ + | +
+var bdoNewsIDChannel: String?
+ID Canale per invio news di BDO + |
+
+ + | +
+var bdoPatchIDChannel: String?
+ID Canale per invio patch di BDO + |
+
+ + | +
+var nameServer: String?
+Nome del server + |
+
+ + | +
+var serverId: String?
+Id del server + |
+
+ + | +
+var simbolCommand: String?
+Simbolo di comando + |
+
var nameServer: String?
+Nome del server
+ + diff --git a/docs/page/kotlindoc/it.discordbot.beans/-server-discord/server-id.html b/docs/page/kotlindoc/it.discordbot.beans/-server-discord/server-id.html new file mode 100644 index 0000000..bddfb6f --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.beans/-server-discord/server-id.html @@ -0,0 +1,15 @@ + + + +var serverId: String?
+Id del server
+ + diff --git a/docs/page/kotlindoc/it.discordbot.beans/-server-discord/simbol-command.html b/docs/page/kotlindoc/it.discordbot.beans/-server-discord/simbol-command.html new file mode 100644 index 0000000..a2a2d5a --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.beans/-server-discord/simbol-command.html @@ -0,0 +1,15 @@ + + + +var simbolCommand: String?
+Simbolo di comando
+ + diff --git a/docs/page/kotlindoc/it.discordbot.beans/-server-to-channel/-init-.html b/docs/page/kotlindoc/it.discordbot.beans/-server-to-channel/-init-.html new file mode 100644 index 0000000..3cd3a11 --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.beans/-server-to-channel/-init-.html @@ -0,0 +1,16 @@ + + + +ServerToChannel(serverID: String, channelID: String)
+Constructor
+
val channelID: String
+String id del canale
+
+channelID
- String id del canale
fun equals(other: Any?): Boolean
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.beans/-server-to-channel/index.html b/docs/page/kotlindoc/it.discordbot.beans/-server-to-channel/index.html
new file mode 100644
index 0000000..e428374
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.beans/-server-to-channel/index.html
@@ -0,0 +1,62 @@
+
+
+
+data class ServerToChannel
+Classe contenitore degli id dei server e relativi canali per +le pubblicazioni schedulate
++ + | +
+ServerToChannel(serverID: String, channelID: String) |
+
+ + | +
+val channelID: String
+String id del canale + |
+
+ + | +
+val serverID: String
+String id del server + |
+
+ + | +
+fun equals(other: Any?): Boolean |
+
val serverID: String
+String id del server
+
+serverID
- String id del server
+ + | +
+class RSSLink
+Entità che rappresenta la tabella contenitore dei link RSS + |
+
+ + | +
+data class RSSMessage
+Classe che contiene le informazioni utili dei messaggi RSS + |
+
+ + | +
+class ServerDiscord
+Entità che rappresenta la tabella dei Server Discord + |
+
+ + | +
+data class ServerToChannel
+Classe contenitore degli id dei server e relativi canali per +le pubblicazioni schedulate + |
+
BDONewsRSSScheduler()
+Classe per la schedulaziooe dei messaggi di news di BDO
+ + diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-news-r-s-s-scheduler/bdo-news-interface.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-news-r-s-s-scheduler/bdo-news-interface.html new file mode 100644 index 0000000..598d71c --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-news-r-s-s-scheduler/bdo-news-interface.html @@ -0,0 +1,18 @@ + + + +lateinit var bdoNewsInterface: BDONewsInterface
+BDONewsInterface
+
+bdoNewsInterface
- BDONewsInterface
lateinit var bdorssReader: BDORSSReader
+BDORSSReader
+@Service class BDONewsRSSScheduler : RSSScheduler
+Classe per la schedulaziooe dei messaggi di news di BDO
++ + | +
+BDONewsRSSScheduler()
+Classe per la schedulaziooe dei messaggi di news di BDO + |
+
+ + | +
+lateinit var bdoNewsInterface: BDONewsInterface
+BDONewsInterface + |
+
+ + | +
+lateinit var bdorssReader: BDORSSReader
+BDORSSReader + |
+
+ + | +
+fun procedurePublish(rssMessage: RSSMessage): Unit
+Metodo per la preparazione alla pubblicazione dei messaggi RSS + |
+
+ + | +
+fun publishMessage(message: MessageEmbed, serversToChannel: ArrayList<ServerToChannel>): Unit
+Metodo per la pubblicazione dei messaggi + |
+
+ + | +
+fun taskFeedRSSBDONews(): Unit
+Task per schedulare il controllo e la pubblicazione di una +nuova news di BDO. + |
+
fun procedurePublish(rssMessage: RSSMessage): Unit
+Overrides RSSScheduler.procedurePublish
+Metodo per la preparazione alla pubblicazione dei messaggi RSS
+
+rssMessage
- RSSMessage messaggio RSS
fun publishMessage(message: MessageEmbed, serversToChannel: ArrayList<ServerToChannel>): Unit
+Overrides RSSScheduler.publishMessage
+Metodo per la pubblicazione dei messaggi
+
+message
- MessageEmbed Messaggio
+serversToChannel
- ArrayList Lista server e canali
@Scheduled(1800000, 1800000) fun taskFeedRSSBDONews(): Unit
+Task per schedulare il controllo e la pubblicazione di una +nuova news di BDO.
+Il controllo è fatto ogni 30 minuti.
+ + diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-patch-r-s-s-scheduler/-init-.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-patch-r-s-s-scheduler/-init-.html new file mode 100644 index 0000000..3f956ac --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-patch-r-s-s-scheduler/-init-.html @@ -0,0 +1,14 @@ + + + +BDOPatchRSSScheduler()
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-patch-r-s-s-scheduler/bdo-patch-interface.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-patch-r-s-s-scheduler/bdo-patch-interface.html
new file mode 100644
index 0000000..68faf9c
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-patch-r-s-s-scheduler/bdo-patch-interface.html
@@ -0,0 +1,14 @@
+
+
+
+lateinit var bdoPatchInterface: BDOPatchInterface
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-patch-r-s-s-scheduler/bdorss-reader.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-patch-r-s-s-scheduler/bdorss-reader.html
new file mode 100644
index 0000000..54b35eb
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-patch-r-s-s-scheduler/bdorss-reader.html
@@ -0,0 +1,14 @@
+
+
+
+lateinit var bdorssReader: BDORSSReader
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-patch-r-s-s-scheduler/index.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-patch-r-s-s-scheduler/index.html
new file mode 100644
index 0000000..2bb5d7c
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-patch-r-s-s-scheduler/index.html
@@ -0,0 +1,74 @@
+
+
+
+@Service class BDOPatchRSSScheduler : RSSScheduler
++ + | +
+BDOPatchRSSScheduler() |
+
+ + | +
+lateinit var bdoPatchInterface: BDOPatchInterface |
+
+ + | +
+lateinit var bdorssReader: BDORSSReader |
+
+ + | +
+fun procedurePublish(rssMessage: RSSMessage): Unit
+Metodo per la preparazione alla pubblicazione dei messaggi RSS + |
+
+ + | +
+fun publishMessage(message: MessageEmbed, serversToChannel: ArrayList<ServerToChannel>): Unit
+Metodo per la pubblicazione dei messaggi + |
+
+ + | +
+fun taskFeedRSSBDOPatch(): Unit |
+
fun procedurePublish(rssMessage: RSSMessage): Unit
+Overrides RSSScheduler.procedurePublish
+Metodo per la preparazione alla pubblicazione dei messaggi RSS
+
+rssMessage
- RSSMessage messaggio RSS
fun publishMessage(message: MessageEmbed, serversToChannel: ArrayList<ServerToChannel>): Unit
+Overrides RSSScheduler.publishMessage
+Metodo per la pubblicazione dei messaggi
+
+message
- MessageEmbed Messaggio
+serversToChannel
- ArrayList Lista server e canali
@Scheduled(1800000, 1800000) fun taskFeedRSSBDOPatch(): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-r-s-s-reader/-init-.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-r-s-s-reader/-init-.html
new file mode 100644
index 0000000..f54ea6d
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-r-s-s-reader/-init-.html
@@ -0,0 +1,15 @@
+
+
+
+BDORSSReader()
+Classe per leggere gli RSS di BDO
+ + diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-r-s-s-reader/index.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-r-s-s-reader/index.html new file mode 100644 index 0000000..c9ebd03 --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-r-s-s-reader/index.html @@ -0,0 +1,66 @@ + + + +@Scope("singleton") @Component class BDORSSReader : RSSReader
+Classe per leggere gli RSS di BDO
++ + | +
+BDORSSReader()
+Classe per leggere gli RSS di BDO + |
+
+ + | +
+fun isNew(linkRSS: String, linkDB: String): Boolean
+Metodo per confrontare se una news o una patch di BDO è nuova +rispetto all'ultima pubblicata dal bot + |
+
+ + | +
+fun linkNumberParser(link: String): Int |
+
+ + | +
+fun prepareRSStoMessageEmbed(message: RSSMessage): MessageEmbed |
+
+ + | +
+fun readRSS(url: String): RSSMessage
+Metodo per leggere un feed RSS + |
+
fun isNew(linkRSS: String, linkDB: String): Boolean
+Metodo per confrontare se una news o una patch di BDO è nuova +rispetto all'ultima pubblicata dal bot
+Return
+Boolean
private fun linkNumberParser(link: String): Int
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-r-s-s-reader/prepare-r-s-sto-message-embed.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-r-s-s-reader/prepare-r-s-sto-message-embed.html
new file mode 100644
index 0000000..06c6db0
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-r-s-s-reader/prepare-r-s-sto-message-embed.html
@@ -0,0 +1,15 @@
+
+
+
+fun prepareRSStoMessageEmbed(message: RSSMessage): MessageEmbed
+Overrides RSSReader.prepareRSStoMessageEmbed
+ + diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-r-s-s-reader/read-r-s-s.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-r-s-s-reader/read-r-s-s.html new file mode 100644 index 0000000..6b05fca --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o.-r-s-s/-b-d-o-r-s-s-reader/read-r-s-s.html @@ -0,0 +1,21 @@ + + + +fun readRSS(url: String): RSSMessage
+Overrides RSSReader.readRSS
+Metodo per leggere un feed RSS
+
+url
- Url da cui bisogna leggere il feed
Return
+Ultimo feed registrato
+ + | +
+class BDONewsRSSScheduler : RSSScheduler
+Classe per la schedulaziooe dei messaggi di news di BDO + |
+
+ + | +
+class BDOPatchRSSScheduler : RSSScheduler |
+
+ + | +
+class BDORSSReader : RSSReader
+Classe per leggere gli RSS di BDO + |
+
BDOBossScheduler()
+Classe per la schedulazione dei boss
+ + diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o.boss/-b-d-o-boss-scheduler/bdo-boss-interface.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o.boss/-b-d-o-boss-scheduler/bdo-boss-interface.html new file mode 100644 index 0000000..feae5a7 --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o.boss/-b-d-o-boss-scheduler/bdo-boss-interface.html @@ -0,0 +1,18 @@ + + + +lateinit var bdoBossInterface: BDOBossInterface
+BDOBossInterface
+
+bdoBossInterface
- BDOBossInterface
@Scheduled("0 0/5 * * * *") fun bossJob(): Unit
+Job per la schedulazione dei boss
+ + diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o.boss/-b-d-o-boss-scheduler/boss-util.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o.boss/-b-d-o-boss-scheduler/boss-util.html new file mode 100644 index 0000000..c78e5be --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o.boss/-b-d-o-boss-scheduler/boss-util.html @@ -0,0 +1,18 @@ + + + +lateinit var bossUtil: BossUtil
+BossUtil
+@Scope("singleton") @Service class BDOBossScheduler
+Classe per la schedulazione dei boss
++ + | +
+BDOBossScheduler()
+Classe per la schedulazione dei boss + |
+
+ + | +
+lateinit var bdoBossInterface: BDOBossInterface
+BDOBossInterface + |
+
+ + | +
+lateinit var bossUtil: BossUtil
+BossUtil + |
+
+ + | +
+fun bossJob(): Unit
+Job per la schedulazione dei boss + |
+
BossUtil()
+Classe per processare i boss e ricavare il boss da notificare
+ + diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o.boss/-boss-util/bdo-boss-interface.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o.boss/-boss-util/bdo-boss-interface.html new file mode 100644 index 0000000..be086c9 --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o.boss/-boss-util/bdo-boss-interface.html @@ -0,0 +1,18 @@ + + + +lateinit var bdoBossInterface: BDOBossInterface
+BDOBossInterface
+
+bdoBossInterface
- BDOBossInterface
fun getDayBosses(giorno: String, list: ArrayList<Giorno>): Giorno?
+Metodo per ottenere il Giorno
+
+giorno
- String nome della giornata corrente in inglese e maiuscolo
+list
- ArrayList lista dei Giorno
Return
+Giorno? Giorno attuale
private fun getHourBoss(ora: Int, minuto: Int, list: ArrayList<Boss>?): Boss?
+Metodo per ottenere Boss
+
+ora
- Int ora per ricavare il boss
+minuto
- Int minuti per ricavare il boss
+list
- ArrayList? lista dei Boss di giornata
Return
+Boss? Boss prossimo allo spawn
@Scope("singleton") @Component class BossUtil
+Classe per processare i boss e ricavare il boss da notificare
++ + | +
+BossUtil()
+Classe per processare i boss e ricavare il boss da notificare + |
+
+ + | +
+lateinit var bdoBossInterface: BDOBossInterface
+BDOBossInterface + |
+
+ + | +
+fun getDayBosses(giorno: String, list: ArrayList<Giorno>): Giorno?
+Metodo per ottenere il Giorno + |
+
+ + | +
+fun getHourBoss(ora: Int, minuto: Int, list: ArrayList<Boss>?): Boss?
+Metodo per ottenere Boss + |
+
+ + | +
+fun processMinute0015(ora: Int, minuto: Int, giorno: Giorno?): Unit
+Metodo per schedulare i boss che spawnano alle 15 dell'ora + |
+
+ + | +
+fun processMinute4500(ora: Int, minuto: Int, giorno: Giorno?): Unit
+Metodo per schedulare i boss che spawnano alle 00 dell'ora successiva + |
+
+ + | +
+fun publish(bosses: Array<String>?, orarioMancante: String): Unit
+Metodo per la pubblicazione effettiva del messaggio + |
+
+ + | +
+fun publishBoss(ora: Int, minuto: Int, giorno: Giorno?): Unit
+Metodo per iniziare la pubblicazione del boss + |
+
fun processHour(ora: Int, minuto: Int, giorno: Giorno?): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o.boss/-boss-util/process-minute0015.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o.boss/-boss-util/process-minute0015.html
new file mode 100644
index 0000000..d0277b8
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o.boss/-boss-util/process-minute0015.html
@@ -0,0 +1,22 @@
+
+
+
+private fun processMinute0015(ora: Int, minuto: Int, giorno: Giorno?): Unit
+Metodo per schedulare i boss che spawnano alle 15 dell'ora
+
+giorno
- Giorno? Giorno attuale
private fun processMinute4500(ora: Int, minuto: Int, giorno: Giorno?): Unit
+Metodo per schedulare i boss che spawnano alle 00 dell'ora successiva
+
+giorno
- Giorno? Giorno attuale
fun publishBoss(ora: Int, minuto: Int, giorno: Giorno?): Unit
+Metodo per iniziare la pubblicazione del boss
+
+giorno
- Giorno? Giorno attuale
private fun publish(bosses: Array<String>?, orarioMancante: String): Unit
+Metodo per la pubblicazione effettiva del messaggio
+
+bosses
- Array? lista nomi dei boss
+orarioMancante
- String tempo mancante allo spawn del boss
+ + | +
+class BDOBossScheduler
+Classe per la schedulazione dei boss + |
+
+ + | +
+class BossUtil
+Classe per processare i boss e ricavare il boss da notificare + |
+
const val BDO_BOSS_START_COMMAND: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-b-o-s-s_-s-t-a-r-t_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-b-o-s-s_-s-t-a-r-t_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html
new file mode 100644
index 0000000..70cd246
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-b-o-s-s_-s-t-a-r-t_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html
@@ -0,0 +1,14 @@
+
+
+
+const val BDO_BOSS_START_COMMAND_DESCRIPTION: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-b-o-s-s_-s-t-o-p_-c-o-m-m-a-n-d.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-b-o-s-s_-s-t-o-p_-c-o-m-m-a-n-d.html
new file mode 100644
index 0000000..95e0253
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-b-o-s-s_-s-t-o-p_-c-o-m-m-a-n-d.html
@@ -0,0 +1,14 @@
+
+
+
+const val BDO_BOSS_STOP_COMMAND: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-b-o-s-s_-s-t-o-p_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-b-o-s-s_-s-t-o-p_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html
new file mode 100644
index 0000000..bf459f4
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-b-o-s-s_-s-t-o-p_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html
@@ -0,0 +1,14 @@
+
+
+
+const val BDO_BOSS_STOP_COMMAND_DESCRIPTION: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-n-e-w-s_-s-t-a-r-t_-c-o-m-m-a-n-d.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-n-e-w-s_-s-t-a-r-t_-c-o-m-m-a-n-d.html
new file mode 100644
index 0000000..7f853da
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-n-e-w-s_-s-t-a-r-t_-c-o-m-m-a-n-d.html
@@ -0,0 +1,14 @@
+
+
+
+const val BDO_NEWS_START_COMMAND: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-n-e-w-s_-s-t-a-r-t_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-n-e-w-s_-s-t-a-r-t_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html
new file mode 100644
index 0000000..2950c57
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-n-e-w-s_-s-t-a-r-t_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html
@@ -0,0 +1,14 @@
+
+
+
+const val BDO_NEWS_START_COMMAND_DESCRIPTION: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-n-e-w-s_-s-t-o-p_-c-o-m-m-a-n-d.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-n-e-w-s_-s-t-o-p_-c-o-m-m-a-n-d.html
new file mode 100644
index 0000000..68b0251
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-n-e-w-s_-s-t-o-p_-c-o-m-m-a-n-d.html
@@ -0,0 +1,14 @@
+
+
+
+const val BDO_NEWS_STOP_COMMAND: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-n-e-w-s_-s-t-o-p_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-n-e-w-s_-s-t-o-p_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html
new file mode 100644
index 0000000..d945a25
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-n-e-w-s_-s-t-o-p_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html
@@ -0,0 +1,14 @@
+
+
+
+const val BDO_NEWS_STOP_COMMAND_DESCRIPTION: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-p-a-t-c-h_-s-t-a-r-t_-c-o-m-m-a-n-d.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-p-a-t-c-h_-s-t-a-r-t_-c-o-m-m-a-n-d.html
new file mode 100644
index 0000000..f22d79e
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-p-a-t-c-h_-s-t-a-r-t_-c-o-m-m-a-n-d.html
@@ -0,0 +1,14 @@
+
+
+
+const val BDO_PATCH_START_COMMAND: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-p-a-t-c-h_-s-t-a-r-t_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-p-a-t-c-h_-s-t-a-r-t_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html
new file mode 100644
index 0000000..c43d14c
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-p-a-t-c-h_-s-t-a-r-t_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html
@@ -0,0 +1,14 @@
+
+
+
+const val BDO_PATCH_START_COMMAND_DESCRIPTION: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-p-a-t-c-h_-s-t-o-p_-c-o-m-m-a-n-d.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-p-a-t-c-h_-s-t-o-p_-c-o-m-m-a-n-d.html
new file mode 100644
index 0000000..3b14744
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-p-a-t-c-h_-s-t-o-p_-c-o-m-m-a-n-d.html
@@ -0,0 +1,14 @@
+
+
+
+const val BDO_PATCH_STOP_COMMAND: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-p-a-t-c-h_-s-t-o-p_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-p-a-t-c-h_-s-t-o-p_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html
new file mode 100644
index 0000000..8f7a0f7
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-b-d-o_-p-a-t-c-h_-s-t-o-p_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html
@@ -0,0 +1,14 @@
+
+
+
+const val BDO_PATCH_STOP_COMMAND_DESCRIPTION: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-init-.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-init-.html
new file mode 100644
index 0000000..aa752c7
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/-init-.html
@@ -0,0 +1,15 @@
+
+
+
+BDOCommand()
+Listener per contenere i comandi di BDO
+ + diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/bdo-boss-interface.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/bdo-boss-interface.html new file mode 100644 index 0000000..6f8842d --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/bdo-boss-interface.html @@ -0,0 +1,18 @@ + + + +lateinit var bdoBossInterface: BDOBossInterface
+BDOBossInterface
+
+bdoBossInterface
- BDOBossInterface
lateinit var bdoNewsInterface: BDONewsInterface
+BDONewsInterface
+
+bdoNewsInterface
- BDONewsInterface
lateinit var bdoPatchInterface: BDOPatchInterface
+BDOPatchInterface
+
+bdoPatchInterface
- BDOPatchInterface
@Scope("singleton") @Service class BDOCommand : ListenerAdapter
+Listener per contenere i comandi di BDO
++ + | +
+BDOCommand()
+Listener per contenere i comandi di BDO + |
+
+ + | +
+lateinit var bdoBossInterface: BDOBossInterface
+BDOBossInterface + |
+
+ + | +
+lateinit var bdoNewsInterface: BDONewsInterface
+BDONewsInterface + |
+
+ + | +
+lateinit var bdoPatchInterface: BDOPatchInterface
+BDOPatchInterface + |
+
+ + | +
+lateinit var serverManagementInterface: ServerManagementInterface
+ServerManagementInterface + |
+
+ + | +
+fun onMessageReceived(event: MessageReceivedEvent?): Unit |
+
+ + | +
+fun sendMessageAddChannel(event: MessageReceivedEvent, message: String): Unit |
+
+ + | +
+fun sendMessageRemoveChannel(event: MessageReceivedEvent, message: String, channelID: String): Unit |
+
+ + | +
+const val BDO_BOSS_START_COMMAND: String |
+
+ + | +
+const val BDO_BOSS_START_COMMAND_DESCRIPTION: String |
+
+ + | +
+const val BDO_BOSS_STOP_COMMAND: String |
+
+ + | +
+const val BDO_BOSS_STOP_COMMAND_DESCRIPTION: String |
+
+ + | +
+const val BDO_NEWS_START_COMMAND: String |
+
+ + | +
+const val BDO_NEWS_START_COMMAND_DESCRIPTION: String |
+
+ + | +
+const val BDO_NEWS_STOP_COMMAND: String |
+
+ + | +
+const val BDO_NEWS_STOP_COMMAND_DESCRIPTION: String |
+
+ + | +
+const val BDO_PATCH_START_COMMAND: String |
+
+ + | +
+const val BDO_PATCH_START_COMMAND_DESCRIPTION: String |
+
+ + | +
+const val BDO_PATCH_STOP_COMMAND: String |
+
+ + | +
+const val BDO_PATCH_STOP_COMMAND_DESCRIPTION: String |
+
fun onMessageReceived(event: MessageReceivedEvent?): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/send-message-add-channel.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/send-message-add-channel.html
new file mode 100644
index 0000000..f780a0b
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/send-message-add-channel.html
@@ -0,0 +1,14 @@
+
+
+
+private fun sendMessageAddChannel(event: MessageReceivedEvent, message: String): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/send-message-remove-channel.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/send-message-remove-channel.html
new file mode 100644
index 0000000..7417738
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/send-message-remove-channel.html
@@ -0,0 +1,14 @@
+
+
+
+private fun sendMessageRemoveChannel(event: MessageReceivedEvent, message: String, channelID: String): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/server-management-interface.html b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/server-management-interface.html
new file mode 100644
index 0000000..2023bfb
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.-b-d-o/-b-d-o-command/server-management-interface.html
@@ -0,0 +1,18 @@
+
+
+
+lateinit var serverManagementInterface: ServerManagementInterface
+ServerManagementInterface
+
+serverManagementInterface
- ServerManagementInterface
+ + | +
+class BDOCommand : ListenerAdapter
+Listener per contenere i comandi di BDO + |
+
const val CONFIGURATION_COMMAND: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/-c-o-n-f-i-g-u-r-a-t-i-o-n_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html b/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/-c-o-n-f-i-g-u-r-a-t-i-o-n_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html
new file mode 100644
index 0000000..a0d0ba9
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/-c-o-n-f-i-g-u-r-a-t-i-o-n_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html
@@ -0,0 +1,14 @@
+
+
+
+const val CONFIGURATION_COMMAND_DESCRIPTION: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/-h-e-l-p_-c-o-m-m-a-n-d.html b/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/-h-e-l-p_-c-o-m-m-a-n-d.html
new file mode 100644
index 0000000..5306269
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/-h-e-l-p_-c-o-m-m-a-n-d.html
@@ -0,0 +1,14 @@
+
+
+
+const val HELP_COMMAND: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/-h-e-l-p_-c-o-m-m-a-n-d2.html b/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/-h-e-l-p_-c-o-m-m-a-n-d2.html
new file mode 100644
index 0000000..2172127
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/-h-e-l-p_-c-o-m-m-a-n-d2.html
@@ -0,0 +1,14 @@
+
+
+
+const val HELP_COMMAND2: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/-i-n-f-o_-c-o-m-m-a-n-d.html b/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/-i-n-f-o_-c-o-m-m-a-n-d.html
new file mode 100644
index 0000000..074b3e2
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/-i-n-f-o_-c-o-m-m-a-n-d.html
@@ -0,0 +1,14 @@
+
+
+
+const val INFO_COMMAND: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/-i-n-f-o_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html b/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/-i-n-f-o_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html
new file mode 100644
index 0000000..4c74734
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/-i-n-f-o_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html
@@ -0,0 +1,14 @@
+
+
+
+const val INFO_COMMAND_DESCRIPTION: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/-init-.html b/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/-init-.html
new file mode 100644
index 0000000..3949fd0
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/-init-.html
@@ -0,0 +1,15 @@
+
+
+
+GeneralCommand()
+Listener per contenere comandi di uso generale e di configurazione del bot
+ + diff --git a/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/configure-symbol.html b/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/configure-symbol.html new file mode 100644 index 0000000..6acd907 --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/configure-symbol.html @@ -0,0 +1,14 @@ + + + +private fun configureSymbol(event: MessageReceivedEvent): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/get-configuration-command.html b/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/get-configuration-command.html
new file mode 100644
index 0000000..57c38ca
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/get-configuration-command.html
@@ -0,0 +1,14 @@
+
+
+
+private fun getConfigurationCommand(event: MessageReceivedEvent): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/get-help.html b/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/get-help.html
new file mode 100644
index 0000000..b625840
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/get-help.html
@@ -0,0 +1,14 @@
+
+
+
+private fun getHelp(serverID: String): MessageEmbed
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/get-info.html b/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/get-info.html
new file mode 100644
index 0000000..37bbff4
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/get-info.html
@@ -0,0 +1,14 @@
+
+
+
+private fun getInfo(): MessageEmbed
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/index.html b/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/index.html
new file mode 100644
index 0000000..314625c
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/index.html
@@ -0,0 +1,129 @@
+
+
+
+@Scope("singleton") @Service class GeneralCommand : ListenerAdapter
+Listener per contenere comandi di uso generale e di configurazione del bot
++ + | +
+GeneralCommand()
+Listener per contenere comandi di uso generale e di configurazione del bot + |
+
+ + | +
+lateinit var serverManagementInterface: ServerManagementInterface
+ServerManagementInterface + |
+
+ + | +
+fun configureSymbol(event: MessageReceivedEvent): Unit |
+
+ + | +
+fun getConfigurationCommand(event: MessageReceivedEvent): Unit |
+
+ + | +
+fun getHelp(serverID: String): MessageEmbed |
+
+ + | +
+fun getInfo(): MessageEmbed |
+
+ + | +
+fun onMessageReceived(event: MessageReceivedEvent?): Unit |
+
+ + | +
+const val CONFIGURATION_COMMAND: String |
+
+ + | +
+const val CONFIGURATION_COMMAND_DESCRIPTION: String |
+
+ + | +
+const val HELP_COMMAND: String |
+
+ + | +
+const val HELP_COMMAND2: String |
+
+ + | +
+const val INFO_COMMAND: String |
+
+ + | +
+const val INFO_COMMAND_DESCRIPTION: String |
+
fun onMessageReceived(event: MessageReceivedEvent?): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/server-management-interface.html b/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/server-management-interface.html
new file mode 100644
index 0000000..eb990f2
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.general-command/-general-command/server-management-interface.html
@@ -0,0 +1,18 @@
+
+
+
+lateinit var serverManagementInterface: ServerManagementInterface
+ServerManagementInterface
+
+serverManagementInterface
- ServerManagementInterface
JoinListener()
+Listener per contenere quando il bot entra o esce +da un server Discord
+ + diff --git a/docs/page/kotlindoc/it.discordbot.command.general-command/-join-listener/index.html b/docs/page/kotlindoc/it.discordbot.command.general-command/-join-listener/index.html new file mode 100644 index 0000000..a74bcfc --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.command.general-command/-join-listener/index.html @@ -0,0 +1,70 @@ + + + +@Scope("singleton") @Service class JoinListener : ListenerAdapter
+Listener per contenere quando il bot entra o esce +da un server Discord
++ + | +
+JoinListener()
+Listener per contenere quando il bot entra o esce +da un server Discord + |
+
+ + | +
+lateinit var serverManagementInterface: ServerManagementInterface
+ServerManagementInterface + |
+
+ + | +
+fun onGuildJoin(event: GuildJoinEvent?): Unit |
+
+ + | +
+fun onGuildLeave(event: GuildLeaveEvent?): Unit |
+
+ + | +
+fun onGuildUpdateName(event: GuildUpdateNameEvent): Unit |
+
fun onGuildJoin(event: GuildJoinEvent?): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.general-command/-join-listener/on-guild-leave.html b/docs/page/kotlindoc/it.discordbot.command.general-command/-join-listener/on-guild-leave.html
new file mode 100644
index 0000000..8535ca1
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.general-command/-join-listener/on-guild-leave.html
@@ -0,0 +1,14 @@
+
+
+
+fun onGuildLeave(event: GuildLeaveEvent?): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.general-command/-join-listener/on-guild-update-name.html b/docs/page/kotlindoc/it.discordbot.command.general-command/-join-listener/on-guild-update-name.html
new file mode 100644
index 0000000..d2c4ff9
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.general-command/-join-listener/on-guild-update-name.html
@@ -0,0 +1,14 @@
+
+
+
+fun onGuildUpdateName(event: GuildUpdateNameEvent): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.general-command/-join-listener/server-management-interface.html b/docs/page/kotlindoc/it.discordbot.command.general-command/-join-listener/server-management-interface.html
new file mode 100644
index 0000000..d0890a3
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.general-command/-join-listener/server-management-interface.html
@@ -0,0 +1,18 @@
+
+
+
+lateinit var serverManagementInterface: ServerManagementInterface
+ServerManagementInterface
+
+serverManagementInterface
- ServerManagementInterface
+ + | +
+class GeneralCommand : ListenerAdapter
+Listener per contenere comandi di uso generale e di configurazione del bot + |
+
+ + | +
+class JoinListener : ListenerAdapter
+Listener per contenere quando il bot entra o esce +da un server Discord + |
+
AudioPlayerSendHandler(audioPlayer: AudioPlayer)
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/-audio-player-send-handler/audio-player.html b/docs/page/kotlindoc/it.discordbot.command.music.config/-audio-player-send-handler/audio-player.html
new file mode 100644
index 0000000..eea6476
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music.config/-audio-player-send-handler/audio-player.html
@@ -0,0 +1,14 @@
+
+
+
+val audioPlayer: AudioPlayer
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/-audio-player-send-handler/can-provide.html b/docs/page/kotlindoc/it.discordbot.command.music.config/-audio-player-send-handler/can-provide.html
new file mode 100644
index 0000000..b11c77b
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music.config/-audio-player-send-handler/can-provide.html
@@ -0,0 +1,14 @@
+
+
+
+fun canProvide(): Boolean
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/-audio-player-send-handler/index.html b/docs/page/kotlindoc/it.discordbot.command.music.config/-audio-player-send-handler/index.html
new file mode 100644
index 0000000..1414424
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music.config/-audio-player-send-handler/index.html
@@ -0,0 +1,70 @@
+
+
+
+class AudioPlayerSendHandler : AudioSendHandler
++ + | +
+AudioPlayerSendHandler(audioPlayer: AudioPlayer) |
+
+ + | +
+val audioPlayer: AudioPlayer |
+
+ + | +
+var lastFrame: AudioFrame? |
+
+ + | +
+fun canProvide(): Boolean |
+
+ + | +
+fun isOpus(): Boolean |
+
+ + | +
+fun provide20MsAudio(): ByteArray? |
+
fun isOpus(): Boolean
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/-audio-player-send-handler/last-frame.html b/docs/page/kotlindoc/it.discordbot.command.music.config/-audio-player-send-handler/last-frame.html
new file mode 100644
index 0000000..3363abe
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music.config/-audio-player-send-handler/last-frame.html
@@ -0,0 +1,14 @@
+
+
+
+private var lastFrame: AudioFrame?
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/-audio-player-send-handler/provide20-ms-audio.html b/docs/page/kotlindoc/it.discordbot.command.music.config/-audio-player-send-handler/provide20-ms-audio.html
new file mode 100644
index 0000000..a870608
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music.config/-audio-player-send-handler/provide20-ms-audio.html
@@ -0,0 +1,14 @@
+
+
+
+fun provide20MsAudio(): ByteArray?
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/-guild-music-manager/-init-.html b/docs/page/kotlindoc/it.discordbot.command.music.config/-guild-music-manager/-init-.html
new file mode 100644
index 0000000..29103c9
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music.config/-guild-music-manager/-init-.html
@@ -0,0 +1,14 @@
+
+
+
+GuildMusicManager(manager: AudioPlayerManager)
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/-guild-music-manager/index.html b/docs/page/kotlindoc/it.discordbot.command.music.config/-guild-music-manager/index.html
new file mode 100644
index 0000000..ae04d9c
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music.config/-guild-music-manager/index.html
@@ -0,0 +1,58 @@
+
+
+
+class GuildMusicManager
++ + | +
+GuildMusicManager(manager: AudioPlayerManager) |
+
+ + | +
+val manager: AudioPlayerManager |
+
+ + | +
+var player: AudioPlayer |
+
+ + | +
+var scheduler: TrackScheduler |
+
+ + | +
+var sendHandler: AudioPlayerSendHandler |
+
val manager: AudioPlayerManager
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/-guild-music-manager/player.html b/docs/page/kotlindoc/it.discordbot.command.music.config/-guild-music-manager/player.html
new file mode 100644
index 0000000..37baec6
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music.config/-guild-music-manager/player.html
@@ -0,0 +1,14 @@
+
+
+
+var player: AudioPlayer
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/-guild-music-manager/scheduler.html b/docs/page/kotlindoc/it.discordbot.command.music.config/-guild-music-manager/scheduler.html
new file mode 100644
index 0000000..f2fba0b
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music.config/-guild-music-manager/scheduler.html
@@ -0,0 +1,14 @@
+
+
+
+var scheduler: TrackScheduler
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/-guild-music-manager/send-handler.html b/docs/page/kotlindoc/it.discordbot.command.music.config/-guild-music-manager/send-handler.html
new file mode 100644
index 0000000..f7680a2
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music.config/-guild-music-manager/send-handler.html
@@ -0,0 +1,14 @@
+
+
+
+var sendHandler: AudioPlayerSendHandler
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/-music-manager/-d-e-f-a-u-l-t_-v-o-l-u-m-e.html b/docs/page/kotlindoc/it.discordbot.command.music.config/-music-manager/-d-e-f-a-u-l-t_-v-o-l-u-m-e.html
new file mode 100644
index 0000000..b9c2cd0
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music.config/-music-manager/-d-e-f-a-u-l-t_-v-o-l-u-m-e.html
@@ -0,0 +1,14 @@
+
+
+
+private val DEFAULT_VOLUME: Int
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/-music-manager/-init-.html b/docs/page/kotlindoc/it.discordbot.command.music.config/-music-manager/-init-.html
new file mode 100644
index 0000000..63802d2
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music.config/-music-manager/-init-.html
@@ -0,0 +1,14 @@
+
+
+
+MusicManager()
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/-music-manager/change-volume.html b/docs/page/kotlindoc/it.discordbot.command.music.config/-music-manager/change-volume.html
new file mode 100644
index 0000000..f570acf
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music.config/-music-manager/change-volume.html
@@ -0,0 +1,19 @@
+
+
+
+private fun changeVolume(event: MessageReceivedEvent): Unit
+Metodo per cambiare il volume, attualmente non in uso. +Bisogno di calcolo computazionale extra per il cambio del volume.
+internal fun clearQueue(event: MessageReceivedEvent): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/-music-manager/get-list-queue.html b/docs/page/kotlindoc/it.discordbot.command.music.config/-music-manager/get-list-queue.html
new file mode 100644
index 0000000..1d3b817
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music.config/-music-manager/get-list-queue.html
@@ -0,0 +1,18 @@
+
+
+
+internal fun getListQueue(event: MessageReceivedEvent): Unit
+Metodo per ottenere la lista della coda
+private fun getMusicManager(guildId: String): GuildMusicManager
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/-music-manager/get-timestamp.html b/docs/page/kotlindoc/it.discordbot.command.music.config/-music-manager/get-timestamp.html
new file mode 100644
index 0000000..cf7357d
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music.config/-music-manager/get-timestamp.html
@@ -0,0 +1,14 @@
+
+
+
+private fun getTimestamp(milliseconds: Long): String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/-music-manager/get-url.html b/docs/page/kotlindoc/it.discordbot.command.music.config/-music-manager/get-url.html
new file mode 100644
index 0000000..afc32e2
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music.config/-music-manager/get-url.html
@@ -0,0 +1,20 @@
+
+
+
+private fun getUrl(event: MessageReceivedEvent): String
+Parsing del messaggio per ottenere l'url
+Return
+String url della canzone
@Scope("singleton") @Component class MusicManager
++ + | +
+MusicManager() |
+
+ + | +
+val DEFAULT_VOLUME: Int |
+
+ + | +
+val musicManagers: MutableMap<String, GuildMusicManager> |
+
+ + | +
+val playerManager: AudioPlayerManager |
+
+ + | +
+fun changeVolume(event: MessageReceivedEvent): Unit
+Metodo per cambiare il volume, attualmente non in uso. +Bisogno di calcolo computazionale extra per il cambio del volume. + |
+
+ + | +
+fun clearQueue(event: MessageReceivedEvent): Unit |
+
+ + | +
+fun getListQueue(event: MessageReceivedEvent): Unit
+Metodo per ottenere la lista della coda + |
+
+ + | +
+fun getMusicManager(guildId: String): GuildMusicManager |
+
+ + | +
+fun getTimestamp(milliseconds: Long): String |
+
+ + | +
+fun getUrl(event: MessageReceivedEvent): String
+Parsing del messaggio per ottenere l'url + |
+
+ + | +
+fun join(event: MessageReceivedEvent): Unit
+Metodo per eseguire il join nel canale + |
+
+ + | +
+fun leave(event: MessageReceivedEvent): Unit
+Metodo per far uscire il bot dalla lobby, bloccherà la queue +e la svuoterà + |
+
+ + | +
+fun loadAndPlay(mng: GuildMusicManager, channel: MessageChannel, url: String, addPlaylist: Boolean): Unit
+Metodo per caricare una traccia o una playlist nella coda + |
+
+ + | +
+fun nowPlay(event: MessageReceivedEvent): Unit
+Metodo per ottenere la traccia attualmente in riproduzione + |
+
+ + | +
+fun pauseResume(event: MessageReceivedEvent): Unit
+Metodo per mettere in pausa o riprendere la traccia attualmente +in riproduzione + |
+
+ + | +
+fun play(event: MessageReceivedEvent): Unit
+Metodo per riprodurre l'url audio passato come parametro + |
+
+ + | +
+fun playPlaylist(event: MessageReceivedEvent): Unit
+Metodo per riprodurre una playlist dall'url passato come parametro + |
+
+ + | +
+fun repeat(event: MessageReceivedEvent): Unit
+Metodo per ripetere la traccia attualmente in riproduzione + |
+
+ + | +
+fun reset(event: MessageReceivedEvent): Unit
+Metodo per resettare il bot in caso di problemi. +Pulisce la coda, e resetta i canali audio + |
+
+ + | +
+fun restart(event: MessageReceivedEvent): Unit
+Metodo per riavviare la traccia attualmente in riproduzione + |
+
+ + | +
+fun shuffleQueue(event: MessageReceivedEvent): Unit
+Metodo per randomizzare la coda + |
+
+ + | +
+fun skip(event: MessageReceivedEvent): Unit
+Metodo per saltare la traccia attualmente in riproduzione + |
+
+ + | +
+fun stop(event: MessageReceivedEvent): Unit
+Metodo per stoppare la riproduzione e pulire la coda + |
+
private fun join(event: MessageReceivedEvent): Unit
+Metodo per eseguire il join nel canale
+internal fun leave(event: MessageReceivedEvent): Unit
+Metodo per far uscire il bot dalla lobby, bloccherà la queue +e la svuoterà
+private fun loadAndPlay(mng: GuildMusicManager, channel: MessageChannel, url: String, addPlaylist: Boolean): Unit
+Metodo per caricare una traccia o una playlist nella coda
+private val musicManagers: MutableMap<String, GuildMusicManager>
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/-music-manager/now-play.html b/docs/page/kotlindoc/it.discordbot.command.music.config/-music-manager/now-play.html
new file mode 100644
index 0000000..2c98566
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music.config/-music-manager/now-play.html
@@ -0,0 +1,18 @@
+
+
+
+internal fun nowPlay(event: MessageReceivedEvent): Unit
+Metodo per ottenere la traccia attualmente in riproduzione
+internal fun pauseResume(event: MessageReceivedEvent): Unit
+Metodo per mettere in pausa o riprendere la traccia attualmente +in riproduzione
+internal fun playPlaylist(event: MessageReceivedEvent): Unit
+Metodo per riprodurre una playlist dall'url passato come parametro
+internal fun play(event: MessageReceivedEvent): Unit
+Metodo per riprodurre l'url audio passato come parametro
+private val playerManager: AudioPlayerManager
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/-music-manager/repeat.html b/docs/page/kotlindoc/it.discordbot.command.music.config/-music-manager/repeat.html
new file mode 100644
index 0000000..79148db
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music.config/-music-manager/repeat.html
@@ -0,0 +1,18 @@
+
+
+
+internal fun repeat(event: MessageReceivedEvent): Unit
+Metodo per ripetere la traccia attualmente in riproduzione
+internal fun reset(event: MessageReceivedEvent): Unit
+Metodo per resettare il bot in caso di problemi. +Pulisce la coda, e resetta i canali audio
+internal fun restart(event: MessageReceivedEvent): Unit
+Metodo per riavviare la traccia attualmente in riproduzione
+internal fun shuffleQueue(event: MessageReceivedEvent): Unit
+Metodo per randomizzare la coda
+internal fun skip(event: MessageReceivedEvent): Unit
+Metodo per saltare la traccia attualmente in riproduzione
+internal fun stop(event: MessageReceivedEvent): Unit
+Metodo per stoppare la riproduzione e pulire la coda
+TrackScheduler(player: AudioPlayer)
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/-track-scheduler/index.html b/docs/page/kotlindoc/it.discordbot.command.music.config/-track-scheduler/index.html
new file mode 100644
index 0000000..26e771d
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music.config/-track-scheduler/index.html
@@ -0,0 +1,109 @@
+
+
+
+class TrackScheduler : AudioEventAdapter
++ + | +
+TrackScheduler(player: AudioPlayer) |
+
+ + | +
+var lastTrack: AudioTrack? |
+
+ + | +
+val player: AudioPlayer |
+
+ + | +
+val queue: Queue<AudioTrack> |
+
+ + | +
+var repeating: Boolean |
+
+ + | +
+fun isRepeating(): Boolean |
+
+ + | +
+fun nextTrack(): Unit
+Start the next track, stopping the current one if it is playing. + |
+
+ + | +
+fun onTrackEnd(player: AudioPlayer?, track: AudioTrack?, endReason: AudioTrackEndReason): Unit |
+
+ + | +
+fun queue(track: AudioTrack): Unit
+Add the next track to queue or play right away if nothing is in the queue. + |
+
+ + | +
+fun setRepeating(repeating: Boolean): Unit |
+
+ + | +
+fun shuffle(): Unit |
+
fun isRepeating(): Boolean
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/-track-scheduler/last-track.html b/docs/page/kotlindoc/it.discordbot.command.music.config/-track-scheduler/last-track.html
new file mode 100644
index 0000000..398c87b
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music.config/-track-scheduler/last-track.html
@@ -0,0 +1,14 @@
+
+
+
+var lastTrack: AudioTrack?
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/-track-scheduler/next-track.html b/docs/page/kotlindoc/it.discordbot.command.music.config/-track-scheduler/next-track.html
new file mode 100644
index 0000000..9fa9b00
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music.config/-track-scheduler/next-track.html
@@ -0,0 +1,15 @@
+
+
+
+fun nextTrack(): Unit
+Start the next track, stopping the current one if it is playing.
+ + diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/-track-scheduler/on-track-end.html b/docs/page/kotlindoc/it.discordbot.command.music.config/-track-scheduler/on-track-end.html new file mode 100644 index 0000000..6e7d6ca --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.command.music.config/-track-scheduler/on-track-end.html @@ -0,0 +1,14 @@ + + + +fun onTrackEnd(player: AudioPlayer?, track: AudioTrack?, endReason: AudioTrackEndReason): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/-track-scheduler/player.html b/docs/page/kotlindoc/it.discordbot.command.music.config/-track-scheduler/player.html
new file mode 100644
index 0000000..9ece904
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music.config/-track-scheduler/player.html
@@ -0,0 +1,14 @@
+
+
+
+val player: AudioPlayer
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/-track-scheduler/queue.html b/docs/page/kotlindoc/it.discordbot.command.music.config/-track-scheduler/queue.html
new file mode 100644
index 0000000..3c1e0af
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music.config/-track-scheduler/queue.html
@@ -0,0 +1,19 @@
+
+
+
+val queue: Queue<AudioTrack>
+fun queue(track: AudioTrack): Unit
+Add the next track to queue or play right away if nothing is in the queue.
+
+track
- The track to play or add to queue.
private var repeating: Boolean
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/-track-scheduler/set-repeating.html b/docs/page/kotlindoc/it.discordbot.command.music.config/-track-scheduler/set-repeating.html
new file mode 100644
index 0000000..8ce9e2c
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music.config/-track-scheduler/set-repeating.html
@@ -0,0 +1,14 @@
+
+
+
+fun setRepeating(repeating: Boolean): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/-track-scheduler/shuffle.html b/docs/page/kotlindoc/it.discordbot.command.music.config/-track-scheduler/shuffle.html
new file mode 100644
index 0000000..b24d923
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music.config/-track-scheduler/shuffle.html
@@ -0,0 +1,14 @@
+
+
+
+fun shuffle(): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music.config/index.html b/docs/page/kotlindoc/it.discordbot.command.music.config/index.html
new file mode 100644
index 0000000..df07495
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music.config/index.html
@@ -0,0 +1,45 @@
+
+
+
++ + | +
+class AudioPlayerSendHandler : AudioSendHandler |
+
+ + | +
+class GuildMusicManager |
+
+ + | +
+class MusicManager |
+
+ + | +
+class TrackScheduler : AudioEventAdapter |
+
MusicCommand()
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music/-music-command/index.html b/docs/page/kotlindoc/it.discordbot.command.music/-music-command/index.html
new file mode 100644
index 0000000..6c16d18
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music/-music-command/index.html
@@ -0,0 +1,56 @@
+
+
+
+@Scope("singleton") @Service class MusicCommand : ListenerAdapter
++ + | +
+MusicCommand() |
+
+ + | +
+lateinit var musicManager: MusicManager |
+
+ + | +
+lateinit var serverManagementInterface: ServerManagementInterface |
+
+ + | +
+fun onMessageReceived(event: MessageReceivedEvent?): Unit |
+
lateinit var musicManager: MusicManager
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music/-music-command/on-message-received.html b/docs/page/kotlindoc/it.discordbot.command.music/-music-command/on-message-received.html
new file mode 100644
index 0000000..a460a26
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music/-music-command/on-message-received.html
@@ -0,0 +1,14 @@
+
+
+
+fun onMessageReceived(event: MessageReceivedEvent?): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music/-music-command/server-management-interface.html b/docs/page/kotlindoc/it.discordbot.command.music/-music-command/server-management-interface.html
new file mode 100644
index 0000000..adff39d
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music/-music-command/server-management-interface.html
@@ -0,0 +1,14 @@
+
+
+
+lateinit var serverManagementInterface: ServerManagementInterface
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.music/index.html b/docs/page/kotlindoc/it.discordbot.command.music/index.html
new file mode 100644
index 0000000..c6aca1a
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.music/index.html
@@ -0,0 +1,24 @@
+
+
+
++ + | +
+class MusicCommand : ListenerAdapter |
+
interface RSSReader
+Interfaccia per la lettura e la conversione +dei messaggi RSS a MessageEmbed
++ + | +
+abstract fun prepareRSStoMessageEmbed(message: RSSMessage): MessageEmbed |
+
+ + | +
+abstract fun readRSS(url: String): RSSMessage |
+
+ + | +
+class ATMRSSReader : RSSReader
+Classe per leggere il feed RSS di atm + |
+
+ + | +
+class BDORSSReader : RSSReader
+Classe per leggere gli RSS di BDO + |
+
abstract fun prepareRSStoMessageEmbed(message: RSSMessage): MessageEmbed
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.pattern/-r-s-s-reader/read-r-s-s.html b/docs/page/kotlindoc/it.discordbot.command.pattern/-r-s-s-reader/read-r-s-s.html
new file mode 100644
index 0000000..f511426
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.pattern/-r-s-s-reader/read-r-s-s.html
@@ -0,0 +1,14 @@
+
+
+
+abstract fun readRSS(url: String): RSSMessage
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.pattern/-r-s-s-scheduler/index.html b/docs/page/kotlindoc/it.discordbot.command.pattern/-r-s-s-scheduler/index.html
new file mode 100644
index 0000000..8e2a8c4
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.pattern/-r-s-s-scheduler/index.html
@@ -0,0 +1,67 @@
+
+
+
+interface RSSScheduler
+Interfaccia base per i metodi di pubblicazione dei messaggi RSS
++ + | +
+abstract fun procedurePublish(rssMessage: RSSMessage): Unit
+Metodo per la preparazione alla pubblicazione dei messaggi RSS + |
+
+ + | +
+abstract fun publishMessage(message: MessageEmbed, serversToChannel: ArrayList<ServerToChannel>): Unit
+Metodo per la pubblicazione dei messaggi + |
+
+ + | +
+class ATMRSSScheduler : RSSScheduler
+Classe per la schedulaziooe dei messaggi RSS di ATM + |
+
+ + | +
+class BDONewsRSSScheduler : RSSScheduler
+Classe per la schedulaziooe dei messaggi di news di BDO + |
+
+ + | +
+class BDOPatchRSSScheduler : RSSScheduler |
+
abstract fun procedurePublish(rssMessage: RSSMessage): Unit
+Metodo per la preparazione alla pubblicazione dei messaggi RSS
+
+rssMessage
- RSSMessage messaggio RSS
abstract fun publishMessage(message: MessageEmbed, serversToChannel: ArrayList<ServerToChannel>): Unit
+Metodo per la pubblicazione dei messaggi
+
+message
- MessageEmbed Messaggio
+serversToChannel
- ArrayList Lista server e canali
+ + | +
+interface RSSReader
+Interfaccia per la lettura e la conversione +dei messaggi RSS a MessageEmbed + |
+
+ + | +
+interface RSSScheduler
+Interfaccia base per i metodi di pubblicazione dei messaggi RSS + |
+
const val ATM_START_COMMAND: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-command/-a-t-m_-s-t-a-r-t_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-command/-a-t-m_-s-t-a-r-t_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html
new file mode 100644
index 0000000..c917d54
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-command/-a-t-m_-s-t-a-r-t_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html
@@ -0,0 +1,14 @@
+
+
+
+const val ATM_START_COMMAND_DESCRIPTION: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-command/-a-t-m_-s-t-o-p_-c-o-m-m-a-n-d.html b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-command/-a-t-m_-s-t-o-p_-c-o-m-m-a-n-d.html
new file mode 100644
index 0000000..6720730
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-command/-a-t-m_-s-t-o-p_-c-o-m-m-a-n-d.html
@@ -0,0 +1,14 @@
+
+
+
+const val ATM_STOP_COMMAND: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-command/-a-t-m_-s-t-o-p_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-command/-a-t-m_-s-t-o-p_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html
new file mode 100644
index 0000000..db74ec9
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-command/-a-t-m_-s-t-o-p_-c-o-m-m-a-n-d_-d-e-s-c-r-i-p-t-i-o-n.html
@@ -0,0 +1,14 @@
+
+
+
+const val ATM_STOP_COMMAND_DESCRIPTION: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-command/-init-.html b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-command/-init-.html
new file mode 100644
index 0000000..2d85365
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-command/-init-.html
@@ -0,0 +1,15 @@
+
+
+
+ATMCommand()
+Per i comandi dell'ATM
+ + diff --git a/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-command/atm-interface.html b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-command/atm-interface.html new file mode 100644 index 0000000..76814c6 --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-command/atm-interface.html @@ -0,0 +1,18 @@ + + + +lateinit var atmInterface: ATMInterface
+ATMInterface
+@Scope("singleton") @Service class ATMCommand : ListenerAdapter
+Per i comandi dell'ATM
++ + | +
+ATMCommand()
+Per i comandi dell'ATM + |
+
+ + | +
+lateinit var atmInterface: ATMInterface
+ATMInterface + |
+
+ + | +
+lateinit var serverManagementInterface: ServerManagementInterface
+ServerManagementInterface + |
+
+ + | +
+fun onMessageReceived(event: MessageReceivedEvent?): Unit |
+
+ + | +
+const val ATM_START_COMMAND: String |
+
+ + | +
+const val ATM_START_COMMAND_DESCRIPTION: String |
+
+ + | +
+const val ATM_STOP_COMMAND: String |
+
+ + | +
+const val ATM_STOP_COMMAND_DESCRIPTION: String |
+
fun onMessageReceived(event: MessageReceivedEvent?): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-command/server-management-interface.html b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-command/server-management-interface.html
new file mode 100644
index 0000000..bc7e6a3
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-command/server-management-interface.html
@@ -0,0 +1,18 @@
+
+
+
+lateinit var serverManagementInterface: ServerManagementInterface
+ServerManagementInterface
+
+serverManagementInterface
- ServerManagementInterface
private const val ATM_LOGO_RSS: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-r-s-s-reader/-init-.html b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-r-s-s-reader/-init-.html
new file mode 100644
index 0000000..e9eaa41
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-r-s-s-reader/-init-.html
@@ -0,0 +1,15 @@
+
+
+
+ATMRSSReader()
+Classe per leggere il feed RSS di atm
+ + diff --git a/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-r-s-s-reader/index.html b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-r-s-s-reader/index.html new file mode 100644 index 0000000..99bd78f --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-r-s-s-reader/index.html @@ -0,0 +1,59 @@ + + + +@Scope("singleton") @Component class ATMRSSReader : RSSReader
+Classe per leggere il feed RSS di atm
++ + | +
+ATMRSSReader()
+Classe per leggere il feed RSS di atm + |
+
+ + | +
+fun prepareRSStoMessageEmbed(message: RSSMessage): MessageEmbed |
+
+ + | +
+fun readRSS(url: String): RSSMessage |
+
+ + | +
+const val ATM_LOGO_RSS: String |
+
fun prepareRSStoMessageEmbed(message: RSSMessage): MessageEmbed
+Overrides RSSReader.prepareRSStoMessageEmbed
+ + diff --git a/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-r-s-s-reader/read-r-s-s.html b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-r-s-s-reader/read-r-s-s.html new file mode 100644 index 0000000..9265055 --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-r-s-s-reader/read-r-s-s.html @@ -0,0 +1,15 @@ + + + +fun readRSS(url: String): RSSMessage
+Overrides RSSReader.readRSS
+ + diff --git a/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-r-s-s-scheduler/-a-t-m_-r-s-s_-l-i-n-k.html b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-r-s-s-scheduler/-a-t-m_-r-s-s_-l-i-n-k.html new file mode 100644 index 0000000..b54e728 --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-r-s-s-scheduler/-a-t-m_-r-s-s_-l-i-n-k.html @@ -0,0 +1,14 @@ + + + +const val ATM_RSS_LINK: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-r-s-s-scheduler/-init-.html b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-r-s-s-scheduler/-init-.html
new file mode 100644
index 0000000..24c29f4
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-r-s-s-scheduler/-init-.html
@@ -0,0 +1,15 @@
+
+
+
+ATMRSSScheduler()
+Classe per la schedulaziooe dei messaggi RSS di ATM
+ + diff --git a/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-r-s-s-scheduler/atm-interface.html b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-r-s-s-scheduler/atm-interface.html new file mode 100644 index 0000000..15351fd --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-r-s-s-scheduler/atm-interface.html @@ -0,0 +1,18 @@ + + + +lateinit var atmInterface: ATMInterface
+ATMInterface
+lateinit var atmrssReader: ATMRSSReader
+ATMRSSReader
+@Scope("singleton") @Service class ATMRSSScheduler : RSSScheduler
+Classe per la schedulaziooe dei messaggi RSS di ATM
++ + | +
+ATMRSSScheduler()
+Classe per la schedulaziooe dei messaggi RSS di ATM + |
+
+ + | +
+lateinit var atmInterface: ATMInterface
+ATMInterface + |
+
+ + | +
+lateinit var atmrssReader: ATMRSSReader
+ATMRSSReader + |
+
+ + | +
+fun procedurePublish(rssMessage: RSSMessage): Unit
+Metodo per la preparazione alla pubblicazione dei messaggi RSS + |
+
+ + | +
+fun publishMessage(message: MessageEmbed, serversToChannel: ArrayList<ServerToChannel>): Unit
+Metodo per la pubblicazione dei messaggi + |
+
+ + | +
+fun taskFeedRSSATM(): Unit |
+
+ + | +
+const val ATM_RSS_LINK: String |
+
fun procedurePublish(rssMessage: RSSMessage): Unit
+Overrides RSSScheduler.procedurePublish
+Metodo per la preparazione alla pubblicazione dei messaggi RSS
+
+rssMessage
- RSSMessage messaggio RSS
fun publishMessage(message: MessageEmbed, serversToChannel: ArrayList<ServerToChannel>): Unit
+Overrides RSSScheduler.publishMessage
+Metodo per la pubblicazione dei messaggi
+
+message
- MessageEmbed Messaggio
+serversToChannel
- ArrayList Lista server e canali
@Scheduled(900000, 900000) fun taskFeedRSSATM(): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-twitter-scheduler/-a-t-m_-t-w-i-t-t-e-r_-i-d.html b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-twitter-scheduler/-a-t-m_-t-w-i-t-t-e-r_-i-d.html
new file mode 100644
index 0000000..859f0d2
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-twitter-scheduler/-a-t-m_-t-w-i-t-t-e-r_-i-d.html
@@ -0,0 +1,14 @@
+
+
+
+private const val ATM_TWITTER_ID: Long
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-twitter-scheduler/-init-.html b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-twitter-scheduler/-init-.html
new file mode 100644
index 0000000..ab4edc1
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-twitter-scheduler/-init-.html
@@ -0,0 +1,15 @@
+
+
+
+ATMTwitterScheduler()
+Classe per la schedulaziooe dei messaggi Twitter di ATM
+ + diff --git a/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-twitter-scheduler/-q-u-e-r-y_-p-a-r-a-m.html b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-twitter-scheduler/-q-u-e-r-y_-p-a-r-a-m.html new file mode 100644 index 0000000..539f2a9 --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-twitter-scheduler/-q-u-e-r-y_-p-a-r-a-m.html @@ -0,0 +1,14 @@ + + + +private const val QUERY_PARAM: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-twitter-scheduler/-t-w-i-t-t-e-r_-i-m-a-g-e.html b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-twitter-scheduler/-t-w-i-t-t-e-r_-i-m-a-g-e.html
new file mode 100644
index 0000000..a70aa9d
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-twitter-scheduler/-t-w-i-t-t-e-r_-i-m-a-g-e.html
@@ -0,0 +1,14 @@
+
+
+
+private const val TWITTER_IMAGE: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-twitter-scheduler/-t-w-i-t-t-e-r_-u-r-l.html b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-twitter-scheduler/-t-w-i-t-t-e-r_-u-r-l.html
new file mode 100644
index 0000000..9498d89
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-twitter-scheduler/-t-w-i-t-t-e-r_-u-r-l.html
@@ -0,0 +1,14 @@
+
+
+
+private const val TWITTER_URL: String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-twitter-scheduler/atm-interface.html b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-twitter-scheduler/atm-interface.html
new file mode 100644
index 0000000..762e3e9
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-twitter-scheduler/atm-interface.html
@@ -0,0 +1,18 @@
+
+
+
+lateinit var atmInterface: ATMInterface
+ATMInterface
+@Scope("singleton") @Service class ATMTwitterScheduler
+Classe per la schedulaziooe dei messaggi Twitter di ATM
++ + | +
+ATMTwitterScheduler()
+Classe per la schedulaziooe dei messaggi Twitter di ATM + |
+
+ + | +
+lateinit var atmInterface: ATMInterface
+ATMInterface + |
+
+ + | +
+lateinit var twitterManager: TwitterManager
+TwitterManager + |
+
+ + | +
+fun initATMTwitterScheduler(): Unit |
+
+ + | +
+fun publish(tweetID: Long, twitterMessage: String, mediaUrl: String?, profileImageUrl: String): Unit |
+
+ + | +
+const val ATM_TWITTER_ID: Long |
+
+ + | +
+const val QUERY_PARAM: String |
+
+ + | +
+const val TWITTER_IMAGE: String |
+
+ + | +
+const val TWITTER_URL: String |
+
@PostConstruct fun initATMTwitterScheduler(): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-twitter-scheduler/publish.html b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-twitter-scheduler/publish.html
new file mode 100644
index 0000000..4aa92da
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-twitter-scheduler/publish.html
@@ -0,0 +1,14 @@
+
+
+
+private fun publish(tweetID: Long, twitterMessage: String, mediaUrl: String?, profileImageUrl: String): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-twitter-scheduler/twitter-manager.html b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-twitter-scheduler/twitter-manager.html
new file mode 100644
index 0000000..78b2045
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.command.tpl.atm-alert/-a-t-m-twitter-scheduler/twitter-manager.html
@@ -0,0 +1,18 @@
+
+
+
+lateinit var twitterManager: TwitterManager
+TwitterManager
+
+twitterManager
- TwitterManager
+ + | +
+class ATMCommand : ListenerAdapter
+Per i comandi dell'ATM + |
+
+ + | +
+class ATMRSSReader : RSSReader
+Classe per leggere il feed RSS di atm + |
+
+ + | +
+class ATMRSSScheduler : RSSScheduler
+Classe per la schedulaziooe dei messaggi RSS di ATM + |
+
+ + | +
+class ATMTwitterScheduler
+Classe per la schedulaziooe dei messaggi Twitter di ATM + |
+
fun checkAdminPermission(event: MessageReceivedEvent): Boolean
+Metodo che controlla se l'utente ha i permessi di amministrare il server
+
+event
- MessageReceivedEvent evento del messaggio ricevuto
Return
+Boolean True, l'utente ha permessi amministrativi
fun checkCommand(@NotNull event: MessageReceivedEvent, @NotNull simbolCommand: String, @NotNull commandName: String): Boolean
+Metodo per controllare se il comando inserito dall'utente +è il comando controllato. +Viene controllato se il messaggio è con il simbolo di comando +o viene citato il bot.
+
+event
- MessageReceivedEvent evento del messaggio ricevuto
+simbolCommand
- String simbolo di comando del server
+commandName
- String nome del comando
Return
+Boolean il comando confrontato e quello voluto sono uguali
+ + | +
+fun checkAdminPermission(event: MessageReceivedEvent): Boolean
+Metodo che controlla se l'utente ha i permessi di amministrare il server + |
+
+ + | +
+fun checkCommand(event: MessageReceivedEvent, simbolCommand: String, commandName: String): Boolean
+Metodo per controllare se il comando inserito dall'utente +è il comando controllato. +Viene controllato se il messaggio è con il simbolo di comando +o viene citato il bot. + |
+
+ + | +
+fun rejectCommand(event: MessageReceivedEvent): Unit
+Metodo per inviare il messaggio prefatto che l'utente non ha i permessi necessari + |
+
fun rejectCommand(event: MessageReceivedEvent): Unit
+Metodo per inviare il messaggio prefatto che l'utente non ha i permessi necessari
+JDAController()
+Classe principale di avviamento del Bot Discord
+ + diff --git a/docs/page/kotlindoc/it.discordbot.core/-j-d-a-controller/atm-command.html b/docs/page/kotlindoc/it.discordbot.core/-j-d-a-controller/atm-command.html new file mode 100644 index 0000000..281afb6 --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.core/-j-d-a-controller/atm-command.html @@ -0,0 +1,18 @@ + + + +lateinit var atmCommand: ATMCommand
+ATMCommand
+lateinit var bdoCommand: BDOCommand
+BDOCommand
+lateinit var generalCommand: GeneralCommand
+GeneralCommand
+
+generalCommand
- GeneralCommand
@Scope("singleton") @Component class JDAController
+Classe principale di avviamento del Bot Discord
++ + | +
+JDAController()
+Classe principale di avviamento del Bot Discord + |
+
+ + | +
+lateinit var atmCommand: ATMCommand
+ATMCommand + |
+
+ + | +
+lateinit var bdoCommand: BDOCommand
+BDOCommand + |
+
+ + | +
+lateinit var generalCommand: GeneralCommand
+GeneralCommand + |
+
+ + | +
+lateinit var jdaToken: String
+String Chiave API per il bot Discord + |
+
+ + | +
+lateinit var joinListener: JoinListener
+JoinListener + |
+
+ + | +
+lateinit var musicCommand: MusicCommand
+MusicCommand + |
+
+ + | +
+lateinit var testCommand: TestCommand
+TestCommand + |
+
+ + | +
+fun init(): Unit |
+
+ + | +
+lateinit var jda: JDA |
+
@PostConstruct fun init(): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.core/-j-d-a-controller/jda-token.html b/docs/page/kotlindoc/it.discordbot.core/-j-d-a-controller/jda-token.html
new file mode 100644
index 0000000..68e113a
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.core/-j-d-a-controller/jda-token.html
@@ -0,0 +1,18 @@
+
+
+
+private lateinit var jdaToken: String
+String Chiave API per il bot Discord
+
+jdaToken
- String Chiave API per il bot Discord
lateinit var jda: JDA
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.core/-j-d-a-controller/join-listener.html b/docs/page/kotlindoc/it.discordbot.core/-j-d-a-controller/join-listener.html
new file mode 100644
index 0000000..8df0ce1
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.core/-j-d-a-controller/join-listener.html
@@ -0,0 +1,18 @@
+
+
+
+lateinit var joinListener: JoinListener
+JoinListener
+lateinit var musicCommand: MusicCommand
+MusicCommand
+lateinit var testCommand: TestCommand
+TestCommand
+TakaoLog()
+Logger Unico per il bot
+ + diff --git a/docs/page/kotlindoc/it.discordbot.core/-takao-log/index.html b/docs/page/kotlindoc/it.discordbot.core/-takao-log/index.html new file mode 100644 index 0000000..efe0fcf --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.core/-takao-log/index.html @@ -0,0 +1,66 @@ + + + +@Component class TakaoLog
+Logger Unico per il bot
++ + | +
+TakaoLog()
+Logger Unico per il bot + |
+
+ + | +
+var logger: Logger! |
+
+ + | +
+fun logDebug(message: String): Unit |
+
+ + | +
+fun logError(message: String): Unit |
+
+ + | +
+fun logInfo(message: String): Unit |
+
fun logDebug(message: String): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.core/-takao-log/log-error.html b/docs/page/kotlindoc/it.discordbot.core/-takao-log/log-error.html
new file mode 100644
index 0000000..0fb0c81
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.core/-takao-log/log-error.html
@@ -0,0 +1,14 @@
+
+
+
+fun logError(message: String): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.core/-takao-log/log-info.html b/docs/page/kotlindoc/it.discordbot.core/-takao-log/log-info.html
new file mode 100644
index 0000000..6e58dbe
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.core/-takao-log/log-info.html
@@ -0,0 +1,14 @@
+
+
+
+fun logInfo(message: String): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.core/-takao-log/logger.html b/docs/page/kotlindoc/it.discordbot.core/-takao-log/logger.html
new file mode 100644
index 0000000..fdb12ad
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.core/-takao-log/logger.html
@@ -0,0 +1,14 @@
+
+
+
+private var logger: Logger!
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.core/-twitter-manager/-init-.html b/docs/page/kotlindoc/it.discordbot.core/-twitter-manager/-init-.html
new file mode 100644
index 0000000..b1495fa
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.core/-twitter-manager/-init-.html
@@ -0,0 +1,15 @@
+
+
+
+TwitterManager()
+Classe che si occupa di collegarsi ai sistemi di twitter
+ + diff --git a/docs/page/kotlindoc/it.discordbot.core/-twitter-manager/get-twitter-stream.html b/docs/page/kotlindoc/it.discordbot.core/-twitter-manager/get-twitter-stream.html new file mode 100644 index 0000000..a1588d2 --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.core/-twitter-manager/get-twitter-stream.html @@ -0,0 +1,14 @@ + + + +fun getTwitterStream(): TwitterStream
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.core/-twitter-manager/index.html b/docs/page/kotlindoc/it.discordbot.core/-twitter-manager/index.html
new file mode 100644
index 0000000..1439954
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.core/-twitter-manager/index.html
@@ -0,0 +1,122 @@
+
+
+
+@Scope("singleton") @Component class TwitterManager
+Classe che si occupa di collegarsi ai sistemi di twitter
++ + | +
+TwitterManager()
+Classe che si occupa di collegarsi ai sistemi di twitter + |
+
+ + | +
+lateinit var twitterAccessToken: String
+String AccessToken + |
+
+ + | +
+lateinit var twitterAccessTokenSecret: String
+String AccessTokenSecret + |
+
+ + | +
+lateinit var twitterConsumerKey: String
+String ConsumerKey + |
+
+ + | +
+lateinit var twitterConsumerSecret: String
+String ConsumerSecret + |
+
+ + | +
+lateinit var twitterStream: TwitterStream
+TwitterStream + |
+
+ + | +
+lateinit var twitterStreamFactory: TwitterStreamFactory
+TwitterStreamFactory + |
+
+ + | +
+fun getTwitterStream(): TwitterStream |
+
+ + | +
+fun initTwitter(): Unit |
+
+ + | +
+fun setTwitterStreamFilter(filterQuery: FilterQuery): TwitterManager |
+
+ + | +
+fun setTwitterStreamListener(listener: StatusListener): TwitterManager
+Metodo per aggiungere un listener di Twitter + |
+
@PostConstruct fun initTwitter(): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.core/-twitter-manager/set-twitter-stream-filter.html b/docs/page/kotlindoc/it.discordbot.core/-twitter-manager/set-twitter-stream-filter.html
new file mode 100644
index 0000000..5963aca
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.core/-twitter-manager/set-twitter-stream-filter.html
@@ -0,0 +1,14 @@
+
+
+
+fun setTwitterStreamFilter(filterQuery: FilterQuery): TwitterManager
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.core/-twitter-manager/set-twitter-stream-listener.html b/docs/page/kotlindoc/it.discordbot.core/-twitter-manager/set-twitter-stream-listener.html
new file mode 100644
index 0000000..08bec44
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.core/-twitter-manager/set-twitter-stream-listener.html
@@ -0,0 +1,20 @@
+
+
+
+fun setTwitterStreamListener(listener: StatusListener): TwitterManager
+Metodo per aggiungere un listener di Twitter
+Return
+TwitterManager
lateinit var twitterAccessTokenSecret: String
+String AccessTokenSecret
+
+twitterAccessTokenSecret
- String AccessTokenSecret
lateinit var twitterAccessToken: String
+String AccessToken
+
+twitterAccessToken
- String AccessToken
lateinit var twitterConsumerKey: String
+String ConsumerKey
+
+twitterConsumerKey
- String ConsumerKey
lateinit var twitterConsumerSecret: String
+String ConsumerSecret
+
+twitterConsumerSecret
- String ConsumerSecret
private lateinit var twitterStreamFactory: TwitterStreamFactory
+TwitterStreamFactory
+
+twitterStreamFactory
- TwitterStreamFactory
private lateinit var twitterStream: TwitterStream
+TwitterStream
+
+twitterStream
- TwitterStream
+ + | +
+class JDAController
+Classe principale di avviamento del Bot Discord + |
+
+ + | +
+class TakaoLog
+Logger Unico per il bot + |
+
+ + | +
+class TwitterManager
+Classe che si occupa di collegarsi ai sistemi di twitter + |
+
ATMInterface()
+Classe di interfacciamento al db per le funzioni di ATM
+ + diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-a-t-m-interface/get-a-t-m-alert-channels.html b/docs/page/kotlindoc/it.discordbot.database.filter/-a-t-m-interface/get-a-t-m-alert-channels.html new file mode 100644 index 0000000..0910fc7 --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.database.filter/-a-t-m-interface/get-a-t-m-alert-channels.html @@ -0,0 +1,14 @@ + + + +fun getATMAlertChannels(): ArrayList<ServerToChannel>
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-a-t-m-interface/get-last-a-t-m-alert.html b/docs/page/kotlindoc/it.discordbot.database.filter/-a-t-m-interface/get-last-a-t-m-alert.html
new file mode 100644
index 0000000..5fb2971
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.filter/-a-t-m-interface/get-last-a-t-m-alert.html
@@ -0,0 +1,14 @@
+
+
+
+fun getLastATMAlert(): String?
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-a-t-m-interface/index.html b/docs/page/kotlindoc/it.discordbot.database.filter/-a-t-m-interface/index.html
new file mode 100644
index 0000000..cd93b19
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.filter/-a-t-m-interface/index.html
@@ -0,0 +1,91 @@
+
+
+
+@Scope("singleton") @Component class ATMInterface
+Classe di interfacciamento al db per le funzioni di ATM
++ + | +
+ATMInterface()
+Classe di interfacciamento al db per le funzioni di ATM + |
+
+ + | +
+lateinit var rssLinkRepository: RSSLinkRepository
+RSSLinkRepository + |
+
+ + | +
+lateinit var serverDiscordRepository: ServerDiscordRepository
+ServerDiscordRepository + |
+
+ + | +
+fun getATMAlertChannels(): ArrayList<ServerToChannel> |
+
+ + | +
+fun getLastATMAlert(): String? |
+
+ + | +
+fun removeATMAlertChannel(serverID: String): String? |
+
+ + | +
+fun setATMAlertChannel(serverID: String, channelID: String): Unit |
+
+ + | +
+fun setLastATMAlert(url: String): Unit |
+
fun removeATMAlertChannel(serverID: String): String?
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-a-t-m-interface/rss-link-repository.html b/docs/page/kotlindoc/it.discordbot.database.filter/-a-t-m-interface/rss-link-repository.html
new file mode 100644
index 0000000..aee55fc
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.filter/-a-t-m-interface/rss-link-repository.html
@@ -0,0 +1,18 @@
+
+
+
+lateinit var rssLinkRepository: RSSLinkRepository
+RSSLinkRepository
+
+rssLinkRepository
- RSSLinkRepository
lateinit var serverDiscordRepository: ServerDiscordRepository
+ServerDiscordRepository
+
+serverDiscordRepository
- ServerDiscordRepository
fun setATMAlertChannel(serverID: String, channelID: String): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-a-t-m-interface/set-last-a-t-m-alert.html b/docs/page/kotlindoc/it.discordbot.database.filter/-a-t-m-interface/set-last-a-t-m-alert.html
new file mode 100644
index 0000000..dd666ac
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.filter/-a-t-m-interface/set-last-a-t-m-alert.html
@@ -0,0 +1,14 @@
+
+
+
+fun setLastATMAlert(url: String): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-boss-interface/-init-.html b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-boss-interface/-init-.html
new file mode 100644
index 0000000..dfb40e9
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-boss-interface/-init-.html
@@ -0,0 +1,15 @@
+
+
+
+BDOBossInterface()
+Classe di interfacciamento al db per le funzioni di BDO Boss
+ + diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-boss-interface/get-b-d-o-boss-channels.html b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-boss-interface/get-b-d-o-boss-channels.html new file mode 100644 index 0000000..42aa287 --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-boss-interface/get-b-d-o-boss-channels.html @@ -0,0 +1,14 @@ + + + +fun getBDOBossChannels(): ArrayList<ServerToChannel>
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-boss-interface/get-b-d-o-boss-list.html b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-boss-interface/get-b-d-o-boss-list.html
new file mode 100644
index 0000000..7e1d9b3
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-boss-interface/get-b-d-o-boss-list.html
@@ -0,0 +1,14 @@
+
+
+
+fun getBDOBossList(): ArrayList<Giorno>
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-boss-interface/index.html b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-boss-interface/index.html
new file mode 100644
index 0000000..4a90319
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-boss-interface/index.html
@@ -0,0 +1,75 @@
+
+
+
+@Scope("singleton") @Controller class BDOBossInterface
+Classe di interfacciamento al db per le funzioni di BDO Boss
++ + | +
+BDOBossInterface()
+Classe di interfacciamento al db per le funzioni di BDO Boss + |
+
+ + | +
+lateinit var serverDiscordRepository: ServerDiscordRepository
+ServerDiscordRepository + |
+
+ + | +
+fun getBDOBossChannels(): ArrayList<ServerToChannel> |
+
+ + | +
+fun getBDOBossList(): ArrayList<Giorno> |
+
+ + | +
+fun removeBDOBossChannel(serverID: String): String? |
+
+ + | +
+fun setBDOBossChannel(serverID: String, channelID: String): Unit |
+
fun removeBDOBossChannel(serverID: String): String?
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-boss-interface/server-discord-repository.html b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-boss-interface/server-discord-repository.html
new file mode 100644
index 0000000..673db8a
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-boss-interface/server-discord-repository.html
@@ -0,0 +1,18 @@
+
+
+
+lateinit var serverDiscordRepository: ServerDiscordRepository
+ServerDiscordRepository
+
+serverDiscordRepository
- ServerDiscordRepository
fun setBDOBossChannel(serverID: String, channelID: String): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-news-interface/-init-.html b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-news-interface/-init-.html
new file mode 100644
index 0000000..62e8018
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-news-interface/-init-.html
@@ -0,0 +1,15 @@
+
+
+
+BDONewsInterface()
+Classe di interfacciamento al db per le funzioni di BDO News
+ + diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-news-interface/get-b-d-o-news-channels.html b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-news-interface/get-b-d-o-news-channels.html new file mode 100644 index 0000000..05c8a94 --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-news-interface/get-b-d-o-news-channels.html @@ -0,0 +1,14 @@ + + + +fun getBDONewsChannels(): ArrayList<ServerToChannel>
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-news-interface/get-last-b-d-o-news.html b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-news-interface/get-last-b-d-o-news.html
new file mode 100644
index 0000000..ea7b2f1
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-news-interface/get-last-b-d-o-news.html
@@ -0,0 +1,14 @@
+
+
+
+fun getLastBDONews(): String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-news-interface/index.html b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-news-interface/index.html
new file mode 100644
index 0000000..a82bb11
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-news-interface/index.html
@@ -0,0 +1,91 @@
+
+
+
+@Scope("singleton") @Component class BDONewsInterface
+Classe di interfacciamento al db per le funzioni di BDO News
++ + | +
+BDONewsInterface()
+Classe di interfacciamento al db per le funzioni di BDO News + |
+
+ + | +
+lateinit var rssLinkRepository: RSSLinkRepository
+RSSLinkRepository + |
+
+ + | +
+lateinit var serverDiscordRepository: ServerDiscordRepository
+ServerDiscordRepository + |
+
+ + | +
+fun getBDONewsChannels(): ArrayList<ServerToChannel> |
+
+ + | +
+fun getLastBDONews(): String |
+
+ + | +
+fun removeBDONewsChannel(serverID: String): String? |
+
+ + | +
+fun setBDONews(link: String): Unit |
+
+ + | +
+fun setBDONewsChannel(serverID: String, channelID: String): Unit |
+
fun removeBDONewsChannel(serverID: String): String?
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-news-interface/rss-link-repository.html b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-news-interface/rss-link-repository.html
new file mode 100644
index 0000000..ac353b6
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-news-interface/rss-link-repository.html
@@ -0,0 +1,18 @@
+
+
+
+lateinit var rssLinkRepository: RSSLinkRepository
+RSSLinkRepository
+
+rssLinkRepository
- RSSLinkRepository
lateinit var serverDiscordRepository: ServerDiscordRepository
+ServerDiscordRepository
+
+serverDiscordRepository
- ServerDiscordRepository
fun setBDONewsChannel(serverID: String, channelID: String): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-news-interface/set-b-d-o-news.html b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-news-interface/set-b-d-o-news.html
new file mode 100644
index 0000000..9fc7428
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-news-interface/set-b-d-o-news.html
@@ -0,0 +1,14 @@
+
+
+
+fun setBDONews(link: String): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-patch-interface/-init-.html b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-patch-interface/-init-.html
new file mode 100644
index 0000000..055ee1d
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-patch-interface/-init-.html
@@ -0,0 +1,15 @@
+
+
+
+BDOPatchInterface()
+Classe di interfacciamento al db per le funzioni di BDO Patch
+ + diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-patch-interface/get-b-d-o-patch-channels.html b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-patch-interface/get-b-d-o-patch-channels.html new file mode 100644 index 0000000..de1b21a --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-patch-interface/get-b-d-o-patch-channels.html @@ -0,0 +1,14 @@ + + + +fun getBDOPatchChannels(): ArrayList<ServerToChannel>
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-patch-interface/get-last-b-d-o-patch.html b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-patch-interface/get-last-b-d-o-patch.html
new file mode 100644
index 0000000..c8551cb
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-patch-interface/get-last-b-d-o-patch.html
@@ -0,0 +1,14 @@
+
+
+
+fun getLastBDOPatch(): String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-patch-interface/index.html b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-patch-interface/index.html
new file mode 100644
index 0000000..3140918
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-patch-interface/index.html
@@ -0,0 +1,91 @@
+
+
+
+@Scope("singleton") @Component class BDOPatchInterface
+Classe di interfacciamento al db per le funzioni di BDO Patch
++ + | +
+BDOPatchInterface()
+Classe di interfacciamento al db per le funzioni di BDO Patch + |
+
+ + | +
+lateinit var rssLinkRepository: RSSLinkRepository
+RSSLinkRepository + |
+
+ + | +
+lateinit var serverDiscordRepository: ServerDiscordRepository
+ServerDiscordRepository + |
+
+ + | +
+fun getBDOPatchChannels(): ArrayList<ServerToChannel> |
+
+ + | +
+fun getLastBDOPatch(): String |
+
+ + | +
+fun removeBDOPatchChannel(serverID: String): String? |
+
+ + | +
+fun setBDOPatchChannel(serverID: String, channelID: String): Unit |
+
+ + | +
+fun setLastPatch(linkPatch: String): Unit |
+
fun removeBDOPatchChannel(serverID: String): String?
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-patch-interface/rss-link-repository.html b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-patch-interface/rss-link-repository.html
new file mode 100644
index 0000000..5a0de15
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-patch-interface/rss-link-repository.html
@@ -0,0 +1,18 @@
+
+
+
+lateinit var rssLinkRepository: RSSLinkRepository
+RSSLinkRepository
+
+rssLinkRepository
- RSSLinkRepository
lateinit var serverDiscordRepository: ServerDiscordRepository
+ServerDiscordRepository
+
+serverDiscordRepository
- ServerDiscordRepository
fun setBDOPatchChannel(serverID: String, channelID: String): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-patch-interface/set-last-patch.html b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-patch-interface/set-last-patch.html
new file mode 100644
index 0000000..0aa2253
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.filter/-b-d-o-patch-interface/set-last-patch.html
@@ -0,0 +1,14 @@
+
+
+
+fun setLastPatch(linkPatch: String): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-server-management-interface/-init-.html b/docs/page/kotlindoc/it.discordbot.database.filter/-server-management-interface/-init-.html
new file mode 100644
index 0000000..808d09e
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.filter/-server-management-interface/-init-.html
@@ -0,0 +1,15 @@
+
+
+
+ServerManagementInterface()
+Classe di interfacciamento al db per le funzioni base del BOT
+ + diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-server-management-interface/delete-server.html b/docs/page/kotlindoc/it.discordbot.database.filter/-server-management-interface/delete-server.html new file mode 100644 index 0000000..6fdc6bb --- /dev/null +++ b/docs/page/kotlindoc/it.discordbot.database.filter/-server-management-interface/delete-server.html @@ -0,0 +1,14 @@ + + + +fun deleteServer(serverID: String): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-server-management-interface/get-simbol-command.html b/docs/page/kotlindoc/it.discordbot.database.filter/-server-management-interface/get-simbol-command.html
new file mode 100644
index 0000000..f076429
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.filter/-server-management-interface/get-simbol-command.html
@@ -0,0 +1,14 @@
+
+
+
+fun getSimbolCommand(serverID: String): String
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-server-management-interface/index.html b/docs/page/kotlindoc/it.discordbot.database.filter/-server-management-interface/index.html
new file mode 100644
index 0000000..94a2818
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.filter/-server-management-interface/index.html
@@ -0,0 +1,75 @@
+
+
+
+@Scope("singleton") @Component class ServerManagementInterface
+Classe di interfacciamento al db per le funzioni base del BOT
++ + | +
+ServerManagementInterface()
+Classe di interfacciamento al db per le funzioni base del BOT + |
+
+ + | +
+lateinit var serverDiscordRepository: ServerDiscordRepository
+ServerDiscordRepository + |
+
+ + | +
+fun deleteServer(serverID: String): Unit |
+
+ + | +
+fun getSimbolCommand(serverID: String): String |
+
+ + | +
+fun newServer(serverID: String, serverName: String): Unit |
+
+ + | +
+fun setSimbolCommand(serverID: String, simbolCommand: String): Unit |
+
fun newServer(serverID: String, serverName: String): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/-server-management-interface/server-discord-repository.html b/docs/page/kotlindoc/it.discordbot.database.filter/-server-management-interface/server-discord-repository.html
new file mode 100644
index 0000000..99e1fee
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.filter/-server-management-interface/server-discord-repository.html
@@ -0,0 +1,18 @@
+
+
+
+private lateinit var serverDiscordRepository: ServerDiscordRepository
+ServerDiscordRepository
+
+serverDiscordRepository
- ServerDiscordRepository
fun setSimbolCommand(serverID: String, simbolCommand: String): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.filter/index.html b/docs/page/kotlindoc/it.discordbot.database.filter/index.html
new file mode 100644
index 0000000..ff7efb3
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.filter/index.html
@@ -0,0 +1,62 @@
+
+
+
++ + | +
+class ATMInterface
+Classe di interfacciamento al db per le funzioni di ATM + |
+
+ + | +
+class BDOBossInterface
+Classe di interfacciamento al db per le funzioni di BDO Boss + |
+
+ + | +
+class BDONewsInterface
+Classe di interfacciamento al db per le funzioni di BDO News + |
+
+ + | +
+class BDOPatchInterface
+Classe di interfacciamento al db per le funzioni di BDO Patch + |
+
+ + | +
+class ServerManagementInterface
+Classe di interfacciamento al db per le funzioni base del BOT + |
+
abstract fun getFirstById(id: Long = 1): RSSLink
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.repository/-r-s-s-link-repository/index.html b/docs/page/kotlindoc/it.discordbot.database.repository/-r-s-s-link-repository/index.html
new file mode 100644
index 0000000..441e3c6
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.repository/-r-s-s-link-repository/index.html
@@ -0,0 +1,25 @@
+
+
+
+interface RSSLinkRepository : CrudRepository<RSSLink, Int>
++ + | +
+abstract fun getFirstById(id: Long = 1): RSSLink |
+
abstract fun findServerDiscordByServerId(serverID: String): ServerDiscord
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.repository/-server-discord-repository/get-all-a-t-m-alert-channels.html b/docs/page/kotlindoc/it.discordbot.database.repository/-server-discord-repository/get-all-a-t-m-alert-channels.html
new file mode 100644
index 0000000..e0139d0
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.repository/-server-discord-repository/get-all-a-t-m-alert-channels.html
@@ -0,0 +1,14 @@
+
+
+
+@Query("SELECT new it.discordbot.beans.ServerToChannel(serv.serverId, serv.atmAlertIDChannel) from ServerDiscord serv where serv.atmAlertIDChannel is not null") abstract fun getAllATMAlertChannels(): ArrayList<ServerToChannel>
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.repository/-server-discord-repository/get-all-b-d-o-boss-channels.html b/docs/page/kotlindoc/it.discordbot.database.repository/-server-discord-repository/get-all-b-d-o-boss-channels.html
new file mode 100644
index 0000000..ba89a1f
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.repository/-server-discord-repository/get-all-b-d-o-boss-channels.html
@@ -0,0 +1,14 @@
+
+
+
+@Query("SELECT new it.discordbot.beans.ServerToChannel(serv.serverId, serv.bdoBossIDChannel) from ServerDiscord serv where serv.bdoBossIDChannel is not null") abstract fun getAllBDOBossChannels(): ArrayList<ServerToChannel>
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.repository/-server-discord-repository/get-all-b-d-o-news-channels.html b/docs/page/kotlindoc/it.discordbot.database.repository/-server-discord-repository/get-all-b-d-o-news-channels.html
new file mode 100644
index 0000000..dc28743
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.repository/-server-discord-repository/get-all-b-d-o-news-channels.html
@@ -0,0 +1,14 @@
+
+
+
+@Query("SELECT new it.discordbot.beans.ServerToChannel(serv.serverId, serv.bdoNewsIDChannel) from ServerDiscord serv where serv.bdoNewsIDChannel is not null") abstract fun getAllBDONewsChannels(): ArrayList<ServerToChannel>
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.repository/-server-discord-repository/get-all-b-d-o-patch-channels.html b/docs/page/kotlindoc/it.discordbot.database.repository/-server-discord-repository/get-all-b-d-o-patch-channels.html
new file mode 100644
index 0000000..571e6d5
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.repository/-server-discord-repository/get-all-b-d-o-patch-channels.html
@@ -0,0 +1,14 @@
+
+
+
+@Query("SELECT new it.discordbot.beans.ServerToChannel(serv.serverId, serv.bdoPatchIDChannel) from ServerDiscord serv where serv.bdoPatchIDChannel is not null") abstract fun getAllBDOPatchChannels(): ArrayList<ServerToChannel>
+
+
diff --git a/docs/page/kotlindoc/it.discordbot.database.repository/-server-discord-repository/index.html b/docs/page/kotlindoc/it.discordbot.database.repository/-server-discord-repository/index.html
new file mode 100644
index 0000000..49283cc
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot.database.repository/-server-discord-repository/index.html
@@ -0,0 +1,53 @@
+
+
+
+@Repository interface ServerDiscordRepository : CrudRepository<ServerDiscord, String>
++ + | +
+abstract fun findServerDiscordByServerId(serverID: String): ServerDiscord |
+
+ + | +
+abstract fun getAllATMAlertChannels(): ArrayList<ServerToChannel> |
+
+ + | +
+abstract fun getAllBDOBossChannels(): ArrayList<ServerToChannel> |
+
+ + | +
+abstract fun getAllBDONewsChannels(): ArrayList<ServerToChannel> |
+
+ + | +
+abstract fun getAllBDOPatchChannels(): ArrayList<ServerToChannel> |
+
+ + | +
+interface RSSLinkRepository : CrudRepository<RSSLink, Int> |
+
+ + | +
+interface ServerDiscordRepository : CrudRepository<ServerDiscord, String> |
+
StartBot()
+
+
diff --git a/docs/page/kotlindoc/it.discordbot/-start-bot/index.html b/docs/page/kotlindoc/it.discordbot/-start-bot/index.html
new file mode 100644
index 0000000..11d1c0d
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot/-start-bot/index.html
@@ -0,0 +1,25 @@
+
+
+
+@SpringBootApplication @EnableScheduling class StartBot
++ + | +
+StartBot() |
+
TestCommand()
+
+
diff --git a/docs/page/kotlindoc/it.discordbot/-test-command/bdo-news-interface.html b/docs/page/kotlindoc/it.discordbot/-test-command/bdo-news-interface.html
new file mode 100644
index 0000000..92f1464
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot/-test-command/bdo-news-interface.html
@@ -0,0 +1,14 @@
+
+
+
+lateinit var bdoNewsInterface: <ERROR CLASS>
+
+
diff --git a/docs/page/kotlindoc/it.discordbot/-test-command/index.html b/docs/page/kotlindoc/it.discordbot/-test-command/index.html
new file mode 100644
index 0000000..77ea96f
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot/-test-command/index.html
@@ -0,0 +1,37 @@
+
+
+
+@Component class TestCommand : ListenerAdapter
++ + | +
+TestCommand() |
+
+ + | +
+fun onMessageReceived(event: MessageReceivedEvent?): Unit |
+
fun onMessageReceived(event: MessageReceivedEvent?): Unit
+
+
diff --git a/docs/page/kotlindoc/it.discordbot/index.html b/docs/page/kotlindoc/it.discordbot/index.html
new file mode 100644
index 0000000..355933a
--- /dev/null
+++ b/docs/page/kotlindoc/it.discordbot/index.html
@@ -0,0 +1,43 @@
+
+
+
++ + | +
+class StartBot |
+
+ + | +
+class TestCommand : ListenerAdapter |
+
+ + | +
+fun main(args: Array<String>): Unit |
+
fun main(args: Array<String>): Unit
+
+
diff --git a/docs/page/kotlindoc/package-list b/docs/page/kotlindoc/package-list
new file mode 100644
index 0000000..eaadbbb
--- /dev/null
+++ b/docs/page/kotlindoc/package-list
@@ -0,0 +1,18 @@
+$dokka.format:html
+$dokka.linkExtension:html
+
+it.discordbot
+it.discordbot.beans
+it.discordbot.beans.boss
+it.discordbot.command
+it.discordbot.command.BDO
+it.discordbot.command.BDO.RSS
+it.discordbot.command.BDO.boss
+it.discordbot.command.generalCommand
+it.discordbot.command.music
+it.discordbot.command.music.config
+it.discordbot.command.pattern
+it.discordbot.command.tpl.atmAlert
+it.discordbot.core
+it.discordbot.database.filter
+it.discordbot.database.repository
diff --git a/docs/page/kotlindoc/style.css b/docs/page/kotlindoc/style.css
new file mode 100644
index 0000000..914be69
--- /dev/null
+++ b/docs/page/kotlindoc/style.css
@@ -0,0 +1,283 @@
+@import url(https://fonts.googleapis.com/css?family=Open+Sans:300i,400,700);
+
+body, table {
+ padding:50px;
+ font:14px/1.5 'Open Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
+ color:#555;
+ font-weight:300;
+ margin-left: auto;
+ margin-right: auto;
+ max-width: 1440px;
+}
+
+.keyword {
+ color:black;
+ font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
+ font-size:12px;
+}
+
+.symbol {
+ font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
+ font-size:12px;
+}
+
+.identifier {
+ color: darkblue;
+ font-size:12px;
+ font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
+}
+
+h1, h2, h3, h4, h5, h6 {
+ color:#222;
+ margin:0 0 20px;
+}
+
+p, ul, ol, table, pre, dl {
+ margin:0 0 20px;
+}
+
+h1, h2, h3 {
+ line-height:1.1;
+}
+
+h1 {
+ font-size:28px;
+}
+
+h2 {
+ color:#393939;
+}
+
+h3, h4, h5, h6 {
+ color:#494949;
+}
+
+a {
+ color:#258aaf;
+ font-weight:400;
+ text-decoration:none;
+}
+
+a:hover {
+ color: inherit;
+ text-decoration:underline;
+}
+
+a small {
+ font-size:11px;
+ color:#555;
+ margin-top:-0.6em;
+ display:block;
+}
+
+.wrapper {
+ width:860px;
+ margin:0 auto;
+}
+
+blockquote {
+ border-left:1px solid #e5e5e5;
+ margin:0;
+ padding:0 0 0 20px;
+ font-style:italic;
+}
+
+code, pre {
+ font-family:Monaco, Bitstream Vera Sans Mono, Lucida Console, Terminal;
+ color:#333;
+ font-size:12px;
+}
+
+pre {
+ display: block;
+/*
+ padding:8px 8px;
+ background: #f8f8f8;
+ border-radius:5px;
+ border:1px solid #e5e5e5;
+*/
+ overflow-x: auto;
+}
+
+table {
+ width:100%;
+ border-collapse:collapse;
+}
+
+th, td {
+ text-align:left;
+ vertical-align: top;
+ padding:5px 10px;
+}
+
+dt {
+ color:#444;
+ font-weight:700;
+}
+
+th {
+ color:#444;
+}
+
+img {
+ max-width:100%;
+}
+
+header {
+ width:270px;
+ float:left;
+ position:fixed;
+}
+
+header ul {
+ list-style:none;
+ height:40px;
+
+ padding:0;
+
+ background: #eee;
+ background: -moz-linear-gradient(top, #f8f8f8 0%, #dddddd 100%);
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f8f8f8), color-stop(100%,#dddddd));
+ background: -webkit-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
+ background: -o-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
+ background: -ms-linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
+ background: linear-gradient(top, #f8f8f8 0%,#dddddd 100%);
+
+ border-radius:5px;
+ border:1px solid #d2d2d2;
+ box-shadow:inset #fff 0 1px 0, inset rgba(0,0,0,0.03) 0 -1px 0;
+ width:270px;
+}
+
+header li {
+ width:89px;
+ float:left;
+ border-right:1px solid #d2d2d2;
+ height:40px;
+}
+
+header ul a {
+ line-height:1;
+ font-size:11px;
+ color:#999;
+ display:block;
+ text-align:center;
+ padding-top:6px;
+ height:40px;
+}
+
+strong {
+ color:#222;
+ font-weight:700;
+}
+
+header ul li + li {
+ width:88px;
+ border-left:1px solid #fff;
+}
+
+header ul li + li + li {
+ border-right:none;
+ width:89px;
+}
+
+header ul a strong {
+ font-size:14px;
+ display:block;
+ color:#222;
+}
+
+section {
+ width:500px;
+ float:right;
+ padding-bottom:50px;
+}
+
+small {
+ font-size:11px;
+}
+
+hr {
+ border:0;
+ background:#e5e5e5;
+ height:1px;
+ margin:0 0 20px;
+}
+
+footer {
+ width:270px;
+ float:left;
+ position:fixed;
+ bottom:50px;
+}
+
+@media print, screen and (max-width: 960px) {
+
+ div.wrapper {
+ width:auto;
+ margin:0;
+ }
+
+ header, section, footer {
+ float:none;
+ position:static;
+ width:auto;
+ }
+
+ header {
+ padding-right:320px;
+ }
+
+ section {
+ border:1px solid #e5e5e5;
+ border-width:1px 0;
+ padding:20px 0;
+ margin:0 0 20px;
+ }
+
+ header a small {
+ display:inline;
+ }
+
+ header ul {
+ position:absolute;
+ right:50px;
+ top:52px;
+ }
+}
+
+@media print, screen and (max-width: 720px) {
+ body {
+ word-wrap:break-word;
+ }
+
+ header {
+ padding:0;
+ }
+
+ header ul, header p.view {
+ position:static;
+ }
+
+ pre, code {
+ word-wrap:normal;
+ }
+}
+
+@media print, screen and (max-width: 480px) {
+ body {
+ padding:15px;
+ }
+
+ header ul {
+ display:none;
+ }
+}
+
+@media print {
+ body {
+ padding:0.4in;
+ font-size:12pt;
+ color:#444;
+ }
+}
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 74aea4b..290541c 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,5 @@
-#Sun Jan 13 11:13:41 CET 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-all.zip
diff --git a/settings.gradle b/settings.gradle
index bf400d9..a5ff7be 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -1,2 +1,6 @@
-rootProject.name = 'discordbotTakao'
-
+pluginManagement {
+ repositories {
+ gradlePluginPortal()
+ }
+}
+rootProject.name = 'TakaoBot'
diff --git a/src/main/META-INF/MANIFEST.MF b/src/main/META-INF/MANIFEST.MF
index 93d0a2d..42677c6 100644
--- a/src/main/META-INF/MANIFEST.MF
+++ b/src/main/META-INF/MANIFEST.MF
@@ -1,3 +1,3 @@
Manifest-Version: 1.0
-Main-Class: starter.Start
+Main-Class: it.discordbot.StartBotKt
diff --git a/src/main/java/beans/BDOBossBean/Boss.java b/src/main/java/beans/BDOBossBean/Boss.java
deleted file mode 100644
index 90c6d15..0000000
--- a/src/main/java/beans/BDOBossBean/Boss.java
+++ /dev/null
@@ -1,67 +0,0 @@
-package beans.BDOBossBean;
-
-import java.util.ArrayList;
-
-/**
- * Rappresentazione dei boss
- */
-public class Boss {
- /**
- * Lista boss dell'ora
- */
- private String[] nomeBoss;
-
- /**
- * Ora di spawn
- */
- private String ora;
-
- public Boss(String[] nomeBoss, String ora) {
- setNomeBoss(nomeBoss);
- setOra(ora);
- }
-
- /**
- * Metodo per ottenere i boss dell'ora
- *
- * @param ora Ora di spawn del boss
- * @param minuto Minuto di spawn del boss
- * @param lists Lista dei boss del giorno
- * @return Lista dei boss dell'ora indicata
- */
- public static String[] getHourBoss(int ora, int minuto, ArrayListtrue
if any hint parameters have a value.
- */
- public boolean present() {
- return mimeType != null || fileExtension != null;
- }
-
- /**
- * @param mimeType Mime type
- * @param fileExtension File extension
- * @return Instance of hints object with the specified parameters
- */
- public static MediaContainerHints from(String mimeType, String fileExtension) {
- if (mimeType == null && fileExtension == null) {
- return NO_INFORMATION;
- } else {
- return new MediaContainerHints(mimeType, fileExtension);
- }
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/container/MediaContainerProbe.java b/src/main/java/com/sedmelluq/discord/lavaplayer/container/MediaContainerProbe.java
deleted file mode 100644
index 71fb095..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/container/MediaContainerProbe.java
+++ /dev/null
@@ -1,48 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.container;
-
-import com.sedmelluq.discord.lavaplayer.tools.io.SeekableInputStream;
-import com.sedmelluq.discord.lavaplayer.track.AudioReference;
-import com.sedmelluq.discord.lavaplayer.track.AudioTrack;
-import com.sedmelluq.discord.lavaplayer.track.AudioTrackInfo;
-
-import java.io.IOException;
-
-/**
- * Track information probe for one media container type and factory for tracks for that container.
- */
-public interface MediaContainerProbe {
- /**
- * @return The name of this container
- */
- String getName();
-
- /**
- * @param hints The available hints about the possible container.
- * @return True if the hints match the format this probe detects. Should always return false if all hints are null.
- */
- boolean matchesHints(MediaContainerHints hints);
-
- /**
- * Detect whether the file readable from the input stream is using this container and if this specific file uses
- * a format and codec that is supported for playback.
- *
- * @param reference Reference with an identifier to use in the returned audio track info
- * @param inputStream Input stream that contains the track file
- * @return Returns result with audio track on supported format, result with unsupported reason set if this is the
- * container that the file uses, but this specific file uses a format or codec that is not supported. Returns
- * null in case this file does not appear to be using this container format.
- * @throws IOException On read error.
- */
- MediaContainerDetectionResult probe(AudioReference reference, SeekableInputStream inputStream) throws IOException;
-
- /**
- * Creates a new track for this container. The audio tracks created here are never used directly, but the playback is
- * delegated to them. As such, they do not have to support cloning or have a source manager.
- *
- * @param parameters Parameters specific to the probe.
- * @param trackInfo Track meta information
- * @param inputStream Input stream of the track file
- * @return A new audio track
- */
- AudioTrack createTrack(String parameters, AudioTrackInfo trackInfo, SeekableInputStream inputStream);
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/container/MediaContainerRegistry.java b/src/main/java/com/sedmelluq/discord/lavaplayer/container/MediaContainerRegistry.java
deleted file mode 100644
index c579030..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/container/MediaContainerRegistry.java
+++ /dev/null
@@ -1,27 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.container;
-
-import java.util.List;
-
-public class MediaContainerRegistry {
- public static final MediaContainerRegistry DEFAULT_REGISTRY = new MediaContainerRegistry(MediaContainer.asList());
-
- private final List- * - For placeholder points, the second and third field values are undefined. - * - Seek points within a table must be sorted in ascending order by sample number. - * - Seek points within a table must be unique by sample number, with the exception of placeholder points. - * - The previous two notes imply that there may be any number of placeholder points, but they must all occur at the end - * of the table. - */ -public class FlacSeekPoint { - public static final int LENGTH = 18; - - /** - * Sample number of first sample in the target frame, or 0xFFFFFFFFFFFFFFFF for a placeholder point. - */ - public final long sampleIndex; - - /** - * Offset (in bytes) from the first byte of the first frame header to the first byte of the target frame's header. - */ - public final long byteOffset; - - /** - * Number of samples in the target frame. - */ - public final int sampleCount; - - /** - * @param sampleIndex Index of the first sample in the frame - * @param byteOffset Offset in bytes from first frame start to target frame start - * @param sampleCount Number of samples in the frame - */ - public FlacSeekPoint(long sampleIndex, long byteOffset, int sampleCount) { - this.sampleIndex = sampleIndex; - this.byteOffset = byteOffset; - this.sampleCount = sampleCount; - } -} diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/container/flac/FlacStreamInfo.java b/src/main/java/com/sedmelluq/discord/lavaplayer/container/flac/FlacStreamInfo.java deleted file mode 100644 index 9c1bc77..0000000 --- a/src/main/java/com/sedmelluq/discord/lavaplayer/container/flac/FlacStreamInfo.java +++ /dev/null @@ -1,83 +0,0 @@ -package com.sedmelluq.discord.lavaplayer.container.flac; - -import com.sedmelluq.discord.lavaplayer.tools.io.BitBufferReader; - -import java.nio.ByteBuffer; - -/** - * FLAC stream info metadata block contents. Field descriptions are from: - * https://xiph.org/flac/format.html#metadata_block_streaminfo - *
- * FLAC specifies a minimum block size of 16 and a maximum block size of 65535, meaning the bit patterns corresponding
- * to the numbers 0-15 in the minimum blocksize and maximum blocksize fields are invalid.
- */
-public class FlacStreamInfo {
- public static final int LENGTH = 34;
-
- /**
- * The minimum block size (in samples) used in the stream.
- */
- public final int minimumBlockSize;
- /**
- * The maximum block size (in samples) used in the stream. (Minimum blocksize == maximum blocksize) implies a
- * fixed-blocksize stream.
- */
- public final int maximumBlockSize;
- /**
- * The minimum frame size (in bytes) used in the stream. May be 0 to imply the value is not known.
- */
- public final int minimumFrameSize;
- /**
- * The maximum frame size (in bytes) used in the stream. May be 0 to imply the value is not known.
- */
- public final int maximumFrameSize;
- /**
- * Sample rate in Hz. Though 20 bits are available, the maximum sample rate is limited by the structure of frame
- * headers to 655350Hz. Also, a value of 0 is invalid.
- */
- public final int sampleRate;
- /**
- * FLAC supports from 1 to 8 channels
- */
- public final int channelCount;
- /**
- * FLAC supports from 4 to 32 bits per sample. Currently the reference encoder and decoders only support up to 24 bits
- * per sample.
- */
- public final int bitsPerSample;
- /**
- * Total samples in stream. 'Samples' means inter-channel sample, i.e. one second of 44.1Khz audio will have 44100
- * samples regardless of the number of channels. A value of zero here means the number of total samples is unknown.
- */
- public final long sampleCount;
- /**
- * MD5 signature of the unencoded audio data. This allows the decoder to determine if an error exists in the audio
- * data even when the error does not result in an invalid bitstream.
- */
- public final byte[] md5Signature;
- /**
- * Whether the file has any metadata blocks after the stream info.
- */
- public final boolean hasMetadataBlocks;
-
- /**
- * @param blockData The raw block data.
- * @param hasMetadataBlocks Whether the file has any metadata blocks after the stream info.
- */
- public FlacStreamInfo(byte[] blockData, boolean hasMetadataBlocks) {
- BitBufferReader bitReader = new BitBufferReader(ByteBuffer.wrap(blockData));
- minimumBlockSize = bitReader.asInteger(16);
- maximumBlockSize = bitReader.asInteger(16);
- minimumFrameSize = bitReader.asInteger(24);
- maximumFrameSize = bitReader.asInteger(24);
- sampleRate = bitReader.asInteger(20);
- channelCount = bitReader.asInteger(3) + 1;
- bitsPerSample = bitReader.asInteger(5) + 1;
- sampleCount = bitReader.asLong(36);
-
- md5Signature = new byte[16];
- System.arraycopy(blockData, 18, md5Signature, 0, 16);
-
- this.hasMetadataBlocks = hasMetadataBlocks;
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/container/flac/FlacTrackInfo.java b/src/main/java/com/sedmelluq/discord/lavaplayer/container/flac/FlacTrackInfo.java
deleted file mode 100644
index 734a612..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/container/flac/FlacTrackInfo.java
+++ /dev/null
@@ -1,52 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.container.flac;
-
-import java.util.Map;
-
-/**
- * All relevant information about a FLAC track from its metadata.
- */
-public class FlacTrackInfo {
- /**
- * FLAC stream information.
- */
- public final FlacStreamInfo stream;
- /**
- * An array of seek points.
- */
- public final FlacSeekPoint[] seekPoints;
- /**
- * The actual number of seek points that are not placeholders. The end of the array may contain empty seek points,
- * which is why this value should be used to determine how far into the array to look.
- */
- public final int seekPointCount;
- /**
- * The map of tag values from comment metadata block.
- */
- public final Map
- * For example if the input is three channels, and output is two channels, then:
- * in [0, 1, 2, 0, 1, 2, 0, 1] out [0, 1, 0, 1] saved [0, 1]
- * in [2, 0, 1, 2] out [0, 1, 0, 1] saved []
- */
-public class ChannelCountPcmAudioFilter implements UniversalPcmAudioFilter {
- private final UniversalPcmAudioFilter downstream;
- private final int outputChannels;
- private final ShortBuffer outputBuffer;
- private final int inputChannels;
- private final int commonChannels;
- private final int channelsToAdd;
- private final short[] inputSet;
- private final float[][] splitFloatOutput;
- private final short[][] splitShortOutput;
- private int inputIndex;
-
- /**
- * @param inputChannels Number of input channels
- * @param outputChannels Number of output channels
- * @param downstream The next filter in line
- */
- public ChannelCountPcmAudioFilter(int inputChannels, int outputChannels, UniversalPcmAudioFilter downstream) {
- this.downstream = downstream;
- this.inputChannels = inputChannels;
- this.outputChannels = outputChannels;
- this.outputBuffer = ShortBuffer.allocate(2048 * inputChannels);
- this.commonChannels = Math.min(outputChannels, inputChannels);
- this.channelsToAdd = outputChannels - commonChannels;
- this.inputSet = new short[inputChannels];
- this.splitFloatOutput = new float[outputChannels][];
- this.splitShortOutput = new short[outputChannels][];
- this.inputIndex = 0;
- }
-
- @Override
- public void process(short[] input, int offset, int length) throws InterruptedException {
- if (canPassThrough(length)) {
- downstream.process(input, offset, length);
- } else {
- if (inputChannels == 1 && outputChannels == 2) {
- processMonoToStereo(ShortBuffer.wrap(input, offset, length));
- } else {
- processNormalizer(ShortBuffer.wrap(input, offset, length));
- }
- }
- }
-
- @Override
- public void process(ShortBuffer buffer) throws InterruptedException {
- if (canPassThrough(buffer.remaining())) {
- downstream.process(buffer);
- } else {
- if (inputChannels == 1 && outputChannels == 2) {
- processMonoToStereo(buffer);
- } else {
- processNormalizer(buffer);
- }
- }
- }
-
- private void processNormalizer(ShortBuffer buffer) throws InterruptedException {
- while (buffer.hasRemaining()) {
- inputSet[inputIndex++] = buffer.get();
-
- if (inputIndex == inputChannels) {
- outputBuffer.put(inputSet, 0, commonChannels);
-
- for (int i = 0; i < channelsToAdd; i++) {
- outputBuffer.put(inputSet[0]);
- }
-
- if (!outputBuffer.hasRemaining()) {
- outputBuffer.flip();
- downstream.process(outputBuffer);
- outputBuffer.clear();
- }
-
- inputIndex = 0;
- }
- }
- }
-
- private void processMonoToStereo(ShortBuffer buffer) throws InterruptedException {
- while (buffer.hasRemaining()) {
- short sample = buffer.get();
- outputBuffer.put(sample);
- outputBuffer.put(sample);
-
- if (!outputBuffer.hasRemaining()) {
- outputBuffer.flip();
- downstream.process(outputBuffer);
- outputBuffer.clear();
- }
- }
- }
-
- private boolean canPassThrough(int length) {
- return inputIndex == 0 && inputChannels == outputChannels && (length % inputChannels) == 0;
- }
-
- @Override
- public void process(float[][] input, int offset, int length) throws InterruptedException {
- for (int i = 0; i < commonChannels; i++) {
- splitFloatOutput[i] = input[i];
- }
-
- for (int i = commonChannels; i < outputChannels; i++) {
- splitFloatOutput[i] = input[0];
- }
-
- downstream.process(splitFloatOutput, offset, length);
- }
-
- @Override
- public void process(short[][] input, int offset, int length) throws InterruptedException {
- for (int i = 0; i < commonChannels; i++) {
- splitShortOutput[i] = input[i];
- }
-
- for (int i = commonChannels; i < outputChannels; i++) {
- splitShortOutput[i] = input[0];
- }
-
- downstream.process(splitShortOutput, offset, length);
- }
-
- @Override
- public void seekPerformed(long requestedTime, long providedTime) {
- outputBuffer.clear();
- }
-
- @Override
- public void flush() throws InterruptedException {
- // Nothing to do.
- }
-
- @Override
- public void close() {
- // Nothing to do.
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/filter/CompositeAudioFilter.java b/src/main/java/com/sedmelluq/discord/lavaplayer/filter/CompositeAudioFilter.java
deleted file mode 100644
index 97ba984..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/filter/CompositeAudioFilter.java
+++ /dev/null
@@ -1,48 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.filter;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import java.util.List;
-
-/**
- * An audio filter which may consist of a number of other filters.
- */
-public abstract class CompositeAudioFilter implements UniversalPcmAudioFilter {
- private static final Logger log = LoggerFactory.getLogger(CompositeAudioFilter.class);
-
- @Override
- public void seekPerformed(long requestedTime, long providedTime) {
- for (AudioFilter filter : getFilters()) {
- try {
- filter.seekPerformed(requestedTime, providedTime);
- } catch (Exception e) {
- log.error("Notifying filter {} of seek failed with exception.", filter.getClass(), e);
- }
- }
- }
-
- @Override
- public void flush() throws InterruptedException {
- for (AudioFilter filter : getFilters()) {
- try {
- filter.flush();
- } catch (Exception e) {
- log.error("Flushing filter {} failed with exception.", filter.getClass(), e);
- }
- }
- }
-
- @Override
- public void close() {
- for (AudioFilter filter : getFilters()) {
- try {
- filter.close();
- } catch (Exception e) {
- log.error("Closing filter {} failed with exception.", filter.getClass(), e);
- }
- }
- }
-
- protected abstract List
- * Every thread created by the audio manager is a daemon thread, so calling this is not required for an application
- * to be able to gracefully shut down, however it should be called if the application continues without requiring this
- * manager any longer.
- */
- void shutdown();
-
- /**
- * Configure to use remote nodes for playback. On consecutive calls, the connections with previously used nodes will
- * be severed and all remotely playing tracks will be stopped first.
- *
- * @param nodeAddresses The addresses of the remote nodes
- */
- void useRemoteNodes(String... nodeAddresses);
-
- /**
- * Enable reporting GC pause length statistics to log (warn level with lengths bad for latency, debug level otherwise)
- */
- void enableGcMonitoring();
-
- /**
- * @param sourceManager The source manager to register, which will be used for subsequent loadItem calls
- */
- void registerSourceManager(AudioSourceManager sourceManager);
-
- /**
- * Shortcut for accessing a source manager of a certain class.
- *
- * @param klass The class of the source manager to return.
- * @param null
otherwise.
- * @throws IOException On read error.
- */
- public MatroskaBlock readBlockHeader(MatroskaElement parent, int trackFilter) throws IOException {
- if (!mutableBlock.parseHeader(this, parent, trackFilter)) {
- return null;
- }
-
- return mutableBlock;
- }
-
- /**
- * @param element Element to read from
- * @return The contents of the element as an integer
- * @throws IOException On read error
- */
- public int asInteger(MatroskaElement element) throws IOException {
- if (element.is(MatroskaElementType.DataType.UNSIGNED_INTEGER)) {
- long value = MatroskaEbmlReader.readFixedSizeEbmlInteger(dataInput, element.dataSize, null);
-
- if (value < 0 || value > Integer.MAX_VALUE) {
- throw new ArithmeticException("Cannot convert unsigned value to integer.");
- } else {
- return (int) value;
- }
- } else if (element.is(MatroskaElementType.DataType.SIGNED_INTEGER)) {
- return Math.toIntExact(MatroskaEbmlReader.readFixedSizeEbmlInteger(dataInput, element.dataSize, MatroskaEbmlReader.Type.SIGNED));
- } else {
- throw new IllegalArgumentException("Not an integer element.");
- }
- }
-
- /**
- * @param element Element to read from
- * @return The contents of the element as a long
- * @throws IOException On read error
- */
- public long asLong(MatroskaElement element) throws IOException {
- if (element.is(MatroskaElementType.DataType.UNSIGNED_INTEGER)) {
- return MatroskaEbmlReader.readFixedSizeEbmlInteger(dataInput, element.dataSize, null);
- } else if (element.is(MatroskaElementType.DataType.SIGNED_INTEGER)) {
- return MatroskaEbmlReader.readFixedSizeEbmlInteger(dataInput, element.dataSize, MatroskaEbmlReader.Type.SIGNED);
- } else {
- throw new IllegalArgumentException("Not an integer element.");
- }
- }
-
- /**
- * @param element Element to read from
- * @return The contents of the element as a float
- * @throws IOException On read error
- */
- public float asFloat(MatroskaElement element) throws IOException {
- if (element.is(MatroskaElementType.DataType.FLOAT)) {
- if (element.dataSize == 4) {
- return dataInput.readFloat();
- } else if (element.dataSize == 8) {
- return (float) dataInput.readDouble();
- } else {
- throw new IllegalStateException("Float element has invalid size.");
- }
- } else {
- throw new IllegalArgumentException("Not a float element.");
- }
- }
-
- /**
- * @param element Element to read from
- * @return The contents of the element as a double
- * @throws IOException On read error
- */
- public double asDouble(MatroskaElement element) throws IOException {
- if (element.is(MatroskaElementType.DataType.FLOAT)) {
- if (element.dataSize == 4) {
- return dataInput.readFloat();
- } else if (element.dataSize == 8) {
- return dataInput.readDouble();
- } else {
- throw new IllegalStateException("Float element has invalid size.");
- }
- } else {
- throw new IllegalArgumentException("Not a float element.");
- }
- }
-
- /**
- * @param element Element to read from
- * @return The contents of the element as a string
- * @throws IOException On read error
- */
- public String asString(MatroskaElement element) throws IOException {
- if (element.is(MatroskaElementType.DataType.STRING)) {
- return new String(asBytes(element), StandardCharsets.US_ASCII);
- } else if (element.is(MatroskaElementType.DataType.UTF8_STRING)) {
- return new String(asBytes(element), StandardCharsets.UTF_8);
- } else {
- throw new IllegalArgumentException("Not a string element.");
- }
- }
-
- /**
- * @param element Element to read from
- * @return The contents of the element as a byte array
- * @throws IOException On read error
- */
- public byte[] asBytes(MatroskaElement element) throws IOException {
- byte[] bytes = new byte[element.dataSize];
- dataInput.readFully(bytes);
- return bytes;
- }
-
- /**
- * @param element Element to skip over
- * @throws IOException On read error
- */
- public void skip(MatroskaElement element) throws IOException {
- long remaining = element.getRemaining(inputStream.getPosition());
-
- if (remaining > 0) {
- inputStream.skipFully(remaining);
- } else if (remaining < 0) {
- throw new IllegalStateException("Current position is beyond this element");
- }
- }
-
- /**
- * @return Returns the current absolute position of the file.
- */
- public long getPosition() {
- return inputStream.getPosition();
- }
-
- /**
- * Seeks to the specified position.
- *
- * @param position The position in bytes.
- * @throws IOException On read error
- */
- public void seek(long position) throws IOException {
- inputStream.seek(position);
- }
-
- public DataInput getDataInput() {
- return dataInput;
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/container/matroska/format/MatroskaFileTrack.java b/src/main/java/com/sedmelluq/discord/lavaplayer/container/matroska/format/MatroskaFileTrack.java
deleted file mode 100644
index d74c0bd..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/container/matroska/format/MatroskaFileTrack.java
+++ /dev/null
@@ -1,207 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.container.matroska.format;
-
-import java.io.IOException;
-
-/**
- * Describes one track in a matroska file.
- */
-public class MatroskaFileTrack {
- /**
- * Track index/number.
- */
- public final int index;
- /**
- * Type of the track.
- */
- public final Type type;
- /**
- * The unique track UID.
- */
- public final long trackUid;
- /**
- * Name of the track.
- */
- public final String name;
- /**
- * ID of the codec.
- */
- public final String codecId;
- /**
- * Custom data for the codec (header).
- */
- public final byte[] codecPrivate;
- /**
- * Information specific to audio tracks (null for non-audio tracks).
- */
- public final AudioDetails audio;
-
- /**
- * @param index Track index/number.
- * @param type Type of the track.
- * @param trackUid The unique track UID.
- * @param name Name of the track.
- * @param codecId ID of the codec.
- * @param codecPrivate Custom data for the codec (header).
- * @param audio Information specific to audio tracks (null for non-audio tracks).
- */
- public MatroskaFileTrack(int index, Type type, long trackUid, String name, String codecId, byte[] codecPrivate, AudioDetails audio) {
- this.index = index;
- this.type = type;
- this.trackUid = trackUid;
- this.name = name;
- this.codecId = codecId;
- this.codecPrivate = codecPrivate;
- this.audio = audio;
- }
-
- /**
- * Track type list.
- */
- public enum Type {
- VIDEO(1),
- AUDIO(2),
- COMPLEX(3),
- LOGO(0x10),
- SUBTITLE(0x11),
- BUTTONS(0x12),
- CONTROL(0x20);
-
- /**
- * ID which is used in the track type field in the file.
- */
- public final long id;
-
- Type(long id) {
- this.id = id;
- }
-
- /**
- * @param id ID to look up.
- * @return Track type for that ID, null if not found.
- */
- public static Type fromId(long id) {
- for (Type entry : Type.class.getEnumConstants()) {
- if (entry.id == id) {
- return entry;
- }
- }
-
- return null;
- }
- }
-
- /**
- * Fields specific to an audio track.
- */
- public static class AudioDetails {
- /**
- * Sampling frequency in Hz.
- */
- public final float samplingFrequency;
- /**
- * Real output sampling frequency in Hz.
- */
- public final float outputSamplingFrequency;
- /**
- * Number of channels in the track.
- */
- public final int channels;
- /**
- * Number of bits per sample.
- */
- public final int bitDepth;
-
- /**
- * @param samplingFrequency Sampling frequency in Hz.
- * @param outputSamplingFrequency Real output sampling frequency in Hz.
- * @param channels Number of channels in the track.
- * @param bitDepth Number of bits per sample.
- */
- public AudioDetails(float samplingFrequency, float outputSamplingFrequency, int channels, int bitDepth) {
- this.samplingFrequency = samplingFrequency;
- this.outputSamplingFrequency = outputSamplingFrequency;
- this.channels = channels;
- this.bitDepth = bitDepth;
- }
- }
-
- /**
- * @param trackElement The track element
- * @param reader Matroska file reader
- * @return The parsed track
- * @throws IOException On read error
- */
- public static MatroskaFileTrack parse(MatroskaElement trackElement, MatroskaFileReader reader) throws IOException {
- Builder builder = new Builder();
- MatroskaElement child;
-
- while ((child = reader.readNextElement(trackElement)) != null) {
- if (child.is(MatroskaElementType.TrackNumber)) {
- builder.index = reader.asInteger(child);
- } else if (child.is(MatroskaElementType.TrackUid)) {
- builder.trackUid = reader.asLong(child);
- } else if (child.is(MatroskaElementType.TrackType)) {
- builder.type = Type.fromId(reader.asInteger(child));
- } else if (child.is(MatroskaElementType.Name)) {
- builder.name = reader.asString(child);
- } else if (child.is(MatroskaElementType.CodecId)) {
- builder.codecId = reader.asString(child);
- } else if (child.is(MatroskaElementType.CodecPrivate)) {
- builder.codecPrivate = reader.asBytes(child);
- } else if (child.is(MatroskaElementType.Audio)) {
- builder.audio = parseAudioElement(child, reader);
- }
-
- // Unused fields: DefaultDuration, Language, Video, etc
- reader.skip(child);
- }
-
- return builder.build();
- }
-
- private static AudioDetails parseAudioElement(MatroskaElement audioElement, MatroskaFileReader reader) throws IOException {
- AudioBuilder builder = new AudioBuilder();
- MatroskaElement child;
-
- while ((child = reader.readNextElement(audioElement)) != null) {
- if (child.is(MatroskaElementType.SamplingFrequency)) {
- builder.samplingFrequency = reader.asFloat(child);
- } else if (child.is(MatroskaElementType.OutputSamplingFrequency)) {
- builder.outputSamplingFrequency = reader.asFloat(child);
- } else if (child.is(MatroskaElementType.Channels)) {
- builder.channels = reader.asInteger(child);
- } else if (child.is(MatroskaElementType.BitDepth)) {
- builder.bitDepth = reader.asInteger(child);
- }
-
- reader.skip(child);
- }
-
- return builder.build();
- }
-
- private static class Builder {
- private int index;
- private Type type;
- private long trackUid;
- private String name;
- private String codecId;
- private byte[] codecPrivate;
- private AudioDetails audio;
-
- private MatroskaFileTrack build() {
- return new MatroskaFileTrack(index, type, trackUid, name, codecId, codecPrivate, audio);
- }
- }
-
- private static class AudioBuilder {
- private float samplingFrequency;
- private float outputSamplingFrequency;
- private int channels;
- private int bitDepth;
-
- private AudioDetails build() {
- return new AudioDetails(samplingFrequency, outputSamplingFrequency, channels, bitDepth);
- }
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/container/matroska/format/MutableMatroskaBlock.java b/src/main/java/com/sedmelluq/discord/lavaplayer/container/matroska/format/MutableMatroskaBlock.java
deleted file mode 100644
index 4a85fd0..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/container/matroska/format/MutableMatroskaBlock.java
+++ /dev/null
@@ -1,160 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.container.matroska.format;
-
-import java.io.DataInput;
-import java.io.IOException;
-import java.nio.ByteBuffer;
-
-/**
- * An implementation of {@link MatroskaBlock} which can be reused by loading the next block into it by calling
- * {@link #parseHeader(MatroskaFileReader, MatroskaElement, int)}. Does not reallocate any objects unless it encounters
- * a block with more than twice as many frames as seen before, or a frame more than twice as long as before.
- */
-public class MutableMatroskaBlock implements MatroskaBlock {
- private int timecode;
- private int trackNumber;
- private boolean keyFrame;
- private int[] frameSizes;
- private int frameCount;
- private ByteBuffer buffer;
- private byte[] bufferArray;
-
- @Override
- public int getTimecode() {
- return timecode;
- }
-
- @Override
- public int getTrackNumber() {
- return trackNumber;
- }
-
- @Override
- public boolean isKeyFrame() {
- return keyFrame;
- }
-
- @Override
- public int getFrameCount() {
- return frameCount;
- }
-
- @Override
- public ByteBuffer getNextFrameBuffer(MatroskaFileReader reader, int index) throws IOException {
- if (index >= frameCount) {
- throw new IllegalArgumentException("Frame index out of bounds.");
- }
-
- int frameSize = frameSizes[index];
-
- if (buffer == null || frameSize > buffer.capacity()) {
- buffer = ByteBuffer.allocate(frameSizes[index] * 2);
- bufferArray = buffer.array();
- }
-
- reader.getDataInput().readFully(bufferArray, 0, frameSize);
-
- buffer.position(0);
- buffer.limit(frameSize);
- return buffer;
- }
-
- /**
- * Parses the Matroska block header data into the fields of this instance. On success of this method, this instance
- * effectively represents that block.
- *
- * @param reader The reader to use.
- * @param element The block EBML element.
- * @param trackFilter The ID of the track to read data for from the block.
- * @return true
of a block if it contains data for the requested track, false
otherwise.
- * @throws IOException On read error.
- */
- public boolean parseHeader(MatroskaFileReader reader, MatroskaElement element, int trackFilter) throws IOException {
- DataInput input = reader.getDataInput();
- trackNumber = (int) MatroskaEbmlReader.readEbmlInteger(input, null);
-
- if (trackFilter >= 0 && trackNumber != trackFilter) {
- return false;
- }
-
- timecode = input.readShort();
-
- int flags = input.readByte() & 0xFF;
- keyFrame = (flags & 0x80) != 0;
-
- int laceType = (flags & 0x06) >> 1;
-
- if (laceType != 0) {
- setFrameCount((input.readByte() & 0xFF) + 1);
- parseLacing(reader, element, laceType);
- } else {
- setFrameCount(1);
- frameSizes[0] = (int) element.getRemaining(reader.getPosition());
- }
-
- return true;
- }
-
- private void parseLacing(MatroskaFileReader reader, MatroskaElement element, int laceType) throws IOException {
- setFrameCount(frameCount);
-
- switch (laceType) {
- case 1:
- parseXiphLaceSizes(reader, element);
- break;
- case 2:
- parseFixedLaceSizes(reader, element);
- break;
- case 3:
- default:
- parseEbmlLaceSizes(reader, element);
- }
- }
-
- private void setFrameCount(int frameCount) {
- if (frameSizes == null || frameSizes.length < frameCount) {
- frameSizes = new int[frameCount * 2];
- }
-
- this.frameCount = frameCount;
- }
-
- private void parseXiphLaceSizes(MatroskaFileReader reader, MatroskaElement element) throws IOException {
- int sizeTotal = 0;
- DataInput input = reader.getDataInput();
-
- for (int i = 0; i < frameCount - 1; i++) {
- int value;
-
- do {
- value = input.readByte() & 0xFF;
- frameSizes[i] += value;
- } while (value == 255);
-
- sizeTotal += frameSizes[i];
- }
-
- frameSizes[frameCount - 1] = (int) element.getRemaining(reader.getPosition()) - sizeTotal;
- }
-
- private void parseFixedLaceSizes(MatroskaFileReader reader, MatroskaElement element) {
- int size = (int) element.getRemaining(reader.getPosition()) / frameCount;
-
- for (int i = 0; i < frameCount; i++) {
- frameSizes[i] = size;
- }
- }
-
- private void parseEbmlLaceSizes(MatroskaFileReader reader, MatroskaElement element) throws IOException {
- DataInput input = reader.getDataInput();
-
- frameSizes[0] = (int) MatroskaEbmlReader.readEbmlInteger(input, null);
- int sizeTotal = frameSizes[0];
-
- for (int i = 1; i < frameCount - 1; i++) {
- frameSizes[i] = frameSizes[i - 1] + (int) MatroskaEbmlReader.readEbmlInteger(input, MatroskaEbmlReader.Type.LACE_SIGNED);
- sizeTotal += frameSizes[i];
- }
-
- frameSizes[frameCount - 1] = (int) element.getRemaining(reader.getPosition()) - sizeTotal;
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/container/matroska/format/MutableMatroskaElement.java b/src/main/java/com/sedmelluq/discord/lavaplayer/container/matroska/format/MutableMatroskaElement.java
deleted file mode 100644
index 42b97fa..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/container/matroska/format/MutableMatroskaElement.java
+++ /dev/null
@@ -1,30 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.container.matroska.format;
-
-/**
- * Mutable instance of {@link MatroskaElement} for reducing allocation rate during parsing.
- */
-public class MutableMatroskaElement extends MatroskaElement {
- protected MutableMatroskaElement(int level) {
- super(level);
- }
-
- public void setId(long id) {
- this.id = id;
- }
-
- public void setType(MatroskaElementType type) {
- this.type = type;
- }
-
- public void setPosition(long position) {
- this.position = position;
- }
-
- public void setHeaderSize(int headerSize) {
- this.headerSize = headerSize;
- }
-
- public void setDataSize(int dataSize) {
- this.dataSize = dataSize;
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/container/mp3/Mp3AudioTrack.java b/src/main/java/com/sedmelluq/discord/lavaplayer/container/mp3/Mp3AudioTrack.java
deleted file mode 100644
index a687d87..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/container/mp3/Mp3AudioTrack.java
+++ /dev/null
@@ -1,41 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.container.mp3;
-
-import com.sedmelluq.discord.lavaplayer.tools.io.SeekableInputStream;
-import com.sedmelluq.discord.lavaplayer.track.AudioTrackInfo;
-import com.sedmelluq.discord.lavaplayer.track.BaseAudioTrack;
-import com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-/**
- * Audio track that handles an MP3 stream
- */
-public class Mp3AudioTrack extends BaseAudioTrack {
- private static final Logger log = LoggerFactory.getLogger(Mp3AudioTrack.class);
-
- private final SeekableInputStream inputStream;
-
- /**
- * @param trackInfo Track info
- * @param inputStream Input stream for the MP3 file
- */
- public Mp3AudioTrack(AudioTrackInfo trackInfo, SeekableInputStream inputStream) {
- super(trackInfo);
-
- this.inputStream = inputStream;
- }
-
- @Override
- public void process(LocalAudioTrackExecutor localExecutor) throws Exception {
- Mp3TrackProvider provider = new Mp3TrackProvider(localExecutor.getProcessingContext(), inputStream);
-
- try {
- provider.parseHeaders();
-
- log.debug("Starting to play MP3 track {}", getIdentifier());
- localExecutor.executeProcessingLoop(provider::provideFrames, provider::seekToTimecode);
- } finally {
- provider.close();
- }
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/container/mp3/Mp3ConstantRateSeeker.java b/src/main/java/com/sedmelluq/discord/lavaplayer/container/mp3/Mp3ConstantRateSeeker.java
deleted file mode 100644
index 5c262c5..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/container/mp3/Mp3ConstantRateSeeker.java
+++ /dev/null
@@ -1,83 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.container.mp3;
-
-import com.sedmelluq.discord.lavaplayer.natives.mp3.Mp3Decoder;
-import com.sedmelluq.discord.lavaplayer.tools.DataFormatTools;
-import com.sedmelluq.discord.lavaplayer.tools.io.SeekableInputStream;
-
-import java.io.IOException;
-
-import static com.sedmelluq.discord.lavaplayer.natives.mp3.Mp3Decoder.MPEG1_SAMPLES_PER_FRAME;
-
-/**
- * MP3 seeking support for constant bitrate files or in cases where the variable bitrate format used by the file is not
- * supported. In case the file is not actually CBR, this being used as a fallback may cause inaccurate seeking.
- */
-public class Mp3ConstantRateSeeker implements Mp3Seeker {
- private static final int META_TAG_OFFSET = 36;
- private static final byte[][] META_TAGS = new byte[][]{
- new byte[]{'I', 'n', 'f', 'o'},
- new byte[]{'L', 'A', 'M', 'E'}
- };
-
- private final double averageFrameSize;
- private final int sampleRate;
- private final long firstFramePosition;
- private final long contentLength;
-
- private Mp3ConstantRateSeeker(double averageFrameSize, int sampleRate, long firstFramePosition, long contentLength) {
- this.averageFrameSize = averageFrameSize;
- this.sampleRate = sampleRate;
- this.firstFramePosition = firstFramePosition;
- this.contentLength = contentLength;
- }
-
- /**
- * @param firstFramePosition Position of the first frame in the file
- * @param contentLength Total length of the file
- * @param frameBuffer Buffer of the first frame
- * @return Constant rate seeker, will always succeed, never null.
- */
- public static Mp3ConstantRateSeeker createFromFrame(long firstFramePosition, long contentLength, byte[] frameBuffer) {
- int sampleRate = Mp3Decoder.getFrameSampleRate(frameBuffer, 0);
- double averageFrameSize = Mp3Decoder.getAverageFrameSize(frameBuffer, 0);
-
- return new Mp3ConstantRateSeeker(averageFrameSize, sampleRate, firstFramePosition, contentLength);
- }
-
- public static boolean isMetaFrame(byte[] frameBuffer) {
- for (byte[] metaTag : META_TAGS) {
- if (DataFormatTools.arrayRangeEquals(frameBuffer, META_TAG_OFFSET, metaTag)) {
- return true;
- }
- }
-
- return false;
- }
-
- @Override
- public long getDuration() {
- return getMaximumFrameCount() * MPEG1_SAMPLES_PER_FRAME * 1000 / sampleRate;
- }
-
- @Override
- public boolean isSeekable() {
- return true;
- }
-
- @Override
- public long seekAndGetFrameIndex(long timecode, SeekableInputStream inputStream) throws IOException {
- long maximumFrameCount = getMaximumFrameCount();
-
- long sampleIndex = timecode * sampleRate / 1000;
- long frameIndex = Math.min(sampleIndex / MPEG1_SAMPLES_PER_FRAME, maximumFrameCount);
-
- long seekPosition = (long) (frameIndex * averageFrameSize) - 8;
- inputStream.seek(firstFramePosition + seekPosition);
-
- return frameIndex;
- }
-
- private long getMaximumFrameCount() {
- return (long) ((contentLength - firstFramePosition + 8) / averageFrameSize);
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/container/mp3/Mp3ContainerProbe.java b/src/main/java/com/sedmelluq/discord/lavaplayer/container/mp3/Mp3ContainerProbe.java
deleted file mode 100644
index 494c2c1..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/container/mp3/Mp3ContainerProbe.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.container.mp3;
-
-import com.sedmelluq.discord.lavaplayer.container.MediaContainerDetectionResult;
-import com.sedmelluq.discord.lavaplayer.container.MediaContainerHints;
-import com.sedmelluq.discord.lavaplayer.container.MediaContainerProbe;
-import com.sedmelluq.discord.lavaplayer.tools.io.SeekableInputStream;
-import com.sedmelluq.discord.lavaplayer.track.AudioReference;
-import com.sedmelluq.discord.lavaplayer.track.AudioTrack;
-import com.sedmelluq.discord.lavaplayer.track.AudioTrackInfo;
-import com.sedmelluq.discord.lavaplayer.track.info.AudioTrackInfoBuilder;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import java.io.IOException;
-
-import static com.sedmelluq.discord.lavaplayer.container.MediaContainerDetection.STREAM_SCAN_DISTANCE;
-import static com.sedmelluq.discord.lavaplayer.container.MediaContainerDetection.checkNextBytes;
-import static com.sedmelluq.discord.lavaplayer.container.MediaContainerDetectionResult.supportedFormat;
-
-/**
- * Container detection probe for MP3 format.
- */
-public class Mp3ContainerProbe implements MediaContainerProbe {
- private static final Logger log = LoggerFactory.getLogger(Mp3ContainerProbe.class);
-
- private static final int[] ID3_TAG = new int[]{0x49, 0x44, 0x33};
-
- @Override
- public String getName() {
- return "mp3";
- }
-
- @Override
- public boolean matchesHints(MediaContainerHints hints) {
- boolean invalidMimeType = hints.mimeType != null && !"audio/mpeg".equalsIgnoreCase(hints.mimeType);
- boolean invalidFileExtension = hints.fileExtension != null && !"mp3".equalsIgnoreCase(hints.fileExtension);
- return hints.present() && !invalidMimeType && !invalidFileExtension;
- }
-
- @Override
- public MediaContainerDetectionResult probe(AudioReference reference, SeekableInputStream inputStream) throws IOException {
- if (!checkNextBytes(inputStream, ID3_TAG)) {
- byte[] frameHeader = new byte[4];
- Mp3FrameReader frameReader = new Mp3FrameReader(inputStream, frameHeader);
- if (!frameReader.scanForFrame(STREAM_SCAN_DISTANCE, false)) {
- return null;
- }
-
- inputStream.seek(0);
- }
-
- log.debug("Track {} is an MP3 file.", reference.identifier);
-
- Mp3TrackProvider file = new Mp3TrackProvider(null, inputStream);
-
- try {
- file.parseHeaders();
-
- return supportedFormat(this, null, AudioTrackInfoBuilder.create(reference, inputStream)
- .apply(file).setIsStream(!file.isSeekable()).build());
- } finally {
- file.close();
- }
- }
-
- @Override
- public AudioTrack createTrack(String parameters, AudioTrackInfo trackInfo, SeekableInputStream inputStream) {
- return new Mp3AudioTrack(trackInfo, inputStream);
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/container/mp3/Mp3FrameReader.java b/src/main/java/com/sedmelluq/discord/lavaplayer/container/mp3/Mp3FrameReader.java
deleted file mode 100644
index 8ecfab6..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/container/mp3/Mp3FrameReader.java
+++ /dev/null
@@ -1,154 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.container.mp3;
-
-import com.sedmelluq.discord.lavaplayer.natives.mp3.Mp3Decoder;
-import com.sedmelluq.discord.lavaplayer.tools.io.SeekableInputStream;
-
-import java.io.DataInput;
-import java.io.DataInputStream;
-import java.io.IOException;
-
-import static com.sedmelluq.discord.lavaplayer.natives.mp3.Mp3Decoder.HEADER_SIZE;
-
-/**
- * Handles reading MP3 frames from a stream.
- */
-public class Mp3FrameReader {
- private final SeekableInputStream inputStream;
- private final DataInput dataInput;
- private final byte[] scanBuffer;
- private final byte[] frameBuffer;
- private int frameSize;
- private int frameBufferPosition;
- private int scanBufferPosition;
- private boolean frameHeaderRead;
-
- /**
- * @param inputStream Input buffer to read from
- * @param frameBuffer Array to store the frame data in
- */
- public Mp3FrameReader(SeekableInputStream inputStream, byte[] frameBuffer) {
- this.inputStream = inputStream;
- this.dataInput = new DataInputStream(inputStream);
- this.scanBuffer = new byte[16];
- this.frameBuffer = frameBuffer;
- }
-
- /**
- * @param bytesToCheck The maximum number of bytes to check before throwing an IllegalStateException
- * @param throwOnLimit Whether to throw an exception when maximum number of bytes is reached, but no frame has been
- * found and EOF has not been reached.
- * @return True if a frame was found, false if EOF was encountered.
- * @throws IOException On IO error
- * @throws IllegalStateException If the maximum number of bytes to check was reached before a frame was found
- */
- public boolean scanForFrame(int bytesToCheck, boolean throwOnLimit) throws IOException {
- int bytesInBuffer = scanBufferPosition;
- scanBufferPosition = 0;
-
- if (parseFrameAt(bytesInBuffer)) {
- frameHeaderRead = true;
- return true;
- }
-
- return runFrameScanLoop(bytesToCheck - bytesInBuffer, bytesInBuffer, throwOnLimit);
- }
-
- private boolean runFrameScanLoop(int bytesToCheck, int bytesInBuffer, boolean throwOnLimit) throws IOException {
- while (bytesToCheck > 0) {
- for (int i = bytesInBuffer; i < scanBuffer.length && bytesToCheck > 0; i++, bytesToCheck--) {
- int next = inputStream.read();
- if (next == -1) {
- return false;
- }
-
- scanBuffer[i] = (byte) (next & 0xFF);
-
- if (parseFrameAt(i + 1)) {
- frameHeaderRead = true;
- return true;
- }
- }
-
- bytesInBuffer = copyScanBufferEndToBeginning();
- }
-
- if (throwOnLimit) {
- throw new IllegalStateException("Mp3 frame not found.");
- }
-
- return false;
- }
-
- private int copyScanBufferEndToBeginning() {
- for (int i = 0; i < HEADER_SIZE - 1; i++) {
- scanBuffer[i] = scanBuffer[scanBuffer.length - HEADER_SIZE + i + 1];
- }
-
- return HEADER_SIZE - 1;
- }
-
- private boolean parseFrameAt(int scanOffset) {
- if (scanOffset >= HEADER_SIZE && (frameSize = Mp3Decoder.getFrameSize(scanBuffer, scanOffset - HEADER_SIZE)) > 0) {
- for (int i = 0; i < HEADER_SIZE; i++) {
- frameBuffer[i] = scanBuffer[scanOffset - HEADER_SIZE + i];
- }
-
- frameBufferPosition = HEADER_SIZE;
- return true;
- }
-
- return false;
- }
-
- /**
- * Fills the buffer for the current frame. If no frame header has been read previously, it will first scan for the
- * sync bytes of the next frame in the stream.
- *
- * @return False if EOF was encountered while looking for the next frame, true otherwise
- * @throws IOException On IO error
- */
- public boolean fillFrameBuffer() throws IOException {
- if (!frameHeaderRead && !scanForFrame(Integer.MAX_VALUE, true)) {
- return false;
- }
-
- dataInput.readFully(frameBuffer, frameBufferPosition, frameSize - frameBufferPosition);
- frameBufferPosition = frameSize;
- return true;
- }
-
- /**
- * Forget the current frame and make next calls look for the next frame.
- */
- public void nextFrame() {
- frameHeaderRead = false;
- frameBufferPosition = 0;
- }
-
- /**
- * @return The start position of the current frame in the stream.
- */
- public long getFrameStartPosition() {
- return inputStream.getPosition() - frameBufferPosition;
- }
-
- /**
- * @return Size of the current frame in bytes.
- */
- public int getFrameSize() {
- return frameSize;
- }
-
- /**
- * Append some bytes to the frame sync scan buffer. This must be called when some bytes have been read externally that
- * may actually be part of the next frame header.
- *
- * @param data The buffer to copy from
- * @param offset The offset in the buffer
- * @param length The length of the region to copy
- */
- public void appendToScanBuffer(byte[] data, int offset, int length) {
- System.arraycopy(data, offset, scanBuffer, 0, length);
- scanBufferPosition = length;
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/container/mp3/Mp3Seeker.java b/src/main/java/com/sedmelluq/discord/lavaplayer/container/mp3/Mp3Seeker.java
deleted file mode 100644
index b2f49d7..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/container/mp3/Mp3Seeker.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.container.mp3;
-
-import com.sedmelluq.discord.lavaplayer.tools.io.SeekableInputStream;
-
-import java.io.IOException;
-
-/**
- * A seeking handler for MP3 files.
- */
-public interface Mp3Seeker {
- /**
- * @return The duration of the file in milliseconds. May be an estimate.
- */
- long getDuration();
-
- /**
- * @return True if the track is seekable.
- */
- boolean isSeekable();
-
- /**
- * @param timecode The timecode that the seek is requested to
- * @param inputStream The input stream to perform the seek on
- * @return The index of the frame that the seek was performed to
- * @throws IOException On IO error
- */
- long seekAndGetFrameIndex(long timecode, SeekableInputStream inputStream) throws IOException;
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/container/mp3/Mp3StreamSeeker.java b/src/main/java/com/sedmelluq/discord/lavaplayer/container/mp3/Mp3StreamSeeker.java
deleted file mode 100644
index ef3a1b5..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/container/mp3/Mp3StreamSeeker.java
+++ /dev/null
@@ -1,25 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.container.mp3;
-
-import com.sedmelluq.discord.lavaplayer.tools.io.SeekableInputStream;
-
-import java.io.IOException;
-
-/**
- * Seeker for an MP3 stream, which actually does not allow seeking and reports Long.MAX_VALUE as duration.
- */
-public class Mp3StreamSeeker implements Mp3Seeker {
- @Override
- public long getDuration() {
- return Long.MAX_VALUE;
- }
-
- @Override
- public boolean isSeekable() {
- return false;
- }
-
- @Override
- public long seekAndGetFrameIndex(long timecode, SeekableInputStream inputStream) throws IOException {
- throw new UnsupportedOperationException("Cannot seek on a stream.");
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/container/mp3/Mp3TrackProvider.java b/src/main/java/com/sedmelluq/discord/lavaplayer/container/mp3/Mp3TrackProvider.java
deleted file mode 100644
index e3c5897..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/container/mp3/Mp3TrackProvider.java
+++ /dev/null
@@ -1,395 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.container.mp3;
-
-import com.sedmelluq.discord.lavaplayer.filter.AudioPipeline;
-import com.sedmelluq.discord.lavaplayer.filter.AudioPipelineFactory;
-import com.sedmelluq.discord.lavaplayer.filter.PcmFormat;
-import com.sedmelluq.discord.lavaplayer.natives.mp3.Mp3Decoder;
-import com.sedmelluq.discord.lavaplayer.tools.io.SeekableInputStream;
-import com.sedmelluq.discord.lavaplayer.track.info.AudioTrackInfoProvider;
-import com.sedmelluq.discord.lavaplayer.track.playback.AudioProcessingContext;
-
-import java.io.DataInputStream;
-import java.io.IOException;
-import java.nio.ByteBuffer;
-import java.nio.ByteOrder;
-import java.nio.ShortBuffer;
-import java.nio.charset.StandardCharsets;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import static com.sedmelluq.discord.lavaplayer.natives.mp3.Mp3Decoder.MPEG1_SAMPLES_PER_FRAME;
-
-/**
- * Handles parsing MP3 files, seeking and sending the decoded frames to the specified frame consumer.
- */
-public class Mp3TrackProvider implements AudioTrackInfoProvider {
- private static final byte[] IDV3_TAG = new byte[]{0x49, 0x44, 0x33};
- private static final int IDV3_FLAG_EXTENDED = 0x40;
-
- private static final String TITLE_TAG = "TIT2";
- private static final String ARTIST_TAG = "TPE1";
-
- private static final Listnull
.
- */
- public OggStreamSizeInfo scanForSizeInfo(long firstPageOffset, int sampleRate) {
- ByteBuffer buffer = ByteBuffer.wrap(data, 0, dataLength);
- int head = buffer.getInt(0);
-
- for (int i = 0; i < dataLength - 27; i++) {
- if (head == OGG_PAGE_HEADER_INT) {
- buffer.position(i);
-
- if (attemptReadHeader(buffer)) {
- do {
- if ((flags & OggPageHeader.FLAG_LAST_PAGE) != 0) {
- return new OggStreamSizeInfo((byteStreamPosition - firstPageOffset) + pageSize,
- Long.reverseBytes(reversedPosition), firstPageOffset, byteStreamPosition, sampleRate);
- }
- } while (attemptReadHeader(buffer));
- }
- }
-
- head <<= 8;
- head |= data[i + 4] & 0xFF;
- }
-
- return null;
- }
-
- private boolean attemptReadHeader(ByteBuffer buffer) {
- int start = buffer.position();
-
- if (buffer.limit() < start + 27) {
- return false;
- } else if (buffer.getInt(start) != OGG_PAGE_HEADER_INT) {
- return false;
- } else if (buffer.get(start + 4) != 0) {
- return false;
- }
-
- int segmentCount = buffer.get(start + 26) & 0xFF;
- int minimumCapacity = start + segmentCount + 27;
-
- if (buffer.limit() < minimumCapacity) {
- return false;
- }
-
- int segmentBase = start + 27;
-
- for (int i = 0; i < segmentCount; i++) {
- minimumCapacity += buffer.get(segmentBase + i) & 0xFF;
- }
-
- if (buffer.limit() < minimumCapacity) {
- return false;
- }
-
- flags = buffer.get(start + 5) & 0xFF;
- reversedPosition = buffer.getLong(start + 6);
- byteStreamPosition = absoluteOffset + start;
- pageSize = minimumCapacity;
-
- buffer.position(minimumCapacity);
- return true;
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/container/ogg/OggStreamSizeInfo.java b/src/main/java/com/sedmelluq/discord/lavaplayer/container/ogg/OggStreamSizeInfo.java
deleted file mode 100644
index cb77888..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/container/ogg/OggStreamSizeInfo.java
+++ /dev/null
@@ -1,51 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.container.ogg;
-
-/**
- * Describes the size information of an OGG stream.
- */
-public class OggStreamSizeInfo {
- /**
- * Total number of bytes in the stream.
- */
- public final long totalBytes;
- /**
- * Total number of samples in the stream.
- */
- public final long totalSamples;
- /**
- * Absolute offset of the first page in the stream.
- */
- public final long firstPageOffset;
- /**
- * Absolute offset of the last page in the stream.
- */
- public final long lastPageOffset;
- /**
- * Sample rate of the track in this stream, useful for calculating duration in milliseconds.
- */
- public final int sampleRate;
-
- /**
- * @param totalBytes See {@link #totalBytes}.
- * @param totalSamples See {@link #totalSamples}.
- * @param firstPageOffset See {@link #firstPageOffset}.
- * @param lastPageOffset See {@link #lastPageOffset}.
- * @param sampleRate See {@link #sampleRate}.
- */
- public OggStreamSizeInfo(long totalBytes, long totalSamples, long firstPageOffset, long lastPageOffset,
- int sampleRate) {
-
- this.totalBytes = totalBytes;
- this.totalSamples = totalSamples;
- this.firstPageOffset = firstPageOffset;
- this.lastPageOffset = lastPageOffset;
- this.sampleRate = sampleRate;
- }
-
- /**
- * @return Duration calculated from size info in milliseconds (rounded down).
- */
- public long getDuration() {
- return totalSamples * 1000 / sampleRate;
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/container/ogg/OggTrackHandler.java b/src/main/java/com/sedmelluq/discord/lavaplayer/container/ogg/OggTrackHandler.java
deleted file mode 100644
index deeed5c..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/container/ogg/OggTrackHandler.java
+++ /dev/null
@@ -1,37 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.container.ogg;
-
-import com.sedmelluq.discord.lavaplayer.track.playback.AudioProcessingContext;
-
-import java.io.IOException;
-
-/**
- * A handler for a specific codec for an OGG stream.
- */
-public interface OggTrackHandler {
- /**
- * Initialises the track stream.
- *
- * @param context Configuration and output information for processing
- * @throws IOException On read error.
- */
- void initialise(AudioProcessingContext context) throws IOException;
-
- /**
- * Decodes audio frames and sends them to frame consumer.
- *
- * @throws InterruptedException When interrupted externally (or for seek/stop).
- */
- void provideFrames() throws InterruptedException;
-
- /**
- * Seeks to the specified timecode.
- *
- * @param timecode The timecode in milliseconds
- */
- void seekToTimecode(long timecode);
-
- /**
- * Free all resources associated to processing the track.
- */
- void close();
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/container/ogg/OggTrackLoader.java b/src/main/java/com/sedmelluq/discord/lavaplayer/container/ogg/OggTrackLoader.java
deleted file mode 100644
index 6d59650..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/container/ogg/OggTrackLoader.java
+++ /dev/null
@@ -1,72 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.container.ogg;
-
-import com.sedmelluq.discord.lavaplayer.container.ogg.flac.OggFlacCodecHandler;
-import com.sedmelluq.discord.lavaplayer.container.ogg.opus.OggOpusCodecHandler;
-import com.sedmelluq.discord.lavaplayer.container.ogg.vorbis.OggVorbisCodecHandler;
-import com.sedmelluq.discord.lavaplayer.tools.io.DirectBufferStreamBroker;
-
-import java.io.IOException;
-import java.util.stream.Stream;
-
-/**
- * Track loader for an OGG packet stream. Automatically detects the track codec and loads the specific track handler.
- */
-public class OggTrackLoader {
- private static final OggCodecHandler[] TRACK_PROVIDERS = new OggCodecHandler[]{
- new OggOpusCodecHandler(),
- new OggFlacCodecHandler(),
- new OggVorbisCodecHandler()
- };
-
- private static final int MAXIMUM_FIRST_PACKET_LENGTH = Stream.of(TRACK_PROVIDERS)
- .mapToInt(OggCodecHandler::getMaximumFirstPacketLength).max().getAsInt();
-
- /**
- * @param packetInputStream OGG packet input stream
- * @return The track handler detected from this packet input stream. Returns null if the stream ended.
- * @throws IOException On read error
- * @throws IllegalStateException If the track uses an unknown codec.
- */
- public static OggTrackHandler loadTrackHandler(OggPacketInputStream packetInputStream) throws IOException {
- CodecDetection result = detectCodec(packetInputStream);
- return result != null ? result.provider.loadTrackHandler(packetInputStream, result.broker) : null;
- }
-
- public static OggMetadata loadMetadata(OggPacketInputStream packetInputStream) throws IOException {
- CodecDetection result = detectCodec(packetInputStream);
- return result != null ? result.provider.loadMetadata(packetInputStream, result.broker) : null;
- }
-
- private static CodecDetection detectCodec(OggPacketInputStream stream) throws IOException {
- if (!stream.startNewTrack() || !stream.startNewPacket()) {
- return null;
- }
-
- DirectBufferStreamBroker broker = new DirectBufferStreamBroker(1024);
- int maximumLength = MAXIMUM_FIRST_PACKET_LENGTH + 1;
-
- if (!broker.consumeNext(stream, maximumLength, maximumLength)) {
- throw new IOException("First packet is too large for any known OGG codec.");
- }
-
- int headerIdentifier = broker.getBuffer().getInt();
-
- for (OggCodecHandler trackProvider : TRACK_PROVIDERS) {
- if (trackProvider.isMatchingIdentifier(headerIdentifier)) {
- return new CodecDetection(trackProvider, broker);
- }
- }
-
- throw new IllegalStateException("Unsupported track in OGG stream.");
- }
-
- private static class CodecDetection {
- private final OggCodecHandler provider;
- private final DirectBufferStreamBroker broker;
-
- private CodecDetection(OggCodecHandler provider, DirectBufferStreamBroker broker) {
- this.provider = provider;
- this.broker = broker;
- }
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/container/ogg/flac/OggFlacCodecHandler.java b/src/main/java/com/sedmelluq/discord/lavaplayer/container/ogg/flac/OggFlacCodecHandler.java
deleted file mode 100644
index 1e338da..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/container/ogg/flac/OggFlacCodecHandler.java
+++ /dev/null
@@ -1,84 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.container.ogg.flac;
-
-import com.sedmelluq.discord.lavaplayer.container.flac.*;
-import com.sedmelluq.discord.lavaplayer.container.ogg.*;
-import com.sedmelluq.discord.lavaplayer.tools.io.ByteBufferInputStream;
-import com.sedmelluq.discord.lavaplayer.tools.io.DirectBufferStreamBroker;
-
-import java.io.DataInputStream;
-import java.io.IOException;
-import java.nio.ByteBuffer;
-
-/**
- * Loader for an OGG FLAC track from an OGG packet stream.
- */
-public class OggFlacCodecHandler implements OggCodecHandler {
- private static final int FLAC_IDENTIFIER = ByteBuffer.wrap(new byte[]{0x7F, 'F', 'L', 'A'}).getInt();
-
- private static final int NATIVE_FLAC_HEADER_OFFSET = 9;
- private static final int NATIVE_FLAC_HEADER = ByteBuffer.wrap(new byte[]{'f', 'L', 'a', 'C'}).getInt();
-
- @Override
- public boolean isMatchingIdentifier(int identifier) {
- return identifier == FLAC_IDENTIFIER;
- }
-
- @Override
- public int getMaximumFirstPacketLength() {
- return NATIVE_FLAC_HEADER_OFFSET + 4 + FlacMetadataHeader.LENGTH + FlacStreamInfo.LENGTH;
- }
-
- @Override
- public OggTrackHandler loadTrackHandler(OggPacketInputStream stream, DirectBufferStreamBroker broker) throws IOException {
- return new OggFlacTrackHandler(load(stream, broker), stream);
- }
-
- @Override
- public OggMetadata loadMetadata(OggPacketInputStream stream, DirectBufferStreamBroker broker) throws IOException {
- FlacTrackInfo info = load(stream, broker);
- return new OggMetadata(info.tags, detectLength(info, stream));
- }
-
- private FlacTrackInfo load(OggPacketInputStream stream, DirectBufferStreamBroker broker) throws IOException {
- ByteBuffer buffer = broker.getBuffer();
-
- if (buffer.getInt(NATIVE_FLAC_HEADER_OFFSET) != NATIVE_FLAC_HEADER) {
- throw new IllegalStateException("Native flac header not found.");
- }
-
- buffer.position(NATIVE_FLAC_HEADER_OFFSET + 4);
-
- return readHeaders(buffer, stream);
- }
-
- private Long detectLength(FlacTrackInfo info, OggPacketInputStream stream) throws IOException {
- OggStreamSizeInfo sizeInfo;
-
- if (info.stream.sampleCount > 0) {
- sizeInfo = new OggStreamSizeInfo(0, info.stream.sampleCount, 0, 0, info.stream.sampleRate);
- } else {
- sizeInfo = stream.seekForSizeInfo(info.stream.sampleRate);
- }
-
- return sizeInfo != null ? sizeInfo.getDuration() : null;
- }
-
- private FlacTrackInfo readHeaders(ByteBuffer firstPacketBuffer, OggPacketInputStream packetInputStream) throws IOException {
- FlacStreamInfo streamInfo = FlacMetadataReader.readStreamInfoBlock(new DataInputStream(new ByteBufferInputStream(firstPacketBuffer)));
- FlacTrackInfoBuilder trackInfoBuilder = new FlacTrackInfoBuilder(streamInfo);
-
- DataInputStream dataInputStream = new DataInputStream(packetInputStream);
-
- boolean hasMoreMetadata = trackInfoBuilder.getStreamInfo().hasMetadataBlocks;
-
- while (hasMoreMetadata) {
- if (!packetInputStream.startNewPacket()) {
- throw new IllegalStateException("Track ended when more metadata was expected.");
- }
-
- hasMoreMetadata = FlacMetadataReader.readMetadataBlock(dataInputStream, packetInputStream, trackInfoBuilder);
- }
-
- return trackInfoBuilder.build();
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/container/ogg/flac/OggFlacTrackHandler.java b/src/main/java/com/sedmelluq/discord/lavaplayer/container/ogg/flac/OggFlacTrackHandler.java
deleted file mode 100644
index 45b47d4..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/container/ogg/flac/OggFlacTrackHandler.java
+++ /dev/null
@@ -1,83 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.container.ogg.flac;
-
-import com.sedmelluq.discord.lavaplayer.container.flac.FlacTrackInfo;
-import com.sedmelluq.discord.lavaplayer.container.flac.frame.FlacFrameReader;
-import com.sedmelluq.discord.lavaplayer.container.ogg.OggPacketInputStream;
-import com.sedmelluq.discord.lavaplayer.container.ogg.OggTrackHandler;
-import com.sedmelluq.discord.lavaplayer.filter.AudioPipeline;
-import com.sedmelluq.discord.lavaplayer.filter.AudioPipelineFactory;
-import com.sedmelluq.discord.lavaplayer.filter.PcmFormat;
-import com.sedmelluq.discord.lavaplayer.tools.io.BitStreamReader;
-import com.sedmelluq.discord.lavaplayer.track.playback.AudioProcessingContext;
-
-import java.io.IOException;
-
-/**
- * OGG stream handler for FLAC codec.
- */
-public class OggFlacTrackHandler implements OggTrackHandler {
- private final FlacTrackInfo info;
- private final OggPacketInputStream packetInputStream;
- private final BitStreamReader bitStreamReader;
- private final int[] decodingBuffer;
- private final int[][] rawSampleBuffers;
- private final short[][] sampleBuffers;
- private AudioPipeline downstream;
-
- /**
- * @param info FLAC track info
- * @param packetInputStream OGG packet input stream
- */
- public OggFlacTrackHandler(FlacTrackInfo info, OggPacketInputStream packetInputStream) {
- this.info = info;
- this.packetInputStream = packetInputStream;
- this.bitStreamReader = new BitStreamReader(packetInputStream);
- this.decodingBuffer = new int[FlacFrameReader.TEMPORARY_BUFFER_SIZE];
- this.rawSampleBuffers = new int[info.stream.channelCount][];
- this.sampleBuffers = new short[info.stream.channelCount][];
-
- for (int i = 0; i < rawSampleBuffers.length; i++) {
- rawSampleBuffers[i] = new int[info.stream.maximumBlockSize];
- sampleBuffers[i] = new short[info.stream.maximumBlockSize];
- }
- }
-
- @Override
- public void initialise(AudioProcessingContext context) {
- downstream = AudioPipelineFactory.create(context,
- new PcmFormat(info.stream.channelCount, info.stream.sampleRate));
- }
-
- @Override
- public void provideFrames() throws InterruptedException {
- try {
- while (packetInputStream.startNewPacket()) {
- int sampleCount = readFlacFrame();
-
- if (sampleCount == 0) {
- throw new IllegalStateException("Not enough bytes in packet.");
- }
-
- downstream.process(sampleBuffers, 0, sampleCount);
- }
- } catch (IOException e) {
- throw new RuntimeException(e);
- }
- }
-
- private int readFlacFrame() throws IOException {
- return FlacFrameReader.readFlacFrame(packetInputStream, bitStreamReader, info.stream, rawSampleBuffers, sampleBuffers, decodingBuffer);
- }
-
- @Override
- public void seekToTimecode(long timecode) {
- throw new UnsupportedOperationException();
- }
-
- @Override
- public void close() {
- if (downstream != null) {
- downstream.close();
- }
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/container/ogg/opus/OggOpusCodecHandler.java b/src/main/java/com/sedmelluq/discord/lavaplayer/container/ogg/opus/OggOpusCodecHandler.java
deleted file mode 100644
index 30447c0..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/container/ogg/opus/OggOpusCodecHandler.java
+++ /dev/null
@@ -1,98 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.container.ogg.opus;
-
-import com.sedmelluq.discord.lavaplayer.container.ogg.*;
-import com.sedmelluq.discord.lavaplayer.container.ogg.vorbis.VorbisCommentParser;
-import com.sedmelluq.discord.lavaplayer.tools.io.DirectBufferStreamBroker;
-
-import java.io.IOException;
-import java.nio.ByteBuffer;
-import java.util.Collections;
-import java.util.Map;
-
-/**
- * Loader for Opus track providers from an OGG stream.
- */
-public class OggOpusCodecHandler implements OggCodecHandler {
- private static final int OPUS_IDENTIFIER = ByteBuffer.wrap(new byte[]{'O', 'p', 'u', 's'}).getInt();
- private static final int HEAD_TAG_HALF = ByteBuffer.wrap(new byte[]{'H', 'e', 'a', 'd'}).getInt();
-
- private static final int OPUS_TAG_HALF = ByteBuffer.wrap(new byte[]{'O', 'p', 'u', 's'}).getInt();
- private static final int TAGS_TAG_HALF = ByteBuffer.wrap(new byte[]{'T', 'a', 'g', 's'}).getInt();
-
- private static final int MAX_COMMENTS_SAVED_LENGTH = 1024 * 60; // 60 KB
- private static final int MAX_COMMENTS_READ_LENGTH = 1024 * 1024 * 120; // 120 MB
-
- @Override
- public boolean isMatchingIdentifier(int identifier) {
- return identifier == OPUS_IDENTIFIER;
- }
-
- @Override
- public int getMaximumFirstPacketLength() {
- return 276;
- }
-
- @Override
- public OggTrackHandler loadTrackHandler(OggPacketInputStream stream, DirectBufferStreamBroker broker) throws IOException {
- ByteBuffer firstPacket = broker.getBuffer();
- verifyFirstPacket(firstPacket);
-
- loadCommentsHeader(stream, broker, true);
-
- int channelCount = firstPacket.get(9) & 0xFF;
- return new OggOpusTrackHandler(stream, broker, channelCount, getSampleRate(firstPacket));
- }
-
- @Override
- public OggMetadata loadMetadata(OggPacketInputStream stream, DirectBufferStreamBroker broker) throws IOException {
- ByteBuffer firstPacket = broker.getBuffer();
- verifyFirstPacket(firstPacket);
-
- loadCommentsHeader(stream, broker, false);
-
- return new OggMetadata(
- parseTags(broker.getBuffer(), broker.isTruncated()),
- detectLength(stream, getSampleRate(firstPacket))
- );
- }
-
- private Mapnull
.
- */
- public final Object context;
-
- /**
- * @param input See {@link #input}.
- * @param filters See {@link #filters}.
- * @param context See {@link #context}.
- */
- public AudioFilterChain(UniversalPcmAudioFilter input, Listnull
.
- */
- Listtrue
if the output format is compatible for the equalizer (based on sample rate).
- */
- public static boolean isCompatible(AudioDataFormat format) {
- return format.sampleRate == SAMPLE_RATE;
- }
-
- @Override
- public void process(float[][] input, int offset, int length) throws InterruptedException {
- for (int channelIndex = 0; channelIndex < channels.length; channelIndex++) {
- channels[channelIndex].process(input[channelIndex], offset, offset + length);
- }
-
- next.process(input, offset, length);
- }
-
- @Override
- public void seekPerformed(long requestedTime, long providedTime) {
- for (int channelIndex = 0; channelIndex < channels.length; channelIndex++) {
- channels[channelIndex].reset();
- }
- }
-
- @Override
- public void flush() throws InterruptedException {
- // Nothing to do here.
- }
-
- @Override
- public void close() {
- // Nothing to do here.
- }
-
- private static ChannelProcessor[] createProcessors(int channelCount, float[] bandMultipliers) {
- ChannelProcessor[] processors = new ChannelProcessor[channelCount];
-
- for (int i = 0; i < channelCount; i++) {
- processors[i] = new ChannelProcessor(bandMultipliers);
- }
-
- return processors;
- }
-
- private static class ChannelProcessor {
- private final float[] history;
- private final float[] bandMultipliers;
-
- private int current;
- private int minusOne;
- private int minusTwo;
-
- private ChannelProcessor(float[] bandMultipliers) {
- this.history = new float[BAND_COUNT * 6];
- this.bandMultipliers = bandMultipliers;
- this.current = 0;
- this.minusOne = 2;
- this.minusTwo = 1;
- }
-
- private void process(float[] samples, int startIndex, int endIndex) {
- for (int sampleIndex = startIndex; sampleIndex < endIndex; sampleIndex++) {
- float sample = samples[sampleIndex];
- float result = sample * 0.25f;
-
- for (int bandIndex = 0; bandIndex < BAND_COUNT; bandIndex++) {
- int x = bandIndex * 6;
- int y = x + 3;
-
- Coefficients coefficients = coefficients48000[bandIndex];
-
- float bandResult = coefficients.alpha * (sample - history[x + minusTwo]) +
- coefficients.gamma * history[y + minusOne] -
- coefficients.beta * history[y + minusTwo];
-
- history[x + current] = sample;
- history[y + current] = bandResult;
-
- result += bandResult * bandMultipliers[bandIndex];
- }
-
- samples[sampleIndex] = Math.min(Math.max(result * 4.0f, -1.0f), 1.0f);
-
- if (++current == 3) {
- current = 0;
- }
-
- if (++minusOne == 3) {
- minusOne = 0;
- }
-
- if (++minusTwo == 3) {
- minusTwo = 0;
- }
- }
- }
-
- private void reset() {
- Arrays.fill(history, 0.0f);
- }
- }
-
- private static class Coefficients {
- private final float beta;
- private final float alpha;
- private final float gamma;
-
- private Coefficients(float beta, float alpha, float gamma) {
- this.beta = beta;
- this.alpha = alpha;
- this.gamma = gamma;
- }
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/filter/equalizer/EqualizerConfiguration.java b/src/main/java/com/sedmelluq/discord/lavaplayer/filter/equalizer/EqualizerConfiguration.java
deleted file mode 100644
index 4844936..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/filter/equalizer/EqualizerConfiguration.java
+++ /dev/null
@@ -1,44 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.filter.equalizer;
-
-/**
- * Holder of equalizer configuration.
- */
-public class EqualizerConfiguration {
- protected final float[] bandMultipliers;
-
- /**
- * @param bandMultipliers The band multiplier values. Keeps using this array internally, so the values can be changed
- * externally.
- */
- public EqualizerConfiguration(float[] bandMultipliers) {
- this.bandMultipliers = bandMultipliers;
- }
-
- /**
- * @param band The index of the band. If this is not a valid band index, the method has no effect.
- * @param value The multiplier for this band. Default value is 0. Valid values are from -0.25 to 1. -0.25 means that
- * the given frequency is completely muted and 0.25 means it is doubled. Note that this may change the
- * volume of the output.
- */
- public void setGain(int band, float value) {
- if (isValidBand(band)) {
- bandMultipliers[band] = Math.max(Math.min(value, 1.0f), -0.25f);
- }
- }
-
- /**
- * @param band The index of the band.
- * @return The multiplier for this band. Default value is 0.
- */
- public float getGain(int band) {
- if (isValidBand(band)) {
- return bandMultipliers[band];
- } else {
- return 0.0f;
- }
- }
-
- private boolean isValidBand(int band) {
- return band >= 0 && band < bandMultipliers.length;
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/filter/equalizer/EqualizerFactory.java b/src/main/java/com/sedmelluq/discord/lavaplayer/filter/equalizer/EqualizerFactory.java
deleted file mode 100644
index 898c836..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/filter/equalizer/EqualizerFactory.java
+++ /dev/null
@@ -1,32 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.filter.equalizer;
-
-import com.sedmelluq.discord.lavaplayer.filter.AudioFilter;
-import com.sedmelluq.discord.lavaplayer.filter.PcmFilterFactory;
-import com.sedmelluq.discord.lavaplayer.filter.UniversalPcmAudioFilter;
-import com.sedmelluq.discord.lavaplayer.format.AudioDataFormat;
-import com.sedmelluq.discord.lavaplayer.track.AudioTrack;
-
-import java.util.Collections;
-import java.util.List;
-
-/**
- * PCM filter factory which creates a single {@link Equalizer} filter for every track. Useful in case the equalizer is
- * the only custom filter used.
- */
-public class EqualizerFactory extends EqualizerConfiguration implements PcmFilterFactory {
- /**
- * Creates a new instance no gains applied initially.
- */
- public EqualizerFactory() {
- super(new float[Equalizer.BAND_COUNT]);
- }
-
- @Override
- public ListframeSize * channels * 2
. Buffer position and limit are ignored and not
- * updated.
- * @param flush Whether all the buffered data should be flushed, set to true if no more input is expected.
- * @return True if the frame buffer was filled, false if there was not enough input for decoding a full frame.
- * @throws IllegalArgumentException If the buffer is not a DirectBuffer.
- * @throws IllegalStateException If the decoding library returns an error other than running out of input data.
- * @throws IllegalStateException If the decoder has already been closed.
- */
- public synchronized boolean decode(ShortBuffer buffer, boolean flush) {
- checkNotReleased();
-
- if (!buffer.isDirect()) {
- throw new IllegalArgumentException("Buffer argument must be a direct buffer.");
- }
-
- int result = library.decode(instance, buffer, buffer.capacity(), flush);
- if (result != 0 && result != ERROR_NOT_ENOUGH_BITS) {
- throw new IllegalStateException("Error from decoder " + result);
- }
-
- return result == 0;
- }
-
- /**
- * @return Correct stream info. The values passed to configure method do not account for SBR and PS and detecting
- * these is a part of the decoding process. If there was not enough input for decoding a full frame, null is
- * returned.
- * @throws IllegalStateException If the decoder result produced an unexpected error.
- */
- public synchronized StreamInfo resolveStreamInfo() {
- checkNotReleased();
-
- int result = library.decode(instance, NO_BUFFER, 0, false);
-
- if (result == ERROR_NOT_ENOUGH_BITS) {
- return null;
- } else if (result != ERROR_OUTPUT_BUFFER_TOO_SMALL) {
- throw new IllegalStateException("Expected decoding to halt, got: " + result);
- }
-
- long combinedValue = library.getStreamInfo(instance);
- if (combinedValue == 0) {
- throw new IllegalStateException("Native library failed to detect stream info.");
- }
-
- return new StreamInfo(
- (int) (combinedValue >>> 32L),
- (int) (combinedValue & 0xFFFF),
- (int) ((combinedValue >>> 16L) & 0xFFFF)
- );
- }
-
- @Override
- protected void freeResources() {
- library.destroy(instance);
- }
-
- /**
- * AAC stream information.
- */
- public static class StreamInfo {
- /**
- * Sample rate (adjusted to SBR) of the current stream.
- */
- public final int sampleRate;
- /**
- * Channel count (adjusted to PS) of the current stream.
- */
- public final int channels;
- /**
- * Number of samples per channel per frame.
- */
- public final int frameSize;
-
- /**
- * @param sampleRate Sample rate (adjusted to SBR) of the current stream.
- * @param channels Channel count (adjusted to PS) of the current stream.
- * @param frameSize Number of samples per channel per frame.
- */
- public StreamInfo(int sampleRate, int channels, int frameSize) {
- this.sampleRate = sampleRate;
- this.channels = channels;
- this.frameSize = frameSize;
- }
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/natives/aac/AacDecoderLibrary.java b/src/main/java/com/sedmelluq/discord/lavaplayer/natives/aac/AacDecoderLibrary.java
deleted file mode 100644
index 2b9e76d..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/natives/aac/AacDecoderLibrary.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.natives.aac;
-
-import com.sedmelluq.discord.lavaplayer.natives.ConnectorNativeLibLoader;
-
-import java.nio.ByteBuffer;
-import java.nio.ShortBuffer;
-
-class AacDecoderLibrary {
- private AacDecoderLibrary() {
-
- }
-
- static AacDecoderLibrary getInstance() {
- ConnectorNativeLibLoader.loadConnectorLibrary();
- return new AacDecoderLibrary();
- }
-
- native long create(int transportType);
-
- native void destroy(long instance);
-
- native int configure(long instance, long bufferData);
-
- native int fill(long instance, ByteBuffer directBuffer, int offset, int length);
-
- native int decode(long instance, ShortBuffer directBuffer, int length, boolean flush);
-
- native long getStreamInfo(long instance);
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/natives/mp3/Mp3Decoder.java b/src/main/java/com/sedmelluq/discord/lavaplayer/natives/mp3/Mp3Decoder.java
deleted file mode 100644
index 7195c80..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/natives/mp3/Mp3Decoder.java
+++ /dev/null
@@ -1,257 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.natives.mp3;
-
-import com.sedmelluq.lava.common.natives.NativeResourceHolder;
-
-import java.nio.ByteBuffer;
-import java.nio.ShortBuffer;
-
-/**
- * A wrapper around the native methods of OpusDecoderLibrary.
- */
-public class Mp3Decoder extends NativeResourceHolder {
- public static final long MPEG1_SAMPLES_PER_FRAME = 1152;
- public static final long MPEG2_SAMPLES_PER_FRAME = 576;
- public static final int HEADER_SIZE = 4;
-
- private static final int ERROR_NEED_MORE = -10;
- private static final int ERROR_NEW_FORMAT = -11;
-
- private final Mp3DecoderLibrary library;
- private final long instance;
-
- /**
- * Create a new instance of mp3 decoder
- */
- public Mp3Decoder() {
- library = Mp3DecoderLibrary.getInstance();
- instance = library.create();
-
- if (instance == 0) {
- throw new IllegalStateException("Failed to create a decoder instance");
- }
- }
-
- /**
- * Encode the input buffer to output.
- *
- * @param directInput Input byte buffer
- * @param directOutput Output sample buffer
- * @return Number of samples written to the output
- */
- public int decode(ByteBuffer directInput, ShortBuffer directOutput) {
- checkNotReleased();
-
- if (!directInput.isDirect() || !directOutput.isDirect()) {
- throw new IllegalArgumentException("Arguments must be direct buffers.");
- }
-
- int result = library.decode(instance, directInput, directInput.remaining(), directOutput, directOutput.remaining() * 2);
-
- while (result == ERROR_NEW_FORMAT) {
- result = library.decode(instance, directInput, 0, directOutput, directOutput.remaining() * 2);
- }
-
- if (result == ERROR_NEED_MORE) {
- result = 0;
- } else if (result < 0) {
- throw new IllegalStateException("Decoding failed with error " + result);
- }
-
- directOutput.position(result / 2);
- directOutput.flip();
-
- return result / 2;
- }
-
- @Override
- protected void freeResources() {
- library.destroy(instance);
- }
-
- private static int getFrameBitRate(byte[] buffer, int offset) {
- return isMpegVersionOne(buffer, offset) ? getFrameBitRateV1(buffer, offset) : getFrameBitRateV2(buffer, offset);
- }
-
- private static int getFrameBitRateV1(byte[] buffer, int offset) {
- switch ((buffer[offset + 2] & 0xF0) >>> 4) {
- case 1:
- return 32000;
- case 2:
- return 40000;
- case 3:
- return 48000;
- case 4:
- return 56000;
- case 5:
- return 64000;
- case 6:
- return 80000;
- case 7:
- return 96000;
- case 8:
- return 112000;
- case 9:
- return 128000;
- case 10:
- return 160000;
- case 11:
- return 192000;
- case 12:
- return 224000;
- case 13:
- return 256000;
- case 14:
- return 320000;
- default:
- throw new IllegalArgumentException("Not valid bitrate");
- }
- }
-
- private static int getFrameBitRateV2(byte[] buffer, int offset) {
- switch ((buffer[offset + 2] & 0xF0) >>> 4) {
- case 1:
- return 8000;
- case 2:
- return 16000;
- case 3:
- return 24000;
- case 4:
- return 32000;
- case 5:
- return 40000;
- case 6:
- return 48000;
- case 7:
- return 56000;
- case 8:
- return 64000;
- case 9:
- return 80000;
- case 10:
- return 96000;
- case 11:
- return 112000;
- case 12:
- return 128000;
- case 13:
- return 140000;
- case 14:
- return 160000;
- default:
- throw new IllegalArgumentException("Not valid bitrate");
- }
- }
-
- private static int calculateFrameSize(boolean isVersionOne, int bitRate, int sampleRate, boolean hasPadding) {
- return (isVersionOne ? 144 : 72) * bitRate / sampleRate + (hasPadding ? 1 : 0);
- }
-
- /**
- * Get the sample rate for the current frame
- *
- * @param buffer Buffer which contains the frame header
- * @param offset Offset to the frame header
- * @return Sample rate
- */
- public static int getFrameSampleRate(byte[] buffer, int offset) {
- return isMpegVersionOne(buffer, offset) ? getFrameSampleRateV1(buffer, offset) : getFrameSampleRateV2(buffer, offset);
- }
-
- /**
- * Get the number of channels in the current frame
- *
- * @param buffer Buffer which contains the frame header
- * @param offset Offset to the frame header
- * @return Number of channels
- */
- public static int getFrameChannelCount(byte[] buffer, int offset) {
- return (buffer[offset + 3] & 0xC0) == 0xC0 ? 1 : 2;
- }
-
- private static int getFrameSampleRateV1(byte[] buffer, int offset) {
- switch ((buffer[offset + 2] & 0x0C) >>> 2) {
- case 0:
- return 44100;
- case 1:
- return 48000;
- case 2:
- return 32000;
- default:
- throw new IllegalArgumentException("Not valid sample rate");
- }
- }
-
- private static int getFrameSampleRateV2(byte[] buffer, int offset) {
- switch ((buffer[offset + 2] & 0x0C) >>> 2) {
- case 0:
- return 22050;
- case 1:
- return 24000;
- case 2:
- return 16000;
- default:
- throw new IllegalArgumentException("Not valid sample rate");
- }
- }
-
- /**
- * Get the frame size of the specified 4 bytes
- *
- * @param buffer Buffer which contains the frame header
- * @param offset Offset to the frame header
- * @return Frame size, or zero if not a valid frame header
- */
- public static int getFrameSize(byte[] buffer, int offset) {
- int first = buffer[offset] & 0xFF;
- int second = buffer[offset + 1] & 0xFF;
- int third = buffer[offset + 2] & 0xFF;
-
- boolean invalid = (first != 0xFF || (second & 0xE0) != 0xE0) // Frame sync does not match
- || (second & 0x10) != 0x10 // Not MPEG-1 nor MPEG-2, not dealing with this stuff
- || (second & 0x06) != 0x02 // Not Layer III, not dealing with this stuff
- || (third & 0xF0) == 0x00 // No defined bitrate
- || (third & 0xF0) == 0xF0 // Invalid bitrate
- || (third & 0x0C) == 0x0C; // Invalid sampling rate
-
- if (invalid) {
- return 0;
- }
-
- int bitRate = getFrameBitRate(buffer, offset);
- int sampleRate = getFrameSampleRate(buffer, offset);
- boolean hasPadding = (third & 0x02) != 0;
-
- return calculateFrameSize(isMpegVersionOne(buffer, offset), bitRate, sampleRate, hasPadding);
- }
-
- /**
- * Get the average frame size based on this frame
- *
- * @param buffer Buffer which contains the frame header
- * @param offset Offset to the frame header
- * @return Average frame size, assuming CBR
- */
- public static double getAverageFrameSize(byte[] buffer, int offset) {
- int bitRate = getFrameBitRate(buffer, offset);
- int sampleRate = getFrameSampleRate(buffer, offset);
-
- return (isMpegVersionOne(buffer, offset) ? 144.0 : 72.0) * bitRate / sampleRate;
- }
-
- /**
- * @param buffer Buffer which contains the frame header
- * @param offset Offset to the frame header
- * @return Number of samples per frame.
- */
- public static long getSamplesPerFrame(byte[] buffer, int offset) {
- return isMpegVersionOne(buffer, offset) ? MPEG1_SAMPLES_PER_FRAME : MPEG2_SAMPLES_PER_FRAME;
- }
-
- private static boolean isMpegVersionOne(byte[] buffer, int offset) {
- return (buffer[offset + 1] & 0x08) == 0x08;
- }
-
- public static int getMaximumFrameSize() {
- return calculateFrameSize(true, 320000, 32000, true);
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/natives/mp3/Mp3DecoderLibrary.java b/src/main/java/com/sedmelluq/discord/lavaplayer/natives/mp3/Mp3DecoderLibrary.java
deleted file mode 100644
index 91e1dbe..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/natives/mp3/Mp3DecoderLibrary.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.natives.mp3;
-
-import com.sedmelluq.discord.lavaplayer.natives.ConnectorNativeLibLoader;
-
-import java.nio.ByteBuffer;
-import java.nio.ShortBuffer;
-
-class Mp3DecoderLibrary {
- private Mp3DecoderLibrary() {
-
- }
-
- static Mp3DecoderLibrary getInstance() {
- ConnectorNativeLibLoader.loadConnectorLibrary();
- return new Mp3DecoderLibrary();
- }
-
- native long create();
-
- native void destroy(long instance);
-
- native int decode(long instance, ByteBuffer directInput, int inputLength, ShortBuffer directOutput, int outputLengthInBytes);
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/natives/opus/OpusDecoder.java b/src/main/java/com/sedmelluq/discord/lavaplayer/natives/opus/OpusDecoder.java
deleted file mode 100644
index 8614cab..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/natives/opus/OpusDecoder.java
+++ /dev/null
@@ -1,114 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.natives.opus;
-
-import com.sedmelluq.lava.common.natives.NativeResourceHolder;
-
-import java.nio.ByteBuffer;
-import java.nio.ShortBuffer;
-
-/**
- * A wrapper around the native methods of OpusDecoderLibrary.
- */
-public class OpusDecoder extends NativeResourceHolder {
- private final OpusDecoderLibrary library;
- private final long instance;
- private final int channels;
-
- /**
- * @param sampleRate Input sample rate
- * @param channels Channel count
- */
- public OpusDecoder(int sampleRate, int channels) {
- library = OpusDecoderLibrary.getInstance();
- instance = library.create(sampleRate, channels);
- this.channels = channels;
-
- if (instance == 0) {
- throw new IllegalStateException("Failed to create a decoder instance with sample rate " +
- sampleRate + " and channel count " + channels);
- }
- }
-
- /**
- * Encode the input buffer to output.
- *
- * @param directInput Input byte buffer
- * @param directOutput Output sample buffer
- * @return Number of bytes written to the output
- */
- public int decode(ByteBuffer directInput, ShortBuffer directOutput) {
- checkNotReleased();
-
- if (!directInput.isDirect() || !directOutput.isDirect()) {
- throw new IllegalArgumentException("Arguments must be direct buffers.");
- }
-
- directOutput.clear();
- int result = library.decode(instance, directInput, directInput.remaining(), directOutput, directOutput.remaining() / channels);
-
- if (result < 0) {
- throw new IllegalStateException("Decoding failed with error " + result);
- }
-
- directOutput.position(result * channels);
- directOutput.flip();
-
- return result;
- }
-
- @Override
- protected void freeResources() {
- library.destroy(instance);
- }
-
- /**
- * Get the frame size from an opus packet
- *
- * @param sampleRate The sample rate of the packet
- * @param buffer The buffer containing the packet
- * @param offset Packet offset in the buffer
- * @param length Packet length in the buffer
- * @return Frame size
- */
- public static int getPacketFrameSize(int sampleRate, byte[] buffer, int offset, int length) {
- if (length < 1) {
- return 0;
- }
-
- int frameCount = getPacketFrameCount(buffer, offset, length);
- if (frameCount < 0) {
- return 0;
- }
-
- int samples = frameCount * getPacketSamplesPerFrame(sampleRate, buffer[offset]);
- if (samples * 25 > sampleRate * 3) {
- return 0;
- }
-
- return samples;
- }
-
- private static int getPacketFrameCount(byte[] buffer, int offset, int length) {
- switch (buffer[offset] & 0x03) {
- case 0:
- return 1;
- case 3:
- return length < 2 ? -1 : buffer[offset + 1] & 0x3F;
- default:
- return 2;
- }
- }
-
- private static int getPacketSamplesPerFrame(int frequency, int firstByte) {
- int shiftBits = (firstByte >> 3) & 0x03;
-
- if ((firstByte & 0x80) != 0) {
- return (frequency << shiftBits) / 400;
- } else if ((firstByte & 0x60) == 0x60) {
- return (firstByte & 0x08) != 0 ? frequency / 50 : frequency / 100;
- } else if (shiftBits == 3) {
- return frequency * 60 / 1000;
- } else {
- return (frequency << shiftBits) / 100;
- }
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/natives/opus/OpusDecoderLibrary.java b/src/main/java/com/sedmelluq/discord/lavaplayer/natives/opus/OpusDecoderLibrary.java
deleted file mode 100644
index 93a3a9e..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/natives/opus/OpusDecoderLibrary.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.natives.opus;
-
-import com.sedmelluq.discord.lavaplayer.natives.ConnectorNativeLibLoader;
-
-import java.nio.ByteBuffer;
-import java.nio.ShortBuffer;
-
-class OpusDecoderLibrary {
- private OpusDecoderLibrary() {
-
- }
-
- static OpusDecoderLibrary getInstance() {
- ConnectorNativeLibLoader.loadConnectorLibrary();
- return new OpusDecoderLibrary();
- }
-
- native long create(int sampleRate, int channels);
-
- native void destroy(long instance);
-
- native int decode(long instance, ByteBuffer directInput, int inputSize, ShortBuffer directOutput, int frameSize);
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/natives/opus/OpusEncoder.java b/src/main/java/com/sedmelluq/discord/lavaplayer/natives/opus/OpusEncoder.java
deleted file mode 100644
index e4ae12e..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/natives/opus/OpusEncoder.java
+++ /dev/null
@@ -1,61 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.natives.opus;
-
-import com.sedmelluq.lava.common.natives.NativeResourceHolder;
-
-import java.nio.ByteBuffer;
-import java.nio.ShortBuffer;
-
-/**
- * A wrapper around the native methods of OpusEncoderLibrary.
- */
-public class OpusEncoder extends NativeResourceHolder {
- private final OpusEncoderLibrary library;
- private final long instance;
-
- /**
- * @param sampleRate Input sample rate
- * @param channels Channel count
- * @param quality Encoding quality (0-10)
- */
- public OpusEncoder(int sampleRate, int channels, int quality) {
- library = OpusEncoderLibrary.getInstance();
- instance = library.create(sampleRate, channels, OpusEncoderLibrary.APPLICATION_AUDIO, quality);
-
- if (instance == 0) {
- throw new IllegalStateException("Failed to create an encoder instance");
- }
- }
-
- /**
- * Encode the input buffer to output.
- *
- * @param directInput Input sample buffer
- * @param frameSize Number of samples per channel
- * @param directOutput Output byte buffer
- * @return Number of bytes written to the output
- */
- public int encode(ShortBuffer directInput, int frameSize, ByteBuffer directOutput) {
- checkNotReleased();
-
- if (!directInput.isDirect() || !directOutput.isDirect()) {
- throw new IllegalArgumentException("Arguments must be direct buffers.");
- }
-
- directOutput.clear();
- int result = library.encode(instance, directInput, frameSize, directOutput, directOutput.capacity());
-
- if (result < 0) {
- throw new IllegalStateException("Encoding failed with error " + result);
- }
-
- directOutput.position(result);
- directOutput.flip();
-
- return result;
- }
-
- @Override
- protected void freeResources() {
- library.destroy(instance);
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/natives/opus/OpusEncoderLibrary.java b/src/main/java/com/sedmelluq/discord/lavaplayer/natives/opus/OpusEncoderLibrary.java
deleted file mode 100644
index b19a47f..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/natives/opus/OpusEncoderLibrary.java
+++ /dev/null
@@ -1,25 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.natives.opus;
-
-import com.sedmelluq.discord.lavaplayer.natives.ConnectorNativeLibLoader;
-
-import java.nio.ByteBuffer;
-import java.nio.ShortBuffer;
-
-class OpusEncoderLibrary {
- static final int APPLICATION_AUDIO = 2049;
-
- private OpusEncoderLibrary() {
-
- }
-
- static OpusEncoderLibrary getInstance() {
- ConnectorNativeLibLoader.loadConnectorLibrary();
- return new OpusEncoderLibrary();
- }
-
- native long create(int sampleRate, int channels, int application, int quality);
-
- native void destroy(long instance);
-
- native int encode(long instance, ShortBuffer directInput, int frameSize, ByteBuffer directOutput, int outputCapacity);
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/natives/samplerate/SampleRateConverter.java b/src/main/java/com/sedmelluq/discord/lavaplayer/natives/samplerate/SampleRateConverter.java
deleted file mode 100644
index 13b1133..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/natives/samplerate/SampleRateConverter.java
+++ /dev/null
@@ -1,94 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.natives.samplerate;
-
-import com.sedmelluq.lava.common.natives.NativeResourceHolder;
-
-/**
- * Sample rate converter backed by libsamplerate
- */
-public class SampleRateConverter extends NativeResourceHolder {
- private final SampleRateLibrary library;
- private final double ratio;
- private final long instance;
-
- /**
- * @param type Resampling type
- * @param channels Number of channels
- * @param sourceRate Source sample rate
- * @param targetRate Target sample rate
- */
- public SampleRateConverter(ResamplingType type, int channels, int sourceRate, int targetRate) {
- ratio = (double) targetRate / (double) sourceRate;
- library = SampleRateLibrary.getInstance();
- instance = library.create(type.ordinal(), channels);
-
- if (instance == 0) {
- throw new IllegalStateException("Could not create an instance of sample rate converter.");
- }
- }
-
- /**
- * Reset the converter, makes sure previous data does not affect next incoming data
- */
- public void reset() {
- checkNotReleased();
-
- library.reset(instance);
- }
-
- /**
- * @param input Input buffer
- * @param inputOffset Offset for input buffer
- * @param inputLength Length for input buffer
- * @param output Output buffer
- * @param outputOffset Offset for output buffer
- * @param outputLength Length for output buffer
- * @param endOfInput If this is the last piece of input
- * @param progress Instance that is filled with the progress
- */
- public void process(float[] input, int inputOffset, int inputLength, float[] output, int outputOffset, int outputLength, boolean endOfInput, Progress progress) {
- checkNotReleased();
-
- int error = library.process(instance, input, inputOffset, inputLength, output, outputOffset, outputLength, endOfInput, ratio, progress.fields);
-
- if (error != 0) {
- throw new RuntimeException("Failed to convert sample rate, error " + error + ".");
- }
- }
-
- @Override
- protected void freeResources() {
- library.destroy(instance);
- }
-
- /**
- * Progress of converting one piece of data
- */
- public static class Progress {
- private final int[] fields = new int[2];
-
- /**
- * @return Number of samples used from the input buffer
- */
- public int getInputUsed() {
- return fields[0];
- }
-
- /**
- * @return Number of samples written to the output buffer
- */
- public int getOutputGenerated() {
- return fields[1];
- }
- }
-
- /**
- * Available resampling types
- */
- public enum ResamplingType {
- SINC_BEST_QUALITY,
- SINC_MEDIUM_QUALITY,
- SINC_FASTEST,
- ZERO_ORDER_HOLD,
- LINEAR
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/natives/samplerate/SampleRateLibrary.java b/src/main/java/com/sedmelluq/discord/lavaplayer/natives/samplerate/SampleRateLibrary.java
deleted file mode 100644
index ece33ed..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/natives/samplerate/SampleRateLibrary.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.natives.samplerate;
-
-import com.sedmelluq.discord.lavaplayer.natives.ConnectorNativeLibLoader;
-
-class SampleRateLibrary {
- private SampleRateLibrary() {
-
- }
-
- static SampleRateLibrary getInstance() {
- ConnectorNativeLibLoader.loadConnectorLibrary();
- return new SampleRateLibrary();
- }
-
- native long create(int type, int channels);
-
- native void destroy(long instance);
-
- native void reset(long instance);
-
- native int process(long instance, float[] in, int inOffset, int inLength, float[] out, int outOffset, int outLength, boolean endOfInput, double sourceRatio, int[] progress);
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/natives/statistics/CpuStatistics.java b/src/main/java/com/sedmelluq/discord/lavaplayer/natives/statistics/CpuStatistics.java
deleted file mode 100644
index 93043eb..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/natives/statistics/CpuStatistics.java
+++ /dev/null
@@ -1,106 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.natives.statistics;
-
-import static com.sedmelluq.discord.lavaplayer.natives.statistics.CpuStatisticsLibrary.Timings.*;
-
-/**
- * Provides information about system CPU usage.
- */
-public class CpuStatistics {
- private static final int TIMINGS_LENGTH = CpuStatisticsLibrary.Timings.class.getEnumConstants().length;
-
- private final CpuStatisticsLibrary library = CpuStatisticsLibrary.getInstance();
-
- /**
- * @return Absolute CPU timings at the current moment
- */
- public Times getSystemTimes() {
- long[] values = new long[TIMINGS_LENGTH];
- library.getSystemTimes(values);
-
- return new Times(
- values[SYSTEM_TOTAL.id()],
- values[SYSTEM_USER.id()],
- values[SYSTEM_KERNEL.id()],
- values[PROCESS_USER.id()],
- values[PROCESS_KERNEL.id()]
- );
- }
-
- /**
- * CPU timings
- */
- public static class Times {
- /**
- * Total amount of CPU time since system start
- */
- public final long systemTotal;
- /**
- * Total amount of CPU time spent in user mode
- */
- public final long systemUser;
- /**
- * Total amount of CPU time spent in kernel mode
- */
- public final long systemKernel;
- /**
- * Total amount of CPU time this process has spent in user mode
- */
- public final long processUser;
- /**
- * Total amount of CPU time this process has spent in kernel mode
- */
- public final long processKernel;
-
- /**
- * @param systemTotal Total amount of CPU time since system start
- * @param systemUser Total amount of CPU time spent in user mode
- * @param systemKernel Total amount of CPU time spent in kernel mode
- * @param processUser Total amount of CPU time this process has spent in user mode
- * @param processKernel Total amount of CPU time this process has spent in kernel mode
- */
- public Times(long systemTotal, long systemUser, long systemKernel, long processUser, long processKernel) {
- this.systemTotal = systemTotal;
- this.systemUser = systemUser;
- this.systemKernel = systemKernel;
- this.processUser = processUser;
- this.processKernel = processKernel;
- }
-
- /**
- * @return The ratio of used CPU time to total CPU time
- */
- public float getSystemUsage() {
- if (systemTotal == 0) {
- return 0.0f;
- } else {
- return (float) (systemUser + systemKernel) / systemTotal;
- }
- }
-
- /**
- * @return The ratio of used CPU time by current process to total CPU time
- */
- public float getProcessUsage() {
- if (systemTotal == 0) {
- return 0.0f;
- } else {
- return (float) (processUser + processKernel) / systemTotal;
- }
- }
- }
-
- /**
- * @param old Older timing values
- * @param current Newer timing values
- * @return Difference between two timings
- */
- public static Times diff(Times old, Times current) {
- return new Times(
- current.systemTotal - old.systemTotal,
- current.systemUser - old.systemUser,
- current.systemKernel - old.systemKernel,
- current.processUser - old.processUser,
- current.processKernel - old.processKernel
- );
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/natives/statistics/CpuStatisticsLibrary.java b/src/main/java/com/sedmelluq/discord/lavaplayer/natives/statistics/CpuStatisticsLibrary.java
deleted file mode 100644
index d7fe6f1..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/natives/statistics/CpuStatisticsLibrary.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.natives.statistics;
-
-import com.sedmelluq.discord.lavaplayer.natives.ConnectorNativeLibLoader;
-
-class CpuStatisticsLibrary {
- private CpuStatisticsLibrary() {
-
- }
-
- static CpuStatisticsLibrary getInstance() {
- ConnectorNativeLibLoader.loadConnectorLibrary();
- return new CpuStatisticsLibrary();
- }
-
- native void getSystemTimes(long[] timingArray);
-
- enum Timings {
- SYSTEM_TOTAL,
- SYSTEM_USER,
- SYSTEM_KERNEL,
- PROCESS_USER,
- PROCESS_KERNEL;
-
- int id() {
- return ordinal();
- }
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/natives/vorbis/VorbisDecoder.java b/src/main/java/com/sedmelluq/discord/lavaplayer/natives/vorbis/VorbisDecoder.java
deleted file mode 100644
index 5892da7..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/natives/vorbis/VorbisDecoder.java
+++ /dev/null
@@ -1,101 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.natives.vorbis;
-
-import com.sedmelluq.lava.common.natives.NativeResourceHolder;
-
-import java.nio.ByteBuffer;
-
-/**
- * A wrapper around the native methods of AacDecoder, which uses libvorbis native library.
- */
-public class VorbisDecoder extends NativeResourceHolder {
- private final VorbisDecoderLibrary library;
- private final long instance;
- private int channelCount = 0;
-
- /**
- * Create an instance.
- */
- public VorbisDecoder() {
- library = VorbisDecoderLibrary.getInstance();
- instance = library.create();
- }
-
- /**
- * Initialize the decoder by passing in identification and setup header data. See
- * https://xiph.org/vorbis/doc/Vorbis_I_spec.html#x1-170001.2.6 for definitions. The comment header is not required as
- * it is not actually used for decoding setup.
- *
- * @param infoBuffer Identification header, including the 'vorbis' string.
- * @param setupBuffer Setup header (also known as codebook header), including the 'vorbis' string.
- */
- public void initialise(ByteBuffer infoBuffer, ByteBuffer setupBuffer) {
- checkNotReleased();
-
- if (!infoBuffer.isDirect() || !setupBuffer.isDirect()) {
- throw new IllegalArgumentException("Buffer argument must be a direct buffer.");
- }
-
- if (!library.initialise(instance, infoBuffer, infoBuffer.position(), infoBuffer.remaining(), setupBuffer,
- setupBuffer.position(), setupBuffer.remaining())) {
-
- throw new IllegalStateException("Could not initialise library.");
- }
-
- channelCount = library.getChannelCount(instance);
- }
-
- /**
- * Get the number of channels, valid only after initialisation.
- *
- * @return Number of channels
- */
- public int getChannelCount() {
- return channelCount;
- }
-
- /**
- * Provide input for the decoder
- *
- * @param buffer Buffer with the input
- */
- public void input(ByteBuffer buffer) {
- checkNotReleased();
-
- if (!buffer.isDirect()) {
- throw new IllegalArgumentException("Buffer argument must be a direct buffer.");
- }
-
- int result = library.input(instance, buffer, buffer.position(), buffer.remaining());
- buffer.position(buffer.position() + buffer.remaining());
-
- if (result != 0) {
- throw new IllegalStateException("Passing input failed with error " + result + ".");
- }
- }
-
- /**
- * Fetch output from the decoder
- *
- * @param channels Channel buffers to fetch the output to
- * @return The number of samples fetched for each channel
- */
- public int output(float[][] channels) {
- checkNotReleased();
-
- if (channels.length != channelCount) {
- throw new IllegalStateException("Invalid channel float buffer length");
- }
-
- int result = library.output(instance, channels, channels[0].length);
- if (result < 0) {
- throw new IllegalStateException("Retrieving output failed");
- }
-
- return result;
- }
-
- @Override
- protected void freeResources() {
- library.destroy(instance);
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/natives/vorbis/VorbisDecoderLibrary.java b/src/main/java/com/sedmelluq/discord/lavaplayer/natives/vorbis/VorbisDecoderLibrary.java
deleted file mode 100644
index f3e4ab9..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/natives/vorbis/VorbisDecoderLibrary.java
+++ /dev/null
@@ -1,29 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.natives.vorbis;
-
-import com.sedmelluq.discord.lavaplayer.natives.ConnectorNativeLibLoader;
-
-import java.nio.ByteBuffer;
-
-class VorbisDecoderLibrary {
- private VorbisDecoderLibrary() {
-
- }
-
- static VorbisDecoderLibrary getInstance() {
- ConnectorNativeLibLoader.loadConnectorLibrary();
- return new VorbisDecoderLibrary();
- }
-
- native long create();
-
- native void destroy(long instance);
-
- native boolean initialise(long instance, ByteBuffer infoBuffer, int infoOffset, int infoLength,
- ByteBuffer setupBuffer, int setupOffset, int setupLength);
-
- native int getChannelCount(long instance);
-
- native int input(long instance, ByteBuffer directBuffer, int offset, int length);
-
- native int output(long instance, float[][] channels, int length);
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/player/AudioConfiguration.java b/src/main/java/com/sedmelluq/discord/lavaplayer/player/AudioConfiguration.java
deleted file mode 100644
index d8ed1c4..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/player/AudioConfiguration.java
+++ /dev/null
@@ -1,92 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.player;
-
-import com.sedmelluq.discord.lavaplayer.format.AudioDataFormat;
-import com.sedmelluq.discord.lavaplayer.format.StandardAudioDataFormats;
-import com.sedmelluq.discord.lavaplayer.track.playback.AllocatingAudioFrameBuffer;
-import com.sedmelluq.discord.lavaplayer.track.playback.AudioFrameBufferFactory;
-
-/**
- * Configuration for audio processing.
- */
-public class AudioConfiguration {
- public static final int OPUS_QUALITY_MAX = 10;
-
- private volatile ResamplingQuality resamplingQuality;
- private volatile int opusEncodingQuality;
- private volatile AudioDataFormat outputFormat;
- private volatile boolean filterHotSwapEnabled;
- private volatile AudioFrameBufferFactory frameBufferFactory;
-
- /**
- * Create a new configuration with default values.
- */
- public AudioConfiguration() {
- resamplingQuality = ResamplingQuality.LOW;
- opusEncodingQuality = OPUS_QUALITY_MAX;
- outputFormat = StandardAudioDataFormats.DISCORD_OPUS;
- filterHotSwapEnabled = false;
- frameBufferFactory = AllocatingAudioFrameBuffer::new;
- }
-
- public ResamplingQuality getResamplingQuality() {
- return resamplingQuality;
- }
-
- public void setResamplingQuality(ResamplingQuality resamplingQuality) {
- this.resamplingQuality = resamplingQuality;
- }
-
- public int getOpusEncodingQuality() {
- return opusEncodingQuality;
- }
-
- public void setOpusEncodingQuality(int opusEncodingQuality) {
- this.opusEncodingQuality = Math.max(0, Math.min(opusEncodingQuality, OPUS_QUALITY_MAX));
- }
-
- public AudioDataFormat getOutputFormat() {
- return outputFormat;
- }
-
- public void setOutputFormat(AudioDataFormat outputFormat) {
- this.outputFormat = outputFormat;
- }
-
- public boolean isFilterHotSwapEnabled() {
- return filterHotSwapEnabled;
- }
-
- public void setFilterHotSwapEnabled(boolean filterHotSwapEnabled) {
- this.filterHotSwapEnabled = filterHotSwapEnabled;
- }
-
- public AudioFrameBufferFactory getFrameBufferFactory() {
- return frameBufferFactory;
- }
-
- public void setFrameBufferFactory(AudioFrameBufferFactory frameBufferFactory) {
- this.frameBufferFactory = frameBufferFactory;
- }
-
- /**
- * @return A copy of this configuration.
- */
- public AudioConfiguration copy() {
- AudioConfiguration copy = new AudioConfiguration();
- copy.setResamplingQuality(resamplingQuality);
- copy.setOpusEncodingQuality(opusEncodingQuality);
- copy.setOutputFormat(outputFormat);
- copy.setFilterHotSwapEnabled(filterHotSwapEnabled);
- copy.setFrameBufferFactory(frameBufferFactory);
- return copy;
- }
-
- /**
- * Resampling quality levels
- */
- public enum ResamplingQuality {
- HIGH,
- MEDIUM,
- LOW
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/player/AudioLoadResultHandler.java b/src/main/java/com/sedmelluq/discord/lavaplayer/player/AudioLoadResultHandler.java
deleted file mode 100644
index 8ef4c95..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/player/AudioLoadResultHandler.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.player;
-
-import com.sedmelluq.discord.lavaplayer.tools.FriendlyException;
-import com.sedmelluq.discord.lavaplayer.track.AudioPlaylist;
-import com.sedmelluq.discord.lavaplayer.track.AudioTrack;
-
-/**
- * Handles the result of loading an item from an audio player manager.
- */
-public interface AudioLoadResultHandler {
- /**
- * Called when the requested item is a track and it was successfully loaded.
- *
- * @param track The loaded track
- */
- void trackLoaded(AudioTrack track);
-
- /**
- * Called when the requested item is a playlist and it was successfully loaded.
- *
- * @param playlist The loaded playlist
- */
- void playlistLoaded(AudioPlaylist playlist);
-
- /**
- * Called when there were no items found by the specified identifier.
- */
- void noMatches();
-
- /**
- * Called when loading an item failed with an exception.
- *
- * @param exception The exception that was thrown
- */
- void loadFailed(FriendlyException exception);
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/player/AudioPlayer.java b/src/main/java/com/sedmelluq/discord/lavaplayer/player/AudioPlayer.java
deleted file mode 100644
index 3637a83..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/player/AudioPlayer.java
+++ /dev/null
@@ -1,77 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.player;
-
-import com.sedmelluq.discord.lavaplayer.filter.PcmFilterFactory;
-import com.sedmelluq.discord.lavaplayer.player.event.AudioEventListener;
-import com.sedmelluq.discord.lavaplayer.track.AudioTrack;
-import com.sedmelluq.discord.lavaplayer.track.playback.AudioFrameProvider;
-
-/**
- * An audio player that is capable of playing audio tracks and provides audio frames from the currently playing track.
- */
-public interface AudioPlayer extends AudioFrameProvider {
- /**
- * @return Currently playing track
- */
- AudioTrack getPlayingTrack();
-
- /**
- * @param track The track to start playing
- */
- void playTrack(AudioTrack track);
-
- /**
- * @param track The track to start playing, passing null will stop the current track and return false
- * @param noInterrupt Whether to only start if nothing else is playing
- * @return True if the track was started
- */
- boolean startTrack(AudioTrack track, boolean noInterrupt);
-
- /**
- * Stop currently playing track.
- */
- void stopTrack();
-
- int getVolume();
-
- void setVolume(int volume);
-
- void setFilterFactory(PcmFilterFactory factory);
-
- void setFrameBufferDuration(Integer duration);
-
- /**
- * @return Whether the player is paused
- */
- boolean isPaused();
-
- /**
- * @param value True to pause, false to resume
- */
- void setPaused(boolean value);
-
- /**
- * Destroy the player and stop playing track.
- */
- void destroy();
-
- /**
- * Add a listener to events from this player.
- *
- * @param listener New listener
- */
- void addListener(AudioEventListener listener);
-
- /**
- * Remove an attached listener using identity comparison.
- *
- * @param listener The listener to remove
- */
- void removeListener(AudioEventListener listener);
-
- /**
- * Check if the player should be "cleaned up" - stopped due to nothing using it, with the given threshold.
- *
- * @param threshold Threshold in milliseconds to use
- */
- void checkCleanup(long threshold);
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/player/AudioPlayerLifecycleManager.java b/src/main/java/com/sedmelluq/discord/lavaplayer/player/AudioPlayerLifecycleManager.java
deleted file mode 100644
index c1bfd1b..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/player/AudioPlayerLifecycleManager.java
+++ /dev/null
@@ -1,69 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.player;
-
-import com.sedmelluq.discord.lavaplayer.player.event.AudioEvent;
-import com.sedmelluq.discord.lavaplayer.player.event.AudioEventListener;
-import com.sedmelluq.discord.lavaplayer.player.event.TrackEndEvent;
-import com.sedmelluq.discord.lavaplayer.player.event.TrackStartEvent;
-
-import java.util.concurrent.*;
-import java.util.concurrent.atomic.AtomicLong;
-import java.util.concurrent.atomic.AtomicReference;
-
-/**
- * Triggers cleanup checks on all active audio players at a fixed interval.
- */
-public class AudioPlayerLifecycleManager implements Runnable, AudioEventListener {
- private static final long CHECK_INTERVAL = 10000;
-
- private final ConcurrentMapnull
if unknown.
- */
- public final Long duration;
- /**
- * Name of the segment. null
if unknown.
- */
- public final String name;
-
- public SegmentInfo(String url, Long duration, String name) {
- this.url = url;
- this.duration = duration;
- this.name = name;
- }
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/source/twitch/TwitchStreamAudioSourceManager.java b/src/main/java/com/sedmelluq/discord/lavaplayer/source/twitch/TwitchStreamAudioSourceManager.java
deleted file mode 100644
index 3f15942..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/source/twitch/TwitchStreamAudioSourceManager.java
+++ /dev/null
@@ -1,191 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.source.twitch;
-
-import com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager;
-import com.sedmelluq.discord.lavaplayer.source.AudioSourceManager;
-import com.sedmelluq.discord.lavaplayer.tools.ExceptionTools;
-import com.sedmelluq.discord.lavaplayer.tools.FriendlyException;
-import com.sedmelluq.discord.lavaplayer.tools.JsonBrowser;
-import com.sedmelluq.discord.lavaplayer.tools.io.HttpClientTools;
-import com.sedmelluq.discord.lavaplayer.tools.io.HttpConfigurable;
-import com.sedmelluq.discord.lavaplayer.tools.io.HttpInterface;
-import com.sedmelluq.discord.lavaplayer.tools.io.HttpInterfaceManager;
-import com.sedmelluq.discord.lavaplayer.track.AudioItem;
-import com.sedmelluq.discord.lavaplayer.track.AudioReference;
-import com.sedmelluq.discord.lavaplayer.track.AudioTrack;
-import com.sedmelluq.discord.lavaplayer.track.AudioTrackInfo;
-import org.apache.http.client.config.RequestConfig;
-import org.apache.http.client.methods.HttpGet;
-import org.apache.http.client.methods.HttpUriRequest;
-import org.apache.http.impl.client.HttpClientBuilder;
-
-import java.io.DataInput;
-import java.io.DataOutput;
-import java.io.IOException;
-import java.net.URI;
-import java.util.List;
-import java.util.function.Consumer;
-import java.util.function.Function;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-import static com.sedmelluq.discord.lavaplayer.tools.FriendlyException.Severity.SUSPICIOUS;
-
-/**
- * Audio source manager which detects Twitch tracks by URL.
- */
-public class TwitchStreamAudioSourceManager implements AudioSourceManager, HttpConfigurable {
- private static final String STREAM_NAME_REGEX = "^https://(?:www\\.|go\\.)?twitch.tv/([^/]+)$";
- private static final Pattern streamNameRegex = Pattern.compile(STREAM_NAME_REGEX);
-
- public static final String DEFAULT_CLIENT_ID = "jzkbprff40iqj646a697cyrvl0zt2m6";
-
- private final HttpInterfaceManager httpInterfaceManager;
- private final String twitchClientId;
-
- /**
- * Create an instance.
- */
- public TwitchStreamAudioSourceManager() {
- this(DEFAULT_CLIENT_ID);
- }
-
- /**
- * Create an instance.
- *
- * @param clientId The Twitch client id for your application.
- */
- public TwitchStreamAudioSourceManager(String clientId) {
- httpInterfaceManager = HttpClientTools.createDefaultThreadLocalManager();
- twitchClientId = clientId;
- }
-
- public String getClientId() {
- return twitchClientId;
- }
-
- @Override
- public String getSourceName() {
- return "twitch";
- }
-
- @Override
- public AudioItem loadItem(DefaultAudioPlayerManager manager, AudioReference reference) {
- String streamName = getChannelIdentifierFromUrl(reference.identifier);
- if (streamName == null) {
- return null;
- }
-
- JsonBrowser channelInfo = fetchStreamChannelInfo(streamName);
-
- if (channelInfo == null) {
- return AudioReference.NO_TRACK;
- } else {
- //Use the stream name as the display name (we would require an additional call to the user to get the true display name)
- String displayName = streamName;
-
- //Retrieve the data value list; this will have only one element since we're getting only one stream's information
- List(PL|LL|FL|UU)[a-zA-Z0-9_-]+)";
-
- private static final String SEARCH_PREFIX = "ytsearch:";
-
- private static final Pattern directVideoIdPattern = Pattern.compile("^" + VIDEO_ID_REGEX + "$");
-
- private final Extractor[] extractors = new Extractor[]{
- new Extractor(directVideoIdPattern, id -> loadTrackWithVideoId(id, false)),
- new Extractor(Pattern.compile("^" + PLAYLIST_ID_REGEX + "$"), id -> loadPlaylistWithId(id, null)),
- new Extractor(Pattern.compile("^" + PROTOCOL_REGEX + DOMAIN_REGEX + "/.*"), this::loadFromMainDomain),
- new Extractor(Pattern.compile("^" + PROTOCOL_REGEX + SHORT_DOMAIN_REGEX + "/.*"), this::loadFromShortDomain)
- };
-
- private final YoutubeSignatureCipherManager signatureCipherManager;
- private final HttpInterfaceManager httpInterfaceManager;
- private final YoutubeSearchProvider searchProvider;
- private final YoutubeMixProvider mixProvider;
- private final boolean allowSearch;
- private volatile int playlistPageCount;
-
- /**
- * Create an instance with default settings.
- */
- public YoutubeAudioSourceManager() {
- this(true);
- }
-
- /**
- * Create an instance.
- *
- * @param allowSearch Whether to allow search queries as identifiers
- */
- public YoutubeAudioSourceManager(boolean allowSearch) {
- signatureCipherManager = new YoutubeSignatureCipherManager();
- httpInterfaceManager = HttpClientTools.createDefaultThreadLocalManager();
- this.allowSearch = allowSearch;
- playlistPageCount = 6;
- searchProvider = new YoutubeSearchProvider(this);
- mixProvider = new YoutubeMixProvider(this);
- }
-
- /**
- * @param playlistPageCount Maximum number of pages loaded from one playlist. There are 100 tracks per page.
- */
- public void setPlaylistPageCount(int playlistPageCount) {
- this.playlistPageCount = playlistPageCount;
- }
-
- /**
- * @param maximumPoolSize Maximum number of threads in mix loader thread pool.
- */
- public void setMixLoaderMaximumPoolSize(int maximumPoolSize) {
- mixProvider.setLoaderMaximumPoolSize(maximumPoolSize);
- }
-
- @Override
- public String getSourceName() {
- return "youtube";
- }
-
- @Override
- public AudioItem loadItem(DefaultAudioPlayerManager manager, AudioReference reference) {
- try {
- return loadItemOnce(reference);
- } catch (FriendlyException exception) {
- // In case of a connection reset exception, try once more.
- if (HttpClientTools.isRetriableNetworkException(exception.getCause())) {
- return loadItemOnce(reference);
- } else {
- throw exception;
- }
- }
- }
-
- @Override
- public boolean isTrackEncodable(AudioTrack track) {
- return true;
- }
-
- @Override
- public void encodeTrack(AudioTrack track, DataOutput output) {
- // No custom values that need saving
- }
-
- @Override
- public AudioTrack decodeTrack(AudioTrackInfo trackInfo, DataInput input) {
- return new YoutubeAudioTrack(trackInfo, this);
- }
-
- @Override
- public void shutdown() {
- ExceptionTools.closeWithWarnings(httpInterfaceManager);
-
- mixProvider.shutdown();
- }
-
- public YoutubeSignatureCipherManager getCipherManager() {
- return signatureCipherManager;
- }
-
- /**
- * @return Get an HTTP interface for a playing track.
- */
- public HttpInterface getHttpInterface() {
- return httpInterfaceManager.getInterface();
- }
-
- @Override
- public void configureRequests(Function
true
, throws an exception instead of returning null
if the track does
- * not exist.
- * @return JSON information about the track if it exists. null
if it does not and mustExist is
- * false
.
- * @throws IOException On network error.
- */
- public JsonBrowser getTrackInfoFromMainPage(HttpInterface httpInterface, String videoId, boolean mustExist) throws IOException {
- try (CloseableHttpResponse response = httpInterface.execute(new HttpGet(getWatchUrl(videoId)))) {
- int statusCode = response.getStatusLine().getStatusCode();
- if (statusCode != 200) {
- throw new IOException("Invalid status code for video page response: " + statusCode);
- }
-
- String html = IOUtils.toString(response.getEntity().getContent(), Charset.forName(CHARSET));
- String configJson = DataFormatTools.extractBetween(html, "ytplayer.config = ", ";ytplayer.load");
-
- if (configJson != null) {
- return JsonBrowser.parse(configJson);
- }
- }
-
- if (determineFailureReason(httpInterface, videoId, mustExist)) {
- return null;
- }
-
- // In case main page does not give player configuration, but info page indicates an OK result, it is probably an
- // age-restricted video for which the complete track info can be combined from the embed page and the info page.
- return getTrackInfoFromEmbedPage(httpInterface, videoId);
- }
-
- private boolean determineFailureReason(HttpInterface httpInterface, String videoId, boolean mustExist) throws IOException {
- try (CloseableHttpResponse response = httpInterface.execute(new HttpGet("https://www.youtube.com/get_video_info?hl=en_GB&video_id=" + videoId))) {
- int statusCode = response.getStatusLine().getStatusCode();
- if (statusCode != 200) {
- throw new IOException("Invalid status code for video info response: " + statusCode);
- }
-
- Map" + html + "
", "");
-
- String moreHtml = json.get("load_more_widget_html").text();
- Element moreContainer = moreHtml != null ? Jsoup.parse(moreHtml) : null;
-
- loadMoreUrl = extractPlaylistTracks(videoContainer, moreContainer, tracks);
- }
- }
-
- return new BasicAudioPlaylist(playlistName, tracks, findSelectedTrack(tracks, selectedVideoId), false);
- }
-
- private String extractPlaylistTracks(Element videoContainer, Element loadMoreContainer, Listnull
or not. Compatible with
- * {@link #readNullableText(DataInput)}.
- *
- * @param output Output to write to.
- * @param text Text to write.
- * @throws IOException On write error.
- */
- public static void writeNullableText(DataOutput output, String text) throws IOException {
- output.writeBoolean(text != null);
-
- if (text != null) {
- output.writeUTF(text);
- }
- }
-
- /**
- * Reads a string from input which may be null
. Compatible with
- * {@link #writeNullableText(DataOutput, String)}.
- *
- * @param input Input to read from.
- * @return The string that was read, or null
.
- * @throws IOException On read error.
- */
- public static String readNullableText(DataInput input) throws IOException {
- boolean exists = input.readBoolean();
- return exists ? input.readUTF() : null;
- }
-
- public static boolean arrayRangeEquals(byte[] array, int offset, byte[] segment) {
- if (array.length < offset + segment.length) {
- return false;
- }
-
- for (int i = 0; i < segment.length; i++) {
- if (segment[i] != array[i + offset]) {
- return false;
- }
- }
-
- return true;
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/tools/DecodedException.java b/src/main/java/com/sedmelluq/discord/lavaplayer/tools/DecodedException.java
deleted file mode 100644
index 586742e..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/tools/DecodedException.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.tools;
-
-/**
- * Decoded serialized exception. The original exception class is not restored, instead all exceptions will be instances
- * of this class and contain the original class name and message as fields and as the message.
- */
-public class DecodedException extends Exception {
- /**
- * Original exception class name
- */
- public final String className;
- /**
- * Original exception message
- */
- public final String originalMessage;
-
- /**
- * @param className Original exception class name
- * @param originalMessage Original exception message
- * @param cause Cause of this exception
- */
- public DecodedException(String className, String originalMessage, DecodedException cause) {
- super(className + ": " + originalMessage, cause, true, true);
-
- this.className = className;
- this.originalMessage = originalMessage;
- }
-}
diff --git a/src/main/java/com/sedmelluq/discord/lavaplayer/tools/ExceptionTools.java b/src/main/java/com/sedmelluq/discord/lavaplayer/tools/ExceptionTools.java
deleted file mode 100644
index 473febc..0000000
--- a/src/main/java/com/sedmelluq/discord/lavaplayer/tools/ExceptionTools.java
+++ /dev/null
@@ -1,219 +0,0 @@
-package com.sedmelluq.discord.lavaplayer.tools;
-
-import com.sedmelluq.discord.lavaplayer.tools.FriendlyException.Severity;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import java.io.DataInput;
-import java.io.DataOutput;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * Contains common helper methods for dealing with exceptions.
- */
-public class ExceptionTools {
- private static final Logger log = LoggerFactory.getLogger(ExceptionTools.class);
-
- /**
- * Sometimes it is necessary to catch Throwable instances for logging or reporting purposes. However, unless for
- * specific known cases, Error instances should not be blocked from propagating, so rethrow them.
- *
- * @param throwable The Throwable to check, it is rethrown if it is an Error
- */
- public static void rethrowErrors(Throwable throwable) {
- if (throwable instanceof Error) {
- throw (Error) throwable;
- }
- }
-
- /**
- * If the exception is not a FriendlyException, wrap with a FriendlyException with the given message
- *
- * @param message Message of the new FriendlyException if needed
- * @param severity Severity of the new FriendlyException
- * @param throwable The exception to potentially wrap
- * @return Original or wrapped exception
- */
- public static FriendlyException wrapUnfriendlyExceptions(String message, Severity severity, Throwable throwable) {
- if (throwable instanceof FriendlyException) {
- return (FriendlyException) throwable;
- } else {
- return new FriendlyException(message, severity, throwable);
- }
- }
-
- /**
- * If the exception is not a FriendlyException, wrap with a RuntimeException
- *
- * @param throwable The exception to potentially wrap
- * @return Original or wrapped exception
- */
- public static RuntimeException wrapUnfriendlyExceptions(Throwable throwable) {
- if (throwable instanceof FriendlyException) {
- return (FriendlyException) throwable;
- } else {
- return new RuntimeException(throwable);
- }
- }
-
- /**
- * Finds the first exception which is an instance of the specified class from the throwable cause chain.
- *
- * @param throwable Throwable to scan.
- * @param klass The throwable class to scan for.
- * @param