File tree Expand file tree Collapse file tree
java/com/avairebot/nowplaying Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,22 +6,22 @@ plugins {
66apply plugin : ' java'
77
88group ' com.avairebot'
9- version ' 1.0 '
9+ version ' 1.1 '
1010description ' Links the status message of the bot to what the bot is playing.'
1111
1212sourceCompatibility = 1.8
1313targetCompatibility = 1.8
1414
1515repositories {
16- teamcityServer{
16+ teamcityServer {
1717 url = ' http://ci.avairebot.com'
1818 }
1919}
2020
2121dependencies {
2222 // This is nice for local development if you want to use a custom build of Ava.
23- // compileOnly files('./AvaIre.jar')
23+ // compileOnly files('./AvaIre.jar')
2424
25- // Version 0.9.165
26- compileOnly tc(buildTypeId : ' Avaire_Build' , version : ' 1 ' , artifactPath : ' AvaIre.jar' )
25+ // Version 0.10.15
26+ compileOnly tc(buildTypeId : ' Avaire_Build' , version : ' 60 ' , artifactPath : ' AvaIre.jar' )
2727}
Original file line number Diff line number Diff line change 44import com .avairebot .handlers .events .MusicEndedEvent ;
55import com .avairebot .handlers .events .NowPlayingEvent ;
66import com .avairebot .scheduler .tasks .ChangeGameTask ;
7- import net .dv8tion .jda .core .entities .Game ;
7+ import net .dv8tion .jda .api .entities .Activity ;
88import org .slf4j .Logger ;
99import org .slf4j .LoggerFactory ;
1010
@@ -39,8 +39,8 @@ public void onNowPlaying(NowPlayingEvent event) {
3939 );
4040
4141 ChangeGameTask .hasCustomStatus = true ;
42- plugin .getAvaire ().getShardManager ().setGame (
43- Game .listening (event .getSongTitle ())
42+ plugin .getAvaire ().getShardManager ().setActivity (
43+ Activity .listening (event .getSongTitle ())
4444 );
4545 }
4646
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ public class NowPlaying extends JavaPlugin {
77 @ Override
88 public void onEnable () {
99 saveDefaultConfig ();
10- reloadConfig ();
1110
1211 registerEventListener (new MusicEventListener (this ));
1312 }
Original file line number Diff line number Diff line change 11name : ' NowPlaying'
22main : ' com.avairebot.nowplaying.NowPlaying'
3- version : ' 1.0 '
3+ version : ' 1.1 '
44author : ' Alexis Tan <Senither#0001>'
55description : ' A simple plugin that links the bots status to the music handler, so people can see what is being played in the bots status messages.'
6- requires : ' 0.7.139 '
6+ requires : ' 0.10.15 '
You can’t perform that action at this time.
0 commit comments